Jboss will neither bind my bean names nor throw an error?
gberish Feb 19, 2005 5:01 PMI start my JBoss 3.2.6 server with nothing deployed, then hot copy my application into it.
The log show the deployement was successful. (See Log Below).
Bu my enterprise beans cannot be seen in the console JNDI list.
Can anyone point me to the problem area? Without an error, I don't know where to look.
The code sections below contain the code I think is relevant to one enterprise bean (GameBean) and file structure as deployed.
(Notes:
-- Tthere is a java class called Game that is used by the enterprise beans and also by some Servlets that are part of the app.
-- I use WebStart to down load a local client the makes an HTTP calll to a servlet in go-svlts.jar shown below and the servlet uses the local enterprise bean. But the servlet cannot find it because its not in the JNDI list):
The structure of the directory deployed to JBoss:
${jboss}\server\default\deploy \go.ear sGo-ejb.jar org.projects.games.go.ejb.GameBean.class org.projects.games.go.ejb.GameLocal.class org.projects.games.go.ejb.GameLocalHome.class ... etc. org.projects.games.go.shared.Game.class org.projects.games.go.shared.Play.class ... etc. \META-INF application.xml ejb-jar.xml jboss.xml jbosscmp-jdbc.xml \go-web.war index.htm \images \META-INF \resources sGo-jnlp.jar org.projects.games.go.shared.Game.class org.projects.games.go.shared.Play.class ... etc. jboss-j2ee.jar LaunchLocalServer.jnlp properties.Go \styles \WEB-INF web.xml \classes \lib go-servlets.jar
The XML files:
<ejb-jar> <description><![CDATA[No Description.]]></description> <display-name>Go</display-name> <enterprise-beans> <!-- GameBean --> <entity> <description>GameBean Definition</description> <display-name>GameBean</display-name> <small-icon/><large-icon/> <ejb-name>GameEJB</ejb-name> <local-home>org.projects.games.go.ejb.GameLocalHome</local-home> <local>org.projects.games.go.ejb.GameLocal</local> <ejb-class>org.projects.games.go.ejb.GameBean</ejb-class> <persistence-type>Container</persistence-type> <prim-key-class>java.lang.Integer</prim-key-class> <reentrant>False</reentrant> <cmp-version>2.x</cmp-version> <abstract-schema-name>GameSchema</abstract-schema-name> <cmp-field><field-name>id</field-name></cmp-field> ... etc. <primkey-field>id</primkey-field> <resource-ref> <description/> <res-ref-name>DefaultDS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> </entity> ... etc. </enterprise-beans>
<jboss> <enterprise-beans> <entity> <ejb-name>GameEJB</ejb-name> <local-jndi-name>ejb/GameLocalHome</local-jndi-name> <resource-ref> <res-ref-name>DefaultDS</res-ref-name> <jndi-name>java:/DefaultDS</jndi-name> </resource-ref> </entity> </enterprise-beans> ... etc. </jboss>
<jbosscmp-jdbc> <enterprise-beans> <!-- GameBean --> <entity> <ejb-name>GameEJB</ejb-name> <create-table>true</create-table> <table-name>games</table-name> <cmp-field> <field-name>id</field-name> <column-name>id</column-name> </cmp-field> ... etc. </entity> </enterprise-beans> </jbosscmp-jdbc>
The JBoss log -- Shows a start up with nothing deployed, then a hot copy of the exploded file structure to the deploy\ directory:
=============================================================================== . JBoss Bootstrap Environment . JBOSS_HOME: C:\JBoss\jboss-3.2.6\bin\\.. . JAVA: C:\jdk1.5.0-0\bin\java . JAVA_OPTS: -Dprogram.name=run.bat . CLASSPATH: C:\jdk1.5.0-0\lib\tools.jar;C:\JBoss\jboss-3.2.6\bin\\run.jar . =============================================================================== . 10:57:11,818 INFO [Server] Starting JBoss (MX MicroKernel)... 10:57:11,818 INFO [Server] Release ID: JBoss [WonderLand] 3.2.6 (build: CVSTag=JBoss_3_2_6 date=200410140106) ... ... 10:57:29,022 INFO [DLQ] Bound to JNDI name: queue/DLQ 10:57:29,032 INFO [GoDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTx CM,name=GoDS to JNDI name 'java:/GoDS' 10:57:29,133 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/C:/JBoss/jboss-3.2.6/server/default/deplo y/jmx-console.war/ 10:57:29,403 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/JBoss/jboss-3.2.6/server/default/deplo y/management/web-console.war/ 10:57:30,515 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080 10:57:30,785 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009 10:57:30,795 INFO [JkMain] Jk running ID=0 time=0/50 config=null 10:57:30,805 INFO [Server] JBoss (MX MicroKernel) [3.2.6 (build: CVSTag=JBoss_3_2_6 date=200410140106)] Started in 18s: 596ms #END OF JBOSS START UP WITH NOTHING DEPLOYED #go.ear\ directory hot copied to ${JBoss}\server\default\deploy\ 10:58:00,317 INFO [EARDeployer] Init J2EE application: file:/C:/JBoss/jboss-3.2.6/server/default/deploy/go.ear/ 10:58:00,387 INFO [TomcatDeployer] deploy, ctxPath=/Go, warUrl=file:/C:/JBoss/jboss-3.2.6/server/default/deploy/go.ear/ go-web.war/ 10:58:00,658 INFO [EARDeployer] Started J2EE application: file:/C:/JBoss/jboss-3.2.6/server/default/deploy/go.ear/