|
From: Leif M. <lei...@ta...> - 2008-11-21 06:21:53
|
Anand, The Wrapper itself does nothing that should affect this. Most likely there is something in your configuration which is different from the run.bat. One common problem is that the Wrapper may run a differennt JVM than the run.bat. This can lead to all kinds of problems. Please edit your run.bat so it does an echo of the java command rather than running it. Then modify your wrapper.conf file and add the wrapper.java.command.loglevel=INFO property and rerun. This will cause the Wrapper to display its java command line as well. You can now then compare the two and see what is different. My first guess is the JVM. The Wrapper may be looking for java.exe on the PATH while your run.bat is looking on JAVA_HOME/bin for example. If you are unsure, please post both of the above command lines and I will take a look at them for you. Cheers, Leif On Fri, Nov 21, 2008 at 10:10 AM, Anand HS <an...@gm...> wrote: > Hi, > I am facing a wierd error that fails to deploy an ejb library inside my ear > when I try to start JBOSS through Tanuki Wrapper only. > The error is about > > 16:54:46,218 ERROR [MainDeployer] Could not create deployment: > file:/D:/PSI-OPS-HOME/servers/jboss-4.2.3.GA/server/default/deploy/atlas-lc-ops.ear/corecccejb-1.0.jar > INFO | jvm 1 | 2008/11/18 16:54:46 | > org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the > right xml schema or define a valid DOCTYPE! > INFO | jvm 1 | 2008/11/18 16:54:46 | at > org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMetaData.java:339) > INFO | jvm 1 | 2008/11/18 16:54:46 | at > org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:166) > INFO | jvm 1 | 2008/11/18 16:54:46 | at > org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:541) > INFO | jvm 1 | 2008/11/18 16:54:46 | at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > INFO | jvm 1 | 2008/11/18 16:54:46 | at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > INFO | jvm 1 | 2008/11/18 16:54:46 | at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > INFO | jvm 1 | 2008/11/18 16:54:46 | at > java.lang.reflect.Method.invoke(Method.java:597) > > Although this seems that there is an error in my deployment descriptor, the > same ejb library is deployed succesfully when I start JBOSS through console > by using run.bat. > > The error is the same even when I use wrapper in console based mode. > > Has any faced a similar problem before. ? > Any pointers or solutions are most welcome. > > Thanks, > Anand -- Leif Mortenson President Tanuki Software, Ltd. 6-16-7-1001 Nishi-Kasai, Edogawa-ku Tokyo 134-0088 Japan Tel/Fax: +81-3-3878-0415 http://www.tanukisoftware.com lei...@ta... |