RE: Websphere 4 Tiles
I do not know what is causing your error, but I can tell you we have an application running using Websphere 4.0 with struts 1.0.2 and tiles. -Original Message- From: Daemi, Anusch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 9:05 AM To: '[EMAIL PROTECTED]' Subject: Websphere 4 Tiles Hi I'm trying to get Tiles working under Websphere 4 with no luck yet. Tiles version is that for Struts 1.0.2. I get the following error message (in using definitions): Error 500: Can't get definitions factory from context. I've tried the application under tomcat 4.0.3 and it works fine. Have i missed something in the websphere configuration or does tiles don't work with websphere?!?! Thnx 4 your help Anusch Daemi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Where is the source for ActionMappingFactory?
I am trying to debug the problem described below and was wondering where the source for org.apache.struts.config.ActionMappingFactory could be found. I seem to be only able to find a .class file. -Original Message- From: Steve Hupert [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 5:20 PM To: Struts Users Mailing List Subject: Struts 1.1b-1 struts-config.xml parsing issues. I am sure I am missing something in the setup/configuration of beta release. I am having problems getting the application to start without getting a null pointer exception during the parsing of struts-config.xml. I was originally attempting to get this to work using Websphere 4.0. However, after reviewing similar problems being reported on the mailing list I decided to attempt to try set things up using Tomcat 4.0.3. Here what I have done so far: 1) I have JAVA_HOME pointing to the Java SDK. (version 1.3 from IBM) 2) I have installed Tomcat 4.0.3 on my computer. (Windows 2000 Professional) 3) I have verified the Tomcat install is working by running some of the JSP Examples. 4) I downloaded the library version of struts 1.1-b1 and copied struts-documentation.war and struts-blank.war to the webapps directory. 5) I restarted Tomcat and observed errors parsing strtus-config.xml for the struts-blank project. 6) I copied xerces.jar from tomcat/common/lib to WEB-INF/lib directory for struts-blank. 7) I restarted Tomcat and get the following error when parsing reaches the action section of struts-config.xml for the struts-blank project: startElement(,action,action) New match='struts-config/action-mappings/action' Begin event threw exception java.lang.NullPointerException at org.apache.struts.config.ActionMappingFactory.createObject(ConfigRuleSet.jav a:335) at org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:1 72) . . . [ERROR] ActionServlet - -Parsing error processing resource path /WEB-INF/struts- config.xml java.lang.NullPointerException Struts-documenation works fine. Please let me know if more information from the console would help to understand this problem. I have seen some postings about moving the dtd files out struts.jar to help resolve this type of an issue, does anyone think this is the case in the configuration described above? I am also intrested to know who has used the binary distribution of struts 1.1b1 in a Tomcat 4.0.3 environment. Did you have similar problems? What XML parser are you using? I have tried to place other XML parsers in the lib directory and receive similar errors. Finally, I have been using struts 1.0.2 for a while, but I am new to posting questions to the mailing list (since the documentation and searching the mailing lists always answered my questions for 1.0.2). If you have any recommendations on how I could improve this posting please let me know. Thanks in advance for any input you can provide, Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Where is the source for ActionMappingFactory?
Just to make sure it is clear, I am looking for the ActionMappingFactory.java in jakarta-struts-1.1-b1-src.zip. -Original Message- From: Steve Hupert [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 4:31 PM To: Struts Users Mailing List Subject: Where is the source for ActionMappingFactory? I am trying to debug the problem described below and was wondering where the source for org.apache.struts.config.ActionMappingFactory could be found. I seem to be only able to find a .class file. -Original Message- From: Steve Hupert [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 5:20 PM To: Struts Users Mailing List Subject: Struts 1.1b-1 struts-config.xml parsing issues. I am sure I am missing something in the setup/configuration of beta release. I am having problems getting the application to start without getting a null pointer exception during the parsing of struts-config.xml. I was originally attempting to get this to work using Websphere 4.0. However, after reviewing similar problems being reported on the mailing list I decided to attempt to try set things up using Tomcat 4.0.3. Here what I have done so far: 1) I have JAVA_HOME pointing to the Java SDK. (version 1.3 from IBM) 2) I have installed Tomcat 4.0.3 on my computer. (Windows 2000 Professional) 3) I have verified the Tomcat install is working by running some of the JSP Examples. 4) I downloaded the library version of struts 1.1-b1 and copied struts-documentation.war and struts-blank.war to the webapps directory. 5) I restarted Tomcat and observed errors parsing strtus-config.xml for the struts-blank project. 6) I copied xerces.jar from tomcat/common/lib to WEB-INF/lib directory for struts-blank. 7) I restarted Tomcat and get the following error when parsing reaches the action section of struts-config.xml for the struts-blank project: startElement(,action,action) New match='struts-config/action-mappings/action' Begin event threw exception java.lang.NullPointerException at org.apache.struts.config.ActionMappingFactory.createObject(ConfigRuleSet.jav a:335) at org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:1 72) . . . [ERROR] ActionServlet - -Parsing error processing resource path /WEB-INF/struts- config.xml java.lang.NullPointerException Struts-documenation works fine. Please let me know if more information from the console would help to understand this problem. I have seen some postings about moving the dtd files out struts.jar to help resolve this type of an issue, does anyone think this is the case in the configuration described above? I am also intrested to know who has used the binary distribution of struts 1.1b1 in a Tomcat 4.0.3 environment. Did you have similar problems? What XML parser are you using? I have tried to place other XML parsers in the lib directory and receive similar errors. Finally, I have been using struts 1.0.2 for a while, but I am new to posting questions to the mailing list (since the documentation and searching the mailing lists always answered my questions for 1.0.2). If you have any recommendations on how I could improve this posting please let me know. Thanks in advance for any input you can provide, Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts 1.1b-1 struts-config.xml parsing issues.
I am sure I am missing something in the setup/configuration of beta release. I am having problems getting the application to start without getting a null pointer exception during the parsing of struts-config.xml. I was originally attempting to get this to work using Websphere 4.0. However, after reviewing similar problems being reported on the mailing list I decided to attempt to try set things up using Tomcat 4.0.3. Here what I have done so far: 1) I have JAVA_HOME pointing to the Java SDK. (version 1.3 from IBM) 2) I have installed Tomcat 4.0.3 on my computer. (Windows 2000 Professional) 3) I have verified the Tomcat install is working by running some of the JSP Examples. 4) I downloaded the library version of struts 1.1-b1 and copied struts-documentation.war and struts-blank.war to the webapps directory. 5) I restarted Tomcat and observed errors parsing strtus-config.xml for the struts-blank project. 6) I copied xerces.jar from tomcat/common/lib to WEB-INF/lib directory for struts-blank. 7) I restarted Tomcat and get the following error when parsing reaches the action section of struts-config.xml for the struts-blank project: startElement(,action,action) New match='struts-config/action-mappings/action' Begin event threw exception java.lang.NullPointerException at org.apache.struts.config.ActionMappingFactory.createObject(ConfigRuleSet.jav a:335) at org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:1 72) . . . [ERROR] ActionServlet - -Parsing error processing resource path /WEB-INF/struts- config.xml java.lang.NullPointerException Struts-documenation works fine. Please let me know if more information from the console would help to understand this problem. I have seen some postings about moving the dtd files out struts.jar to help resolve this type of an issue, does anyone think this is the case in the configuration described above? I am also intrested to know who has used the binary distribution of struts 1.1b1 in a Tomcat 4.0.3 environment. Did you have similar problems? What XML parser are you using? I have tried to place other XML parsers in the lib directory and receive similar errors. Finally, I have been using struts 1.0.2 for a while, but I am new to posting questions to the mailing list (since the documentation and searching the mailing lists always answered my questions for 1.0.2). If you have any recommendations on how I could improve this posting please let me know. Thanks in advance for any input you can provide, Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: checking action name
In the perform method of my action class, I have stored the path attribute of the forward being returned from the mapping object as an attribute in the request. I can then access the path from JSP pages to determine what lead me to the JSP page. For example in the perform method: request.setAttribute(path, mapping.findForward(success).getPath()); Then in the JSP page: bean:write name=path/ will give me the path that resulted in this JSP being called. If anyone has better ideas on how to handle this, I would like to hear about them as well. -Original Message- From: Mike Dewhirst [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 7:18 AM To: 'Struts Users Mailing List' Subject: checking action name Is it possible to find in the JSP what action mapping has lead us there? Is there a parameter in the request? Thanks in advance, Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts 1.1b-1 - Parsing error processing resource path /WEB-INF/struts-config.xml
Thanks for your response. I have tried what you indicated and continue to have the same problem. Additionally, I attempted to place all of the jar files from java_xml_pack-spring02-dev\jaxp-1.2-ea2 (dom, jaxp-api, sax, xalan, xercesimpl, and xsltc) in my WEB-INF/lib directory and rebuilt (removing the XERCESJAR entry for this test). This causes the same failure with a slightly different error stack: at org.apache.commons.digester.Digester.createSAXException(Digester.java:1763) at org.apache.commons.digester.Digester.createSAXException(Digester.java:1785) at org.apache.commons.digester.Digester.startElement(Digester.java:942) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:445) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML DocumentParser.java:216) at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBin der.java:829) at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja va:590) at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java :829) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:748) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1454) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:333) at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo nfiguration.java:525) at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo nfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:115 7) at org.apache.commons.digester.Digester.parse(Digester.java:1206) In addition to ideas for what a solution to this problem, I also am open for direction on how I can go about debugging this problem. Thanks again for any input. -Original Message- From: Enrique M. Almonte [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 7:52 PM To: [EMAIL PROTECTED] Subject: Re: Struts 1.1b-1 - Parsing error processing resource path /WEB-INF/struts-config.xml Hi, you must assign the variable XERCESJAR to your project (right click, properties, java build path, add variable), and check the order must be before the source folder of your project. Enrique. - Original Message - From: Steve Hupert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 20, 2002 1:38 PM Subject: Struts 1.1b-1 - Parsing error processing resource path /WEB-INF/struts-config.xml I am attempting to create the struts-blank application from jakarta-struts-1.1b1-lib.zip using Websphere Studio Application Developer 4.0.2. When I attempt to start the application server (The Websphere v4 Test Server) I receive the following error: java.lang.NullPointerException at org.apache.commons.digester.Digester.createSAXException(Digester.java:1763) at org.apache.commons.digester.Digester.createSAXException(Digester.java:1785) at org.apache.commons.digester.Digester.startElement(Digester.java:942) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat or.java:1214) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne r.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM LDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j ava:774) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:417) at javax.servlet.GenericServlet.init(GenericServlet.java:258) . . . at com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.ja va) [ERROR] ActionServlet - -Parsing error processing resource path /WEB-INF/struts-config.xml java.lang.NullPointerException I noticed other people have posted messages for similar problems and they were usually related to problems with the XML parser. By default, WSAD 4.0 is using Xerces 3.2.1. I have also attempted to add crimson.jar and xalan.jar from Suns fall xml release to WEB-INF/lib. This resulted in a similar error. I have been using the environment described above (WSAD 4.0, Xerces 3.2.1) successfully to develop software using Struts 1.02. If there is any additional information I can provide, please let me know. Thanks in advance for any help on this problem
RE: Page wrapper element?
You may also want to look at the tiles framework (included in the 1.1 beta or at http://www.lifl.fr/~dumoulin/tiles/) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 12:30 PM To: [EMAIL PROTECTED] Subject: Page wrapper element? Hi, I was wondering if anyone has some pointers on how to create sort of a 'page wrapper' with struts. I figure someone has tried something like this before All of my pages have the same layout: __ | header | |__| || | || | |navi| page body | || | || | || | ||_| | footer | |__| The only item that is different from page to page is the 'page body' portion. I'd like to avoid having the table structure and three includes (header, navi, and footer) for each .jsp I create. It would be much better if I could do something like: pagewrapper: page body stuff in here. /pagewrapper Is there anything out there already that does something like this? Thanks in advance, Eric. ** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts 1.1b-1 - Parsing error processing resource path /WEB-INF/struts-config.xml
I am attempting to create the struts-blank application from jakarta-struts-1.1b1-lib.zip using Websphere Studio Application Developer 4.0.2. When I attempt to start the application server (The Websphere v4 Test Server) I receive the following error: java.lang.NullPointerException at org.apache.commons.digester.Digester.createSAXException(Digester.java:1763) at org.apache.commons.digester.Digester.createSAXException(Digester.java:1785) at org.apache.commons.digester.Digester.startElement(Digester.java:942) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat or.java:1214) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne r.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM LDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j ava:774) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:417) at javax.servlet.GenericServlet.init(GenericServlet.java:258) . . . at com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.ja va) [ERROR] ActionServlet - -Parsing error processing resource path /WEB-INF/struts-config.xml java.lang.NullPointerException I noticed other people have posted messages for similar problems and they were usually related to problems with the XML parser. By default, WSAD 4.0 is using Xerces 3.2.1. I have also attempted to add crimson.jar and xalan.jar from Suns fall xml release to WEB-INF/lib. This resulted in a similar error. I have been using the environment described above (WSAD 4.0, Xerces 3.2.1) successfully to develop software using Struts 1.02. If there is any additional information I can provide, please let me know. Thanks in advance for any help on this problem. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]