File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes error in struts application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "error in struts application" Watch "error in struts application" New topic
Author

error in struts application

Kitti kits
Greenhorn

Joined: Sep 17, 2012
Posts: 3
hello,
I have developed an application in struts in eclipse indigo using java compile 1.7 and tried to deploy it on apache tomcat 7....but its is not working and constantly giving this kind of error shown below....

org.xml.sax.SAXParseException; systemId: jndi:/localhost/DGMS/WEB-INF/testSuitGenerator/struts-config-testSuitGenerator-transactions.xml; lineNumber: 43; columnNumber: 12; The content of element type "plug-in" must match "(set-property)*".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1647)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1006)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:482)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1201)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1114)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1021)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4957)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5284)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5279)
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)
653 [Thread-2] INFO tiles.TilesPlugin - Tiles definition factory loaded for module '/testSuitGenerator'.
681 [Thread-2] ERROR digester.Digester - Parse Error at line 81 column 11: The content of element type "plug-in" must match "(set-property)*".
org.xml.sax.SAXParseException; systemId: jndi:/localhost/DGMS/WEB-INF/global/struts-config-global-masters.xml; lineNumber: 81; columnNumber: 11; The content of element type "plug-in" must match "(set-property)*".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1647)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1006)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:482)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1201)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1114)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1021)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4957)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5284)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5279)
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)
712 [Thread-2] INFO tiles.TilesPlugin - Tiles definition factory loaded for module '/global'.
Sep 17, 2012 12:24:31 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Sep 17, 2012 12:24:31 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Sep 17, 2012 12:24:31 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3193 ms
KINDLY HELP
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Kitti,

first Validate your xml files. If it dosent solve your problem then check for the proper jar files and at the same time post the content of the xml file.

Regards
jatan
Kitti kits
Greenhorn

Joined: Sep 17, 2012
Posts: 3
thanks for your reply jatan...the application errors are removed...now wat i want to know is if a program is incompatible with operating system,will it be installed on it???or will it cause problems in running even if it is installed properly???
Actually i am using windows 7 and i have to use oracle 10g as database and as far as i know oracle 10g is not compatible with windows 7....but despite this it is perfeclty installed....but when i tried to connect it with my application there are some exceptions.....kindly tell me wat to do???
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Kitti,

IF your oracle is not installed properly you can try Oracle 10g Release 2 with window7 . It is compatible with vista and windows7. first check whether its properly installed or not.
If its properly installed then post the Exception with require code , will definitely help you.

Regards
Jatan
Kitti kits
Greenhorn

Joined: Sep 17, 2012
Posts: 3
hello jatan,
finally i have formatted my system n installd windows xp.now the problm is my server apache tomcat 7 is not getting started for my application n its showing that some other processes or applications are using the server which needs to b closed,but m not finding any such applications.also I have to change the java compiler from 1.4 to 1.7 in eclipse indigo but 1.7 is not shown in the list.kindly help me.

regards sakshi
Shailesh Narkhede
Ranch Hand

Joined: Jul 10, 2008
Posts: 368
Hi,

are you installed java 1.7 before installing tomcat 7?
when you are getting error, is it at the time of startup of tomcat or deploying an your application?
which version of struts you are using?
can you post a example you are trying to deploy?


Thanks,
Shailesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error in struts application