-
1. Re: Jboss3 Template w/ Eclipse
javaguy Jul 12, 2002 9:25 PM (in response to javaguy)Here is what my client gets:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: Remote exception occured while removing generator session bean: JNDI Lookup broken; nested exception is:
javax.ejb.EJBException: JNDI Lookup broken; nested exception is:
javax.ejb.EJBException: Remote exception occured while removing generator session bean: JNDI Lookup broken; nested exception is:
javax.ejb.EJBException: JNDI Lookup broken
java.rmi.ServerException: Remote exception occured while removing generator session bean: JNDI Lookup broken; nested exception is:
javax.ejb.EJBException: JNDI Lookup broken; nested exception is:
javax.ejb.EJBException: Remote exception occured while removing generator session bean: JNDI Lookup broken; nested exception is:
javax.ejb.EJBException: JNDI Lookup broken
javax.ejb.EJBException: Remote exception occured while removing generator session bean: JNDI Lookup broken; nested exception is: javax.ejb.EJBException: JNDI Lookup broken
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:240)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:117)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy1.getNewEntityId(Unknown Source)
at test.client.TestClient.main(TestClient.java:24)
-----
From the Server
19:29:56,850 ERROR [LogInterceptor] TransactionRolledbackException, causedBy:
javax.ejb.EJBException: JNDI Lookup broken
at test.entity.TestEntityBean.ejbCreate(TestEntityBean.java:477)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:221)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:270)
at org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:728)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1116)
at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:73)
at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:257)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215)
at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:134)
at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)
at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:44)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167)
.
.
.
Thanks
JG -
2. Re: Jboss3 Template w/ Eclipse
marc.fleury Jul 13, 2002 1:40 AM (in response to javaguy)your create method on the TestEntityBean.java ejb seems to do a JNDI lookup that is not happy for some reason. This is tested in the test suite. Double check that everything is kosher there, is that a class you wrote ? who writes "JNDI broken"...
-
3. Re: Jboss3 Template w/ Eclipse
javaguy Jul 13, 2002 6:04 AM (in response to javaguy)Hi Marc,
I followed your recommendation and downloaded the latest CSV and compiled it. I then went to the testsuite directory and ran the marathon there. After it completed I went to the output/reports/html/index.html and it said four errors running 3 tests BankMarathonTestCase. Here are some of the error message. Of course the JBoss console did not scroll with anything so I am not sure i the test really ran or not. I could not really understand what the test does besides just building. I did not really deploy anything tho the server. Maybe you can enlighten me a bit :-) after I get some sleep of course. I know I am missing something doing the test!!!
Error #1:
testEnvironment(org.jboss.test.marathon.test.BankMarathonTestCase)
bank not bound
javax.naming.NameNotFoundException: bank not bound
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:240)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:901)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:869)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at org.jboss.test.marathon.test.BankMarathonTestCase.setUp(BankMarathonTestCase.java:228)
at junit.framework.TestCase.runBare(TestCase.java:138)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:131)
at junit.framework.TestSuite.runTest(TestSuite.java:173)
at junit.framework.TestSuite.run(TestSuite.java:168)
at junit.framework.TestSuite.runTest(TestSuite.java:173)
at junit.framework.TestSuite.run(TestSuite.java:168)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java)
Error 2:
testMarathon(org.jboss.test.marathon.test.BankMarathonTestCase)
bank not bound
javax.naming.NameNotFoundException: bank not bound
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:240)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:901)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:869)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at org.jboss.test.marathon.test.BankMarathonTestCase.setUp(BankMarathonTestCase.java:228)
at junit.framework.TestCase.runBare(TestCase.java:138)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:131)
at junit.framework.TestSuite.runTest(TestSuite.java:173)
at junit.framework.TestSuite.run(TestSuite.java:168)
at junit.framework.TestSuite.runTest(TestSuite.java:173)
at junit.framework.TestSuite.run(TestSuite.java:168)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java)
Error 3:
testServerFound(org.jboss.test.marathon.test.BankMarathonTestCase)
no protocol: ${jbosstest.deploy.dir}/banknew.jar
java.net.MalformedURLException: no protocol: ${jbosstest.deploy.dir}/banknew.jar
at java.net.URL.(URL.java:468)
at java.net.URL.(URL.java:371)
at java.net.URL.(URL.java:325)
at org.jboss.test.JBossTestServices.getDeployURL(JBossTestServices.java:180)
at org.jboss.test.JBossTestServices.undeploy(JBossTestServices.java:272)
at org.jboss.test.JBossTestSetup.undeploy(JBossTestSetup.java:215)
at org.jboss.test.JBossTestCase$1.tearDown(JBossTestCase.java:252)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java)
-----
Java Version 1.3.1_03
Java Vendor Sun Microsystems Inc.
Java VM Name Java HotSpot(TM) Client VM
Java VM Version 1.3.1_03-b03
Java VM Info mixed mode
OS Name Windows 2000
OS Version 5.0
OS Arch x86
Thanks
JG -
4. Re: Jboss3 Template w/ Eclipse
javaguy Jul 14, 2002 7:05 PM (in response to javaguy)Marc,
Thanks for the help. I finally got the Jboss3 template project to work. Eventually, I going to post a section on my page to talk through the whole ordeal, which is not bad at all. I going to do an example web app using struts and one using webwork with all the steps using MySql of course.
Thanks
JG -
5. Re: Jboss3 Template w/ Eclipse
twest Jul 16, 2002 1:43 PM (in response to javaguy)I would be very interested in how you got the template project to work within eclipse.
Thanks
Bye