[jboss-user] [Installation, Configuration & Deployment] - application-client not starting
aschulz
do-not-reply at jboss.com
Wed Feb 7 11:58:50 EST 2007
Hi,
I'm porting an application from orion to JBoss 4.0.5.
I have an application-client witch I want to deploy an run when jboss starts. In the docs I found that there must be a META-INF/application-client.xml and a META-INF/jboss-client.xml and that jndi.properties must contain j2ee.clientName=... and that META-INF/MANIFEST.MF must have a Main-Class attribut. I places jndi.properties into the root of the client jar.
Ok, I did that and JBoss ist deploying the client but the client is not started by it's main-method.
Here are my files:
Manifest.mf:
| Manifest-Version: 1.0
| Created-By: Ant 1.4.1
| Main-Class: de.solutionary.bps.orionclient.MainClass
|
jboss-client.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE jboss-client PUBLIC "-//JBoss//DTD Application Client 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd" >
| <jboss-client>
| <jndi-name>orionclient</jndi-name>
| <ejb-ref>
| <ejb-ref-name>ejb/NeueNominierungenS</ejb-ref-name>
| <jndi-name>comp/env/ejb/NeueNominierungenS</jndi-name>
| </ejb-ref>
| <ejb-ref>
| <ejb-ref-name>ejb/BestandsBerechnerS</ejb-ref-name>
| <jndi-name>comp/env/ejb/BestandsBerechnerS</jndi-name>
| </ejb-ref>
| <ejb-ref>
| <ejb-ref-name>ejb/StammdatenUebernahmeS</ejb-ref-name>
| <jndi-name>comp/env/ejb/StammdatenUebernahmeS</jndi-name>
| </ejb-ref>
| <ejb-ref>
| <ejb-ref-name>ejb/StammdatenS</ejb-ref-name>
| <jndi-name>ccomp/env/ejb/StammdatenS</jndi-name>
| </ejb-ref>
| <resource-env-ref>
| <resource-env-ref-name>jdbc/bps</resource-env-ref-name>
| <jndi-name>java:jdbc/bps</jndi-name>
| </resource-env-ref>
| </jboss-client>
|
application-client.xml:
| <?xml version="1.0"?>
| <!--
| $Id: application-client.xml 4134 2006-03-27 08:55:27Z aschulz $
| -->
| <!--
| <!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
| -->
| <application-client>
| <display-name>orionclient</display-name>
| <description>Autostart client fuer Aktivitaeten ab Serverstartup</description>
| <ejb-ref>
| <ejb-ref-name>ejb/NeueNominierungenS</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <home>de.solutionary.bps.session.interfaces.schnittstellen.NeueNominierungenSHome</home>
| <remote>de.solutionary.bps.session.interfaces.schnittstellen.NeueNominierungenS</remote>
| <ejb-link>schnittstellen-session-ejb.jar#NeueNominierungenS</ejb-link>
| </ejb-ref>
| <ejb-ref>
| <ejb-ref-name>ejb/StammdatenUebernahmeS</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <home>de.solutionary.bps.session.interfaces.schnittstellen.StammdatenUebernahmeSHome</home>
| <remote>de.solutionary.bps.session.interfaces.schnittstellen.StammdatenUebernahmeS</remote>
| <ejb-link>schnittstellen-session-ejb.jar#StammdatenUebernahmeS</ejb-link>
| </ejb-ref>
| <ejb-ref>
| <ejb-ref-name>ejb/BestandsBerechnerS</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <home>de.solutionary.bps.session.interfaces.bestandsfuehrung.BestandsBerechnerSHome</home>
| <remote>de.solutionary.bps.session.interfaces.bestandsfuehrung.BestandsBerechnerS</remote>
| <ejb-link>bestandsfuehrung-session-ejb.jar#BestandsBerechnerS</ejb-link>
| </ejb-ref>
| <ejb-ref>
| <ejb-ref-name>ejb/StammdatenS</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <home>de.solutionary.bps.session.interfaces.stammdaten.StammdatenSHome</home>
| <remote>de.solutionary.bps.session.interfaces.stammdaten.StammdatenS</remote>
| <ejb-link>stammdaten-session-ejb.jar#StammdatenS</ejb-link>
| </ejb-ref>
| <resource-env-ref>
| <resource-env-ref-name>jdbc/bps</resource-env-ref-name>
| <resource-env-ref-type>javax.sql.DataSource</resource-env-ref-type>
| </resource-env-ref>
|
| </application-client>
|
jndi.properties:
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.factory.url.pkgs=org.jboss.naming.client
| java.naming.provider.url=localhost
| #java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| #java.naming.provider.url=localhost:1099/bps
| #java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
| j2ee.clientName=orionclient
|
When JBoss deploys it says:
| 2007-02-07 17:39:23,877 DEBUG (ClientDeployer.java:95) # Found a META-INF/application-client.xml file, di: org.jboss.deployment.DeploymentInfo at b1ee39e9 { url=file:/D:/working/tal_planung_1.1/jboss/server/default/tmp/deploy/tmp26865bps.ear-contents/orion-client.jar }
| deployer: null
| status: null
| state: CONSTRUCTED
| watch: file:/D:/working/tal_planung_1.1/jboss/server/default/tmp/deploy/tmp26865bps.ear-contents/orion-client.jar
| altDD: null
| lastDeployed: 0
| lastModified: 0
| mbeans:
| ...
| 2007-02-07 17:39:33,390 DEBUG (ClientDeployer.java:222) # Creating client ENC binding under: orionclient
| 2007-02-07 17:39:33,390 DEBUG (ClientDeployer.java:239) # Binding an EJBReference ejb/StammdatenS
| 2007-02-07 17:39:33,390 DEBUG (ClientDeployer.java:246) # Binding ejb/StammdatenS to ejb-link: stammdaten-session-ejb.jar#StammdatenS -> comp/env/ejb/StammdatenS
| 2007-02-07 17:39:33,390 DEBUG (ClientDeployer.java:253) # Link resolved to:comp/env/ejb/StammdatenS
| 2007-02-07 17:39:33,400 DEBUG (ClientDeployer.java:239) # Binding an EJBReference ejb/StammdatenUebernahmeS
| 2007-02-07 17:39:33,400 DEBUG (ClientDeployer.java:246) # Binding ejb/StammdatenUebernahmeS to ejb-link: schnittstellen-session-ejb.jar#StammdatenUebernahmeS -> comp/env/ejb/StammdatenUebernahmeS
| 2007-02-07 17:39:33,400 DEBUG (ClientDeployer.java:253) # Link resolved to:comp/env/ejb/StammdatenUebernahmeS
| 2007-02-07 17:39:33,400 DEBUG (ClientDeployer.java:239) # Binding an EJBReference ejb/BestandsBerechnerS
| 2007-02-07 17:39:33,410 DEBUG (ClientDeployer.java:246) # Binding ejb/BestandsBerechnerS to ejb-link: bestandsfuehrung-session-ejb.jar#BestandsBerechnerS -> comp/env/ejb/BestandsBerechnerS
| 2007-02-07 17:39:33,410 DEBUG (ClientDeployer.java:253) # Link resolved to:comp/env/ejb/BestandsBerechnerS
| 2007-02-07 17:39:33,410 DEBUG (ClientDeployer.java:239) # Binding an EJBReference ejb/NeueNominierungenS
| 2007-02-07 17:39:33,410 DEBUG (ClientDeployer.java:246) # Binding ejb/NeueNominierungenS to ejb-link: schnittstellen-session-ejb.jar#NeueNominierungenS -> comp/env/ejb/NeueNominierungenS
| 2007-02-07 17:39:33,410 DEBUG (ClientDeployer.java:253) # Link resolved to:comp/env/ejb/NeueNominierungenS
| 2007-02-07 17:39:33,420 DEBUG (ClientDeployer.java:317) # Binding env resource: jdbc/bps to JDNI as: java:jdbc/bps
| 2007-02-07 17:39:33,470 INFO (ClientDeployer.java:321) # Client ENC bound under: orionclient
|
Whats wrong with my deployment? Why is the main method of de.solutionary.bps.orionclient.MainClass never called?
Please can somebody help me?
Thanks in advance.
Alex
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012546#4012546
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012546
More information about the jboss-user
mailing list