facebook

Error deploying quick start EAR application

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #250139 Reply

    tex123
    Member

    Hello.

    I was following instructions to install TraderX EAR application. When I am deploying TraderX i get following message from JBoss.

    13:09:37,208 INFO [EjbModule] Deploying Trader
    13:09:37,239 INFO [StatelessSessionContainer] Registration is not done -> stop
    13:09:37,254 WARN [ServiceController] Problem creating service jboss.j2ee:service=EjbModule,module=TraderXEJB.jar
    javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=ejb/com/genuitec/trader/ejb/TraderHome,service=EJB already registered.

    between printouts is also following message:

    13:09:37,551 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

    — MBeans waiting for other MBeans —
    ObjectName: jboss.j2ee:service=EjbModule,module=TraderXEJB.jar
    State: FAILED
    Reason: javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=ejb/com/genuitec/trader/ejb/TraderHome,service=EJB already registered.

    — MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM —
    ObjectName: jboss.j2ee:service=EjbModule,module=TraderXEJB.jar
    State: FAILED
    Reason: javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=ejb/com/genuitec/trader/ejb/TraderHome,service=EJB already registered.

    I did following steps till now:
    – I imported TraderXEJB project
    – I imported TraderXWeb project
    – I imported TraderX project
    – I cleaned all 3 projects
    – I rebuilded XDoclet for TraderXEJB project
    – I deployed TraderX project

    I am using:
    – JBoss 4.0.3 with EJB 3.0
    – myeclipse 4.1.1 GA
    – eclipse 3.1.2

    Thanks

    #250140

    tex123
    Member

    I was able to deploy application normally on JBoss 3.2.8.:

    13:31:20,361 INFO [Server] JBoss (MX MicroKernel) [3.2.8.SP1 (build: CVSTag=JBoss_3_2_8_SP1 date=200603031235)] Started in 22s:375ms
    13:31:59,798 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/JBoss/jboss-3.2.8/server/default/deploy/TraderX.ear/
    13:31:59,985 INFO [EjbModule] Deploying Trader
    13:32:00,063 INFO [EJBDeployer] Deployed: file:/C:/Program Files/JBoss/jboss-3.2.8/server/default/deploy/TraderX.ear/TraderXEJB.jar/
    13:32:00,110 INFO [TomcatDeployer] deploy, ctxPath=/TraderWeb, warUrl=file:/C:/Program Files/JBoss/jboss-3.2.8/server/default/deploy/TraderX.ear/TraderXWeb.war/
    13:32:00,360 INFO [EARDeployer] Started J2EE application: file:/C:/Program Files/JBoss/jboss-3.2.8/server/default/deploy/TraderX.ear/

    I can open pages
    http://localhost:8080/TraderWeb/html/welcome.html
    http://localhost:8080/TraderWeb/jsp/transaction.jsp
    on both application servers (JBoss 4.0.3 and JBoss 3.2.8)

    but when I try to invoke Sell or Buy option on JBoss 4.0.3 I get following message in browser:

    TraderWeb

    Errors
    0: java.lang.ClassCastException: $Proxy51
    TraderWeb

    Errors
    0: java.lang.NullPointerException

    So it seems that problem is related to JBoss 4.0.3 application server. Any suggestions or possible workaround would be appreciated.

    #250172

    Riyad Kalla
    Member

    You can try throwing a break point in there and possibly seeing where the class is comming from, I’m sorry I don’t have a better suggesiton for you.

    #250174

    tex123
    Member

    My guess is that Trader object is missing, because it was not deployed. On JBoss 3.2.8 everything works fine. So problem remains deployment on JBoss 4.0.3.

    #250184

    Riyad Kalla
    Member

    Are you deploying your EAR to both app servers, using a packaged archive?

    #250208

    tex123
    Member

    Both exploded.

    #250212

    Riyad Kalla
    Member

    Did you modify the configurations in any way between the two servers or did you simply unzip both, set them up and go?

    #250254

    tex123
    Member

    I had both versions of JBoss installed for days. On both I had to change config in <Jboss>/server/default/conf/jboss-service.xml file so that I moved port 1098 to port 5098:

    <attribute name=”RmiPort”>5098</attribute>

    #251773

    isidoro
    Member

    Hi…

    I had the same configuration than tex123, but only JBoss 4.0.3
    I did the deploy all look right, but i cant view any page like http://localhost:8080/TraderWeb/html/welcome.html

    What i’m doing wrong?

    tks…
    Sory about my bad english…

    #251775

    Riyad Kalla
    Member

    can you access localhost:8080?

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Error deploying quick start EAR application

You must be logged in to post in the forum log in