RE: Help with Resources !!
The struts.jar should contain the property file. This is how I fixed this problem. And check whether the web.xml has the right path to the property file. Jyothi -Original Message- From: suhas [mailto:[EMAIL PROTECTED]] Sent: Monday, July 03, 2000 4:09 AM To: [EMAIL PROTECTED] Subject: Re: Help with Resources !! Dunno . but u can try this. check ur application's web-inf/lib folder . should have struts.jar in it Then do not set any classpath to struts.jar using "set classpath = " explicitely . that's what I read in mailing list before Check this out Suhas - Original Message - From: Debasish Ghosh <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 03, 2001 7:05 AM Subject: Re: Help with Resources !! > Yes, it is there. Actually I am trying to run the > struts-example application that came with Struts. I > checked that the ApplicationResources file is in > proper place and contains the key : index.title. > > I am running on Windows NT. Actually I looked up the > mail archive and found a similar problem faced by a > Windows 2000 user. No solution to this problem was > posted in the thread. > > --- Pham Thanh Quan <[EMAIL PROTECTED]> wrote: > > Whether there is the key index.title in your > > ApplicationResources file or > > not ? > > > > - Original Message - > > From: Debasish Ghosh <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, July 03, 2001 11:17 AM > > Subject: Help with Resources !! > > > > > > > Hello All - > > > > > > I am new to Struts and trying to run the Struts > > > example applications. When I am starting Tomcat, > > > everything loads fine (as found in the > > > $TOMCAT_HOME/logs/servlet.log file). In fact the > > > following gets logged in the file : > > > > > > 2001-07-02 08:38:46 - path="/struts-example" :jsp: > > > init > > > 2001-07-02 08:38:46 - path="/struts-example" > > > :database: init > > > 2001-07-02 08:38:46 - path="/struts-example" > > > :database: Initializing database servlet > > > 2001-07-02 08:38:46 - path="/struts-example" > > > :database: Loading database from > > > '/WEB-INF/database.xml' > > > 2001-07-02 08:38:46 - path="/struts-example" > > :action: > > > init > > > 2001-07-02 08:38:46 - path="/struts-example" > > :action: > > > Loading application resources from resource > > > org.apache.struts.example.ApplicationResources > > > 2001-07-02 08:38:46 - path="/struts-example" > > :action: > > > Initializing configuration from resource path > > > /WEB-INF/struts-config.xml > > > 2001-07-02 08:38:46 - path="/struts-example" > > :action: > > > Process servletName=action, urlPattern=*.do > > > 2001-07-02 08:38:46 - path="/struts-example" > > :action: > > > Mapping for servlet 'action' = '*.do' > > > > > > But when I try to run the application in > > > struts-example, I get the following error : > > > > > > javax.servlet.ServletException: Missing message > > for > > > key index.title > > > > > > But the ApplicationResources file is in proper > > place, > > > as given in the configuration files. > > > > > > Any help will be appreciated. > > > > > > Cheers. > > > > > > - Debasish > > > > > > __ > > > Do You Yahoo!? > > > Get personalized email addresses from Yahoo! Mail > > > http://personal.mail.yahoo.com/ > > > > > > > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/
Two Problems
Hi everyone, I have two problems, which I am not able to fix. The parser.jar is in my classpath, my library but when I try to run ant dist, I get the following error and these classes are in parser.jar. I have checked my classpath and library many times. The second problem is the applicationResources is unavailable to the Jsp file. I have checked the web.xml and the applicationResource path is right but I am still unable to load it. Thanks, Jyothi [javadoc] Loading source files for package org.apache.struts.taglib.template.u til... [javadoc] Loading source files for package org.apache.struts.upload... [javadoc] Loading source files for package org.apache.struts.util... [javadoc] Constructing Javadoc information... [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\action\Act ionServlet.java:91: Class org.xml.sax.AttributeList not found in import. [javadoc] import org.xml.sax.AttributeList; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\action\Act ionServlet.java:92: Class org.xml.sax.SAXException not found in import. [javadoc] import org.xml.sax.SAXException; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\R ule.java:66: Class org.xml.sax.AttributeList not found in import. [javadoc] import org.xml.sax.AttributeList; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\S etPropertiesRule.java:67: Class org.xml.sax.AttributeList not found in import. [javadoc] import org.xml.sax.AttributeList; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\S etNextRule.java:67: Class org.xml.sax.AttributeList not found in import. [javadoc] import org.xml.sax.AttributeList; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\S etPropertyRule.java:67: Class org.xml.sax.AttributeList not found in import. [javadoc] import org.xml.sax.AttributeList; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\C allParamRule.java:67: Class org.xml.sax.AttributeList not found in import. [javadoc] import org.xml.sax.AttributeList; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\C allMethodRule.java:67: Class org.xml.sax.AttributeList not found in import. [javadoc] import org.xml.sax.AttributeList; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\D igester.java:76: Class javax.xml.parsers.SAXParser not found in import. [javadoc] import javax.xml.parsers.SAXParser; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\D igester.java:77: Class javax.xml.parsers.SAXParserFactory not found in import. [javadoc] import javax.xml.parsers.SAXParserFactory; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\D igester.java:79: Class org.xml.sax.AttributeList not found in import. [javadoc] import org.xml.sax.AttributeList; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\D igester.java:80: Class org.xml.sax.DocumentHandler not found in import. [javadoc] import org.xml.sax.DocumentHandler; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\D igester.java:81: Class org.xml.sax.EntityResolver not found in import. [javadoc] import org.xml.sax.EntityResolver; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\D igester.java:82: Class org.xml.sax.ErrorHandler not found in import. [javadoc] import org.xml.sax.ErrorHandler; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\D igester.java:83: Class org.xml.sax.HandlerBase not found in import. [javadoc] import org.xml.sax.HandlerBase; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\D igester.java:84: Class org.xml.sax.InputSource not found in import. [javadoc] import org.xml.sax.InputSource; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\D igester.java:85: Class org.xml.sax.Locator not found in import. [javadoc] import org.xml.sax.Locator; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\D igester.java:86: Class org.xml.sax.SAXException not found in import. [javadoc] import org.xml.sax.SAXException; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digester\D igester.java:87: Class org.xml.sax.SAXParseException not found in import. [javadoc] import org.xml.sax.SAXParseException; [javadoc]^ [javadoc] C:\strutsFiles\jakarta-struts\src\share\org\apache\struts\digest
missing a jar - build failed
Hi all, Can anyone tell me which jar I am missing a s I get the message below when I try to build. Thanks, Jyothi C:\strutsFiles\jakarta-struts\build.xml:188: java.lang.NoClassDefFoundError: jav ax/xml/transform/Source --- Nested Exception --- java.lang.NoClassDefFoundError: javax/xml/transform/Source at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.tools.ant.taskdefs.XSLTProcess.setProcessor(XSLTProcess.ja va:229) at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:13 7) at org.apache.tools.ant.Target.execute(Target.java:153) at org.apache.tools.ant.Project.runTarget(Project.java:898) at org.apache.tools.ant.Project.executeTarget(Project.java:536) at org.apache.tools.ant.Project.executeTargets(Project.java:510) at org.apache.tools.ant.Main.runBuild(Main.java:421) at org.apache.tools.ant.Main.main(Main.java:149)