|
From: Leif M. <lei...@ta...> - 2010-07-05 20:13:17
|
Niambh, My first guess is that you are using the wrong JVM. By default, the Wrapper locates a JVM on the system path. this can be different when running as a service vs running in a console. Please add the wrapper.java.command.loglevel=INFO property and make sure that the JVM being used is valid. If that is the problem then you can be more specific with the following property as follows: wrapper.java.command=%JAVA_HOME%/bin/java Please let me know how this works for you. Cheers, Leif On Tue, Jul 6, 2010 at 3:45 AM, Niambh Scullion <NSc...@cu... > wrote: > Hi Guys, > > > > I hope someone can be of help to me, I am creating a service as part of an > XMLServer installation. When I install my XMLServer via the control panle, > when I start my service, the service as expected starts successfully. > However when I restart or stop my service the following error is appearing > in the log: > > > > The version of Xerces, the xmlserver build file is using is > xerces-2.9.1.jar. > > > > BUILD FAILED > > INFO | jvm 1 | 2010/07/05 16:25:25 | java.lang.ClassCastException: > org.apache.xerces.parsers.XIncludeAwareParserConfiguration > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.tools.ant.util.JAXPUtils.newSAXParser(JAXPUtils.java:215) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:172) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:185) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:93) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.tools.ant.Main.runBuild(Main.java:743) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.tools.ant.Main.startAnt(Main.java:217) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > java.lang.reflect.Method.invoke(Method.java:585) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.tanukisoftware.wrapper.WrapperStartStopApp.stop(WrapperStartStopApp.java:423) > > INFO | jvm 1 | 2010/07/05 16:25:25 | at > org.tanukisoftware.wrapper.WrapperManager$13.run(WrapperManager.java:3341) > > > > The thing is, when I stop the service via the command prompt, it stops > successfully > > C:\Curam\XmlServer\bin>Wrapper.exe -r ..\conf\wrapper.conf > > wrapper | Service is running. Stopping it... > > wrapper | Curam XML Server service stopped. > > wrapper | Curam XML Server service removed. > > > > Has any one seen this issue before? > > > > Many thanks in advance, > > Niambh > |