-
1. Re: ear not deployed in JBoss start up with derby database
jaikiran Nov 18, 2009 3:00 AM (in response to akhilachuthan)"akhilachuthan" wrote:
Jboss gives an impression that it has started, when i look in inside my ear is not noticed by jboss at all......
Please explain what that means. -
2. Re: ear not deployed in JBoss start up with derby database
akhilachuthan Nov 18, 2009 7:19 AM (in response to akhilachuthan)Im using a notification framework to check whether jboss is started successfully or not... This shows jboss as started after the a few seconds....
But the ear that put inside the deploy folder is not deployed with jboss. A couple of exceptions that i see in the log on the way of server startup are given below....
org.jboss.deployers.spi.DeploymentException: Error deploying: file:/D:/WORKSPACES/05_oct_09/dnms/output/DNMS/EMS/server/ems/conf/bootstrap/vfs.xml
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:136)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.initBootstrapMDs(ProfileServiceBootstrap.java:433)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:250)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: ClassLoader has not been set
at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit.getClassLoader(AbstractDeploymentUnit.java:154)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:60)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
... 6 more
------------------------------------------------------------------------------------------
org.jboss.deployers.spi.DeploymentException: Error deploying: file:/D:/WORKSPACES/05_oct_09/dnms/output/DNMS/EMS/server/ems/conf/bootstrap/logging.xml
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:136)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.initBootstrapMDs(ProfileServiceBootstrap.java:433)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:250)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: ClassLoader has not been set
at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit.getClassLoader(AbstractDeploymentUnit.java:154)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:60)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
... 6 more
----------------------------------------------------------------------------------------------
Once when i get the notification that the jboss is started, any of my methods try for a remote/local lookup, and i am thrown the foll exception. I looked into jmx console and saw nothing(neither my ejb jars, nor my way) is bound to jboss..
Error in getting Local Object
javax.naming.NameNotFoundException: myEar not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.temp.nms.util.LocalLookupManager.getLocalObject(LocalLookupManager.java:55)
at com.temp.nms.server.startup.PostServerInit.getModules(PostServerInit.java:61)
at com.temp.nms.server.startup.PostServerInit.doPostOperation(PostServerInit.java:30)
at com.temp.nms.server.startup.DeploymentChecker.run(DeploymentChecker.java:73)
2009-11-18 17:34:40,640 ERROR [com.temp.nms.server.startup.PostServerInit] javax.naming.NameNotFoundException: myEar not bound -
3. Re: ear not deployed in JBoss start up with derby database
akhilachuthan Nov 19, 2009 1:42 AM (in response to akhilachuthan)Not sure where i missed earlier, but my jboss server also does not look as if started....
i mean - http://localhost:8080 - does not open up....... -
4. Re: ear not deployed in JBoss start up with derby database
wolfgangknauf Nov 20, 2009 8:51 AM (in response to akhilachuthan)Hi akhilachuthan,
did you define a custom configuration? The path "file:/D:/WORKSPACES/05_oct_09/dnms/output/DNMS/EMS/server/ems/conf/bootstrap/vfs.xml" does not look like the standard JBoss "installation" path. So, what did you do to create this ;-)?
Wolfgang -
5. Re: ear not deployed in JBoss start up with derby database
akhilachuthan Nov 23, 2009 3:54 AM (in response to akhilachuthan)thats the JBossVFS initializer configuration file.
This derby stuff had worked with me previously when i was using jboss4. -
6. Re: ear not deployed in JBoss start up with derby database
wolfgangknauf Nov 23, 2009 8:55 AM (in response to akhilachuthan)Hi,
probably my question was not precise enough. Your path indicates that you did not use one of the standard jboss configurations (as "default", "standard", "minimal", "all"), but created a custom configuration. Is this true?
Maybe you missed some important part, and the configuration is broken?
Best regards
Wolfgang -
7. Re: ear not deployed in JBoss start up with derby database
akhilachuthan Dec 1, 2009 12:56 AM (in response to akhilachuthan)yup, thats right.. im using my custom configuration as ems.
Should that have broken anything?? I will check it out..
Is there any configuration specific to the db, that has to be done while using a custom configuration folder.. Coz this same setup works just fine for oracle and mysql, and had worked good when i was using the old jb4... Once after migrating to jboss5 i havnt done anything with derby and now see that its broken. Oracle and mysql works fine even now.... -
8. Re: ear not deployed in JBoss start up with derby database
wolfgangknauf Dec 1, 2009 10:52 AM (in response to akhilachuthan)Hi,
according to the error message, JBoss cannot even startup without your app being deployed to it, so it seems you have missed sometheing when building the configuration. Check this twice, and try to start your server without your app deployed. Probably, it will not start, too.
Best regards
Wolfgang