LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   tomcat webapp deploying in windows but not in linux (https://www.linuxquestions.org/questions/linux-newbie-8/tomcat-webapp-deploying-in-windows-but-not-in-linux-4175424653/)

mlnm 08-29-2012 04:36 PM

tomcat webapp deploying in windows but not in linux
 
Hi,im trying to deploy my project on tomcat 7 in rhel5
i deployed it in windows machine it works perfectly.But it doesnt on rhel5.In the catalina.out log it shows ERROR LiSTNER START.
And im getting following error on tomcat :
404 -the resource not found.
And the catalina.out log shows this:

SEVERE: Parse error in application web.xml file at jndi:/localhost/CypherLogics/WEB-INF/web.xml
org.xml.sax.SAXParseException; systemId: jndi:/localhost/CypherLogics/WEB-INF/web.xml; lineNumber: 18; columnNumber: 19; Error at (18, 19) : Can't convert argument: null
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2687)
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2719)
at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1054)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFra gmentScannerImpl.java:1741)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XM LDocumentFragmentScannerImpl.java:2898)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragm entScannerImpl.java:488)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
at org.apache.catalina.startup.ContextConfig.parseWebXml(ContextConfig.java:1825)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1201)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:345)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.IllegalArgumentException: Can't convert argument: null
at org.apache.tomcat.util.IntrospectionUtils.convert(IntrospectionUtils.java:966)
at org.apache.tomcat.util.digester.CallMethodRule.end(CallMethodRule.java:476)

working fine on windows machine.

acid_kewpie 08-30-2012 08:56 AM

Rather than just putting it in bold, did you *read* the stack trace? What does line 18 of web.xml say?

mlnm 08-30-2012 10:58 AM

yea first i checked that but no error what so ever when i deployed the same project on windows machine.
I am getting desired webpage and all the contents from mysql database.Thanks for response..

guyonearth 08-30-2012 12:29 PM

Did you compare your web.xml files at line 18 on the Windows and Linux versions? What's the difference?

acid_kewpie 08-30-2012 01:59 PM

even when I mention it, you're not going to show us?? there is clearly *SOMETHING* wrong with it some how, without giving us some more information, why do you expect us to be able to help? I could guess at an incorrect file format? an ^M on the end maybe? Please don't expect us to be psychic here.


All times are GMT -5. The time now is 06:51 PM.