Mark,
I have checked all my CLASSPATH statements. I do not have CLASSPATH points to
struts-example, but I have this CLASSPATH:
setenv CLASSPATH ${CLASSPATH}':'$XML/jaxp.jar:$XML/parser.jar
where XML - directory with jaxp1.0.1
Maybe this is your problem?
Maya
Mark Davidson wrote:
> I posted another message to the list after my initial one, but I wanted to
> follow up to Maya's helpful reply.
>
> Maya, I found this to not be the whole story. Yes, you put the .war file in
> the webapps directory and restart Tomcat, and Tomcat does unpack the .war
> file... but the example can't find any pieces of itself because they aren't
> in the classpath for the servlet for some reason. If you quit Tomcat, point
> your classpath to the unpacked .class files and restart Tomcat, all problems
> go away... but I find it difficult to believe that this is the right way to
> do this.
>
> Mark
>
> P.S. If you'd rather discuss this one-on-one, feel free to reply directly
> to me.
>
> > -----Original Message-----
> > From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001 5:09 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Struts example doesn't work???
> >
> >
> > I have this error, and a "fix" was very simple: you need to follow the
> > installation instructions. If you have got a nightly binary
> > build, unjar it.
> > Under a subdirectory jakarta-struts read README file. Here is
> > some extract from
> > it and you need to do ONLY this:
> >
> > - Install the Struts example application by deploying file
> > "lib/struts-example.war" into your servlet container, using
> > the standard
> > techniques supported by that container. (For Tomcat,
> > simply copy this
> > file to the $TOMCAT_HOME/webapps directory and restart Tomcat).
> >
> > - Restart Tomcat.
> >
> > All the rest Tomcat will do automatically for you.
> >
> >
> > Mark Davidson wrote:
> >
> > > I've seen other people post about this problem, but I
> > really haven't seen a
> > > good answer to why this problem is occurring... I'm hoping
> > someone can
> > > enlighten this poor soul as to what's going on.
> > >
> > > I've downloaded the Struts nightly binary build (I've actually tried
> > > several; all do this), and placed the struts.jar file in
> > Tomcat's tree (as
> > > per the instructions). I've also placed the .war files in
> > the webapps
> > > directory. Tomcat gets started, sees the .war files and
> > proceeds to unpack
> > > everything.
> > >
> > > Problem is... the example app doesn't work. If you try to go to
> > > http://localhost:8080/struts-example, the system proceeds
> > to do whatever it
> > > needs to do to compile the JSP pages, then throws an error 500:
> > >
> > > Location: /struts-example/index.jsp
> > > Internal Servlet Error:
> > >
> > > javax.servlet.ServletException: Missing message for key index.title
> > > at java.lang.Throwable.(Throwable.java:96)
> > > at java.lang.Exception.(Exception.java:44)
> > > at
> > javax.servlet.ServletException.(ServletException.java:161)
> > > at
> > >
> > org.apache.jasper.runtime.PageContextImpl.handlePageException(
> > PageContextImp
> > > l.java:459)
> > > at
> > >
> > _0002findex_0002ejspindex_jsp_2._jspService(_0002findex_0002ej
> > spindex_jsp_2.
> > > java:381)
> > >
> > > ... the rest of the trace is removed to keep this message small.
> > >
> > > >From looking at the code, it seems that the code is having
> > problems loading
> > > the ApplicationResources.properties file (where the text
> > for index.title
> > > is). The file is definitely there, in the
> > org.apache.struts.example tree.
> > >
> > > I've seen other postings from people using both Tomcat and
> > Weblogic, and
> > > having the same problem. My question is... why? I know
> > some people have
> > > suggested unpacking the war file and struts.jar file so
> > they can be in your
> > > classpath, but I would love to know the reason behind this issue.
> > >
> > > Any ideas or suggestions would be greatly appreciated.
> > >
> > > ---
> > > Mark E. Davidson
> > > [EMAIL PROTECTED]
> > > Sr. Server Engineer "The same
> > thing that makes you
> > > live,
> > > 1704 Automation Pkwy can kill you
> > in the end."
> > > San Jose, CA 95131 -- Neil Young
> > > Phone: 408-503-1085
> > > Fax: 408-503-1185
> >