You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Arunkumar Balasubramanian <ar...@hotmail.com> on 2007/10/06 01:41:07 UTC

Modifying Java file changes are not reflected while running Tomcar Server

 
Hi
 
  I have downloaded source code online and were trying to reuse the files available to build my own application. I have MyEclipse IDE with Tomcat server on it. I am developing struts application. Here is what the problem I am running in to. 
 
 If I add all java, jsp, class, ear and war files available from source code (which I got online), pages are working fine. If I try to change method name (variable, get and set methods, property name in Form, action and jsp respectively) or add new method name (variable, get and set methods, property name in Form, action and jsp respectively), those changes are not reflected while running server.
 
 Even I restarted the server and workspace, I haven't got it working. This is what the error messages I am getting while running the server after altering the method name.
 org.apache.jasper.JasperException: An exception occurred processing JSP page /pages/Address.jsp at line 6

3: 
4: <html:html locale="true">
5: <head>
6: <title><bean:message key="welcome.title"/></title>
7: <html:base/>
8: </head>
9: <body bgcolor="white">


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause javax.servlet.ServletException: javax.servlet.jsp.JspException: Missing message for key "welcome.title"
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
	org.apache.jsp.pages.Address_jsp._jspService(Address_jsp.java:96)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause javax.servlet.jsp.JspException: Missing message for key "welcome.title"
	org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:235)
	org.apache.jsp.pages.Address_jsp._jspx_meth_bean_005fmessage_005f0(Address_jsp.java:154)
	org.apache.jsp.pages.Address_jsp._jspx_meth_html_005fhtml_005f0(Address_jsp.java:119)
	org.apache.jsp.pages.Address_jsp._jspService(Address_jsp.java:87)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
 
 If any one had run in to similiar issues or any one had an idea about how to rectify this, that would be of great help.
 
 Thanks
 
 
 
_________________________________________________________________
Climb to the top of the charts!  Play Star Shuffle:  the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct

Storing XML file which keeps updating

Posted by Arunkumar Balasubramanian <ar...@hotmail.com>.
 
Hi
 
 I was trying to store xml file which updates frequently. Here is what I was looking for.
 sample.xml is a file which keeps updating. I would like to store file upon changing. 
 For example, at 12.00 p.m, one sample.xml   
 file will be updated. At 12.01 p.m another set of data will be updated and goes on...
 
 I would like to store the file some where (I don't know where to, might be a database 
 or a temporary xml file or java objects). Either one should be fine, but I need to keep 
 track of updating and store the file at each change.
 
 I learned that Java 1.5 has some API specifications to do this. But I am not sure of 
 how to apply. Could any one in our group explain me about how to achieve this.
 
 Thank you and have a great day.
_________________________________________________________________
Climb to the top of the charts!  Play Star Shuffle:  the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct

[OT] Re: Error on Action, Form and on org.apache.struts names while changing .classpath file

Posted by Dave Newton <ne...@yahoo.com>.
--- Arunkumar Balasubramanian wrote:
>  I was updating .classspath file 

If you need to change these settings it's generally
better to do it from within the Eclipse UI by
right-clicking on the project and choosing
"Properties" from the context menu, then selecting
"Java Build Path" and defining what source folders are
to be used and where to put the compiled classes
(which can be set for all source folders or on an
individual basis).

The *best* solution is to ask questions like this on
an Eclipse and / or MyEclipse forum, though.

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Error on Action, Form and on org.apache.struts names while changing .classpath file

Posted by Arunkumar Balasubramanian <ar...@hotmail.com>.
 
Hi
 
 I was updating .classspath file as compatible to source code which I have inserted inside workspace. The reason for doing this is to make .classpath file compile java files and put in classes folder as specified. I was running in to issues like if I update .classpath file, then I am getting errors on Action, Form on names like Action, Form, request, response (guess the struts names are throwing errors here).
 
 Here is .classpath file which I have changed.
 
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var" path="TOMCAT_HOME/lib/servlet-api.jar"/>
<classpathentry kind="var" path="TOMCAT_HOME/lib/jasper.jar"/>
<classpathentry kind="var" path="TOMCAT_HOME/lib/jsp-api.jar"/>
<classpathentry kind="var" path="TOMCAT_HOME/lib/el-api.jar"/>
<classpathentry kind="var" path="TOMCAT_HOME/lib/annotations-api.jar"/>
<classpathentry kind="src" path="WEB-INF/src"/> - tried to change this path (but automatic compilation of code doesn't 
                                                                     occur here if I moved src out of WEB-INF
<classpathentry kind="src" output="work" path="work"/>
<classpathentry kind="output" path="WEB-INF/classes"/>
</classpath>
 
 I was trying some thing like not changing the .classpath file, rather arrange directories according to the file. But when I have Action or Form inside WEB_INF/src, error message appears on 
import org.apache.struts.action.*;
 
and on all other struts names like Action, request, response, etc...
 
  If any one could identify what the problem is and which one would be a solution for these kind of problems, that would be great.
 
 Thanks
 
 
 
 
_________________________________________________________________
Help yourself to FREE treats served up daily at the Messenger Café. Stop by today.
http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline

Re: Modifying Java file changes are not reflected while running Tomcar Server

Posted by Dave Newton <ne...@yahoo.com>.
--- Arunkumar Balasubramanian wrote:
>  org.apache.jasper.JasperException: An exception
> occurred processing JSP page /pages/Address.jsp at
> line 6
> 
> 3: 
> root cause javax.servlet.jsp.JspException: Missing
> message for key "welcome.title"

That means you don't have a message for the
"welcome.title" key in your resource files and doesn't
have anything to do with renaming the method name.

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org