Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / April 2004

Tip: Looking for answers? Try searching our database.

Jakarta Struts + Tomcat + Eclipse gives me a big: w00t!

Thread view: 
Florian B?tow - 03 Apr 2004 14:23 GMT
Hi!

I am trying to develop a nice model 2 based project with Jakarta Struts
(1.1), Eclipse (3M7) and Tomcat (5.0).
Tomkat works perfect, I can deploy war files withour problems and I can
write my own JSP's inside
Eclipse using the SYSDEO Tomcat Plugin. And I can access the weblications
without any hassle.

When I put the struts .war files into the /webapp folder of Tomcat they get
deployed like they are suposed to
and they run very well inside the JSP/Servlet Container.

When I rename the struts-blank.war file to myproject.war and deploy it in
the webcontainer everything is ok too.

Now the whining starts:

As soon as I edit the <display-name> tag so that the webapp shows the name
of my project. I get a freaking:

HTTP Status 500 -

exception

javax.servlet.ServletException: Missing message for key "welcome.title"

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:867)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:800)
org.apache.jsp.pages.Welcome_jsp._jspService(Welcome_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)

org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
r.java:274)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:455)

org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequ
estProcessor.java:320)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

It does not make any difference if I undo the changes I made and restart
Tomcat or not.
I tried deleting the work dir to force recompilation but notthing happens.

It's like the whole code is haunted. The only thing that helps is to rm the
webaplication and redeploy it.
If I remove the .war file or not doesn't make any difference either.

Google told me that restarting the webcontainer would help. But it does not.

Any ideas on this are very welcome. (And dont tell me to use anoter ide or
sth :P)

Florian
Xavier Tarrago - 05 Apr 2004 09:43 GMT
The app expects a resource file defining key "welcome.title", but connot
find it.

May be the <display-name> tag is used to find the application resource file.
You could search resource files for string welcome.title.
It should be used in the Welcome.jsp and defined in a resource file.
Then try to find how the resource file is defined, and why it is not found
when you change the <display-name>

Good luck...

> As soon as I edit the <display-name> tag so that the webapp shows the name
> of my project. I get a freaking:
[quoted text clipped - 4 lines]
>
> javax.servlet.ServletException: Missing message for key "welcome.title"

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
> mpl.java:867)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:800)
>  org.apache.jsp.pages.Welcome_jsp._jspService(Welcome_jsp.java:81)
>  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.