Re: Facing “Javax.servlet.servletException: c annot connect to windows server”. error
Dear prakash.s, I had visited the link suggested by you, please let me know how to change the java property "-Djava.awt.headless=true" Is it just enough to type the command prompt? For tomcat, you can either edit catalina.sh and add it after the Java command, for example. Google for "tomcat JAVA_OPTS". -- Kees Jan http://java-monitor.com/forum/ kjkos...@kjkoster.org 06-51838192 Human beings make life so interesting. Do you know that in a universe so full of wonders, they have managed to invent boredom. Quite astonishing... -- Terry Pratchett - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Facing “Javax.servlet.servletException: cannot connect to windows server”. error
Dear kees Jan koster, I had visited the link suggested by you, please let me know how to change the java property "-Djava.awt.headless=true" Is it just enough to type the command prompt? with regards prakash.s On Fri, Jan 23, 2009 at 1:56 AM, Kees Jan Koster wrote: > Dear S.Prakash, > > >I am using jrxml for preparing the reports in excel files. It is >> working fine in windows but if the same is implemented (server)MAC OS >> tomcat >> I am facing "Javax.servlet.servletException: cannot connect to windows >> server – not enough". >> >> I am using Tomcat 5.5.28 as server, MYsql as database and MAC(Tiger) >> as OS. Please suggest to over come this issue. >> > > > Have you considered trying to use "-Djava.awt.headless=true" and "unset > DISPLAY"? http://java-monitor.com/forum/showthread.php?t=3 > -- > Kees Jan > > http://java-monitor.com/forum/ > kjkos...@kjkoster.org > 06-51838192 > > Human beings make life so interesting. Do you know that in a universe so > full of wonders, > they have managed to invent boredom. Quite astonishing... -- Terry > Pratchett > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Facing “Javax.servlet.servletException: cannot connect to windows server”. error
Hai martin, I am using Tomcat 5.5.28 in MAC (Tiger) which is running at 9090 port, since 8080 already configured for another server we had changed the port to 9090 in server.xml and MYsql is running at 3306 port. with regards prakash.s On Thu, Jan 22, 2009 at 8:22 AM, Martin Gainty wrote: > > Prakash- > > are your interfaces up and running? > ifconfig -a > > also make sure the ports are not already bound specifically 3306 for MySQL > and 8080 for TC > > HTH > Martin > __ > Disclaimer and confidentiality note > Everything in this e-mail and any attachments relates to the official > business of Sender. This transmission is of a confidential nature and Sender > does not endorse distribution to any party other than intended recipient. > Sender does not necessarily endorse content contained within this > transmission. > > > > > > Date: Thu, 22 Jan 2009 06:28:42 +0530 > > Subject: Facing "Javax.servlet.servletException: cannot connect to > windows server". error > > From: prakash...@gmail.com > > To: users@tomcat.apache.org > > > > Hai all, > > > > I am using jrxml for preparing the reports in excel files. It > is > > working fine in windows but if the same is implemented (server)MAC OS > tomcat > > I am facing "Javax.servlet.servletException: cannot connect to windows > > server – not enough". > > > > I am using Tomcat 5.5.28 as server, MYsql as database and > MAC(Tiger) > > as OS. Please suggest to over come this issue. > > > > > > -- > > with Regards > > S.Prakash > > _ > Hotmail(R) goes where you go. On a PC, on the Web, on your phone. > > http://www.windowslive-hotmail.com/learnmore/versatility.aspx#mobile?ocid=TXT_TAGHM_WL_HM_versatility_121208 >
Re: Facing “Javax.servlet.servletException: c annot connect to windows server”. error
Dear S.Prakash, I am using jrxml for preparing the reports in excel files. It is working fine in windows but if the same is implemented (server)MAC OS tomcat I am facing "Javax.servlet.servletException: cannot connect to windows server – not enough". I am using Tomcat 5.5.28 as server, MYsql as database and MAC(Tiger) as OS. Please suggest to over come this issue. Have you considered trying to use "-Djava.awt.headless=true" and "unset DISPLAY"? http://java-monitor.com/forum/showthread.php?t=3 -- Kees Jan http://java-monitor.com/forum/ kjkos...@kjkoster.org 06-51838192 Human beings make life so interesting. Do you know that in a universe so full of wonders, they have managed to invent boredom. Quite astonishing... -- Terry Pratchett - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Facing “Javax.servlet.servletException: cannot con nect to windows server”. error
Prakash- are your interfaces up and running? ifconfig -a also make sure the ports are not already bound specifically 3306 for MySQL and 8080 for TC HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Thu, 22 Jan 2009 06:28:42 +0530 > Subject: Facing “Javax.servlet.servletException: cannot connect to windows > server”. error > From: prakash...@gmail.com > To: users@tomcat.apache.org > > Hai all, > > I am using jrxml for preparing the reports in excel files. It is > working fine in windows but if the same is implemented (server)MAC OS tomcat > I am facing "Javax.servlet.servletException: cannot connect to windows > server – not enough". > > I am using Tomcat 5.5.28 as server, MYsql as database and MAC(Tiger) > as OS. Please suggest to over come this issue. > > > -- > with Regards > S.Prakash _ Hotmail® goes where you go. On a PC, on the Web, on your phone. http://www.windowslive-hotmail.com/learnmore/versatility.aspx#mobile?ocid=TXT_TAGHM_WL_HM_versatility_121208
Facing “Javax.servlet.servletException: cannot con nect to windows server”. error
Hai all, I am using jrxml for preparing the reports in excel files. It is working fine in windows but if the same is implemented (server)MAC OS tomcat I am facing "Javax.servlet.servletException: cannot connect to windows server – not enough". I am using Tomcat 5.5.28 as server, MYsql as database and MAC(Tiger) as OS. Please suggest to over come this issue. -- with Regards S.Prakash
RE: Seek help for javax.servlet.ServletException: Java heap space
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: RE: Seek help for javax.servlet.ServletException: > Java heap space > > Why is it usually better to set -Xms and -Xmx to the > same value ? It avoids the overhead of expansion and contraction of the heap, including the associated bookkeeping. In this age of inexpensive RAM, there's no point in trying to be conservative. > Also there are some weird problems in running tomcat 6.0.18 > with Jconsole remotely . Only due to firewalls blocking the secondary JMX port. You can run JConsole locally on the target machine and tunnel the output to your display if using Linux. (For Windows, use Terminal Services to run JConsole locally.) There's some overhead incurred on the target machine, but when analyzing heap issues that's not a problem. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Seek help for javax.servlet.ServletException: Java heap space
Hi Chuck, Why is it usually better to set -Xms and -Xmx to the same value ? Can you please explain a little bit of this . Also there are some weird problems in running tomcat 6.0.18 with Jconsole remotely . It keeps giving me "Connection refused error" . Mark did mention about the new LifeCycleListener that we can expect to have out of the box in 6.0.19 which is supposed to make life easy with using Jconsole but still then I don't have any clue to what I can do get going with Jconsole remotely .Any ideas ?BTW this is the thread that I am talking about here .. http://www.mail-archive.com/users@tomcat.apache.org/msg51208.html Regards, Subhrajyoti Mobile: +919830079545 Mail: [EMAIL PROTECTED] Web: www.labware.com LabWare LIMS Solutions - Results Count "Caldarale, Charles R" <[EMAIL PROTECTED]> 10/02/2008 10:02 AM Please respond to "Tomcat Users List" To Tomcat Users List cc Subject RE: Seek help for javax.servlet.ServletException: Java heap space > From: BruceLee [mailto:[EMAIL PROTECTED] > Subject: Seek help for javax.servlet.ServletException: Java heap space > > I tried JAVA_OPTS -Xms128m -Xmx512m -Xss1024k -XX:MaxPermSize=128m. > On my local machine, everything is fine without any JAVA_OPTS > customization. What JVM are you using on your hosting server? What JVM are you using on your local machine? 1) Read this: http://wiki.apache.org/tomcat/FAQ/Memory 2) Use JConsole to see what's really going on in the Tomcat heap on your hosting server while it's running. 3) If JConsole access isn't permitted, turn on -verbose:gc to get an idea of what's happening with the heap. 4) Turn on -XX:+HeapDumpOnOutOfMemoryError and use jhat to see what's consuming the space. Look here for info on jhat: http://java.sun.com/javase/6/docs/technotes/tools/share/jhat.html 5) The -Xss value seems rather high; you normally don't have to play with this. 6) It's usually better to set -Xms and -Xmx to the same value to avoid heap thrashing. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Seek help for javax.servlet.ServletException: Java heap space
> From: BruceLee [mailto:[EMAIL PROTECTED] > Subject: Seek help for javax.servlet.ServletException: Java heap space > > I tried JAVA_OPTS -Xms128m -Xmx512m -Xss1024k -XX:MaxPermSize=128m. > On my local machine, everything is fine without any JAVA_OPTS > customization. What JVM are you using on your hosting server? What JVM are you using on your local machine? 1) Read this: http://wiki.apache.org/tomcat/FAQ/Memory 2) Use JConsole to see what's really going on in the Tomcat heap on your hosting server while it's running. 3) If JConsole access isn't permitted, turn on -verbose:gc to get an idea of what's happening with the heap. 4) Turn on -XX:+HeapDumpOnOutOfMemoryError and use jhat to see what's consuming the space. Look here for info on jhat: http://java.sun.com/javase/6/docs/technotes/tools/share/jhat.html 5) The -Xss value seems rather high; you normally don't have to play with this. 6) It's usually better to set -Xms and -Xmx to the same value to avoid heap thrashing. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Seek help for javax.servlet.ServletException: Java heap space
Dear Team, I tried hard for this heap space issue for several days. Also searched this forum but couldn't find the proper answer. On my hosting server, I got this error after I viewed 2 or 3 pages. My main page is always OK though. I tried JAVA_OPTS -Xms128m -Xmx512m -Xss1024k -XX:MaxPermSize=128m. It it didn't help. On my local machine, everything is fine without any JAVA_OPTS customization. Attached the stack trace oom.txt. The hosting server tomcat 5.5.25 with cPanel. I use Appfuse 1.9.4 (Spring2.0, WebWork2.2.4) Any ideas are really appreciated! -Bruce http://www.nabble.com/file/p19773103/oom.txt oom.txt ---Error on page-- ?? javax.servlet.ServletException: Java heap space at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.opensymphony.webwork.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:114) at com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:143) at com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:311) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:206) at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168) at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188) at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:88) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188) at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:171) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188) at com.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188) at com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:186) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188) at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113) at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:225) at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202)
Re: javax.servlet.ServletException: Cannot find bean usersList in scope request
I think i solved it because I put a tag and now it works: I wrote this: logic:present name="userList"logic:iterate id="users" name="usersList" scope="request" type="com.genausal.entity.Users"/ / /tr>a href="consultuseradmin.do?passport_id"=bean:writename="users"property="passport_id"/>"bean:write name="users" property="passport_id"/a/trtrbean:write name="users" property="first_name"//trtrbean:write name="users" property="country"/trlogic:iterate/logic:present I write them here without < > because it's the unic way to see them - Mensaje original De: David Smith <[EMAIL PROTECTED]> Para: Tomcat Users List Enviado: sábado, 26 de julio, 2008 20:38:22 Asunto: Re: javax.servlet.ServletException: Cannot find bean usersList in scope request Ok ... your email client is weird in how it put's html in, but that's a different subject. The stack trace indicates that logic:iterate can't find the collection you stored in "usersList". You could wrap the whole table in logic:present tag and then have some error message in a logic:notPresent tag to better diagnose what's going on. Are you sure your action is being executed? --David Carlos Morales wrote: > I hope this time sources work and you can see them: > The mistake is this one: > org.apache.jasper.JasperException: Cannot find bean usersList in scope request > > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > causa raíz > javax.servlet.ServletException: Cannot find bean usersList in scope request > > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) > > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) > > org.apache.jsp.web_005fadminContent_jsp._jspService(web_005fadminContent_jsp.java:148) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > causa raíz > javax.servlet.jsp.JspException: Cannot find bean usersList in scope request > org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:940) > org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:277) > > org.apache.jsp.web_005fadminContent_jsp._jspService(web_005fadminContent_jsp.java:96) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > nota La traza completa de la causa de este error se encuentra en los archivos > de diario de Apache Tomcat/5.5.16. > > > the sources are these ones: > //BeanNames.java > package com.genausal.actions; > public interface BeanNames { > public static final String PROJECT_LIST="projectList"; > public static final String USERS_FORM="UsersForm"; > public static final String USER_LIST="usersList"; > } > //Web_AdminAction.java > > package com.genausal.actions; > import javax.servlet.http.HttpServletRequest; > import javax.servlet.http.HttpServletResponse; > import javax.servlet.ServletException; > > import org.apache.struts.action.Action; > import org.apache.struts.action.ActionForm; > import org.apache.struts.action.ActionForward; > import org.apache.struts.action.ActionMapping; > import org.apache.struts.action.ActionErrors; > import org.apache.struts.action.ActionError; > import org.apache.struts.action.ActionServlet; > import java.io.IOException; > import java.sql.Connection; > import java.sql.SQLException; > import java.util.Collection; > import com.genausal.databases.util.ConnectionPool; &
Re: javax.servlet.ServletException: Cannot find bean usersList in scope request
Ok ... your email client is weird in how it put's html in, but that's a different subject. The stack trace indicates that logic:iterate can't find the collection you stored in "usersList". You could wrap the whole table in logic:present tag and then have some error message in a logic:notPresent tag to better diagnose what's going on. Are you sure your action is being executed? --David Carlos Morales wrote: I hope this time sources work and you can see them: The mistake is this one: org.apache.jasper.JasperException: Cannot find bean usersList in scope request org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.servlet.ServletException: Cannot find bean usersList in scope request org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.web_005fadminContent_jsp._jspService(web_005fadminContent_jsp.java:148) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.servlet.jsp.JspException: Cannot find bean usersList in scope request org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:940) org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:277) org.apache.jsp.web_005fadminContent_jsp._jspService(web_005fadminContent_jsp.java:96) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/5.5.16. the sources are these ones: //BeanNames.java package com.genausal.actions; public interface BeanNames { public static final String PROJECT_LIST="projectList"; public static final String USERS_FORM="UsersForm"; public static final String USER_LIST="usersList"; } //Web_AdminAction.java package com.genausal.actions; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletException; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionServlet; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import java.util.Collection; import com.genausal.databases.util.ConnectionPool; import com.genausal.databases.UsersDAO; import com.genausal.entity.Users; /** * MyEclipse Struts * Creation date: 06-26-2008 * * XDoclet definition: * @struts.action validate="true" * @struts.action-forward name="success" path="/web_admin.jsp" */ public class Web_AdminAction extends Action { // - Instance Variables private ConnectionPool pool; // - Methods /** * Method execute * @param mapping * @param form * @param request * @param response * @return ActionForward */ public Web_AdminAction(){ pool=ConnectionPool.getInstance(); } public ActionForward perform( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)throws IOException,ServletException { Connection con=null; try{ con=pool.getConnection(); UsersDAO usersDAO=new UsersDAO(con); Collection col=usersDAO.findAll(); request.setAttribute(BeanNames.USER_LIST,col); return mapping.findForward("success"); }catch (SQLException e){ e.printStac
RE: javax.servlet.ServletException: Cannot find bean usersList in scope request
I hope this time sources work and you can see them: The mistake is this one: org.apache.jasper.JasperException: Cannot find bean usersList in scope request org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.servlet.ServletException: Cannot find bean usersList in scope request org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.web_005fadminContent_jsp._jspService(web_005fadminContent_jsp.java:148) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.servlet.jsp.JspException: Cannot find bean usersList in scope request org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:940) org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:277) org.apache.jsp.web_005fadminContent_jsp._jspService(web_005fadminContent_jsp.java:96) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/5.5.16. the sources are these ones: //BeanNames.java package com.genausal.actions; public interface BeanNames { public static final String PROJECT_LIST="projectList"; public static final String USERS_FORM="UsersForm"; public static final String USER_LIST="usersList"; } //Web_AdminAction.java package com.genausal.actions; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletException; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionServlet; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import java.util.Collection; import com.genausal.databases.util.ConnectionPool; import com.genausal.databases.UsersDAO; import com.genausal.entity.Users; /** * MyEclipse Struts * Creation date: 06-26-2008 * * XDoclet definition: * @struts.action validate="true" * @struts.action-forward name="success" path="/web_admin.jsp" */ public class Web_AdminAction extends Action { // - Instance Variables private ConnectionPool pool; // - Methods /** * Method execute * @param mapping * @param form * @param request * @param response * @return ActionForward */ public Web_AdminAction(){ pool=ConnectionPool.getInstance(); } public ActionForward perform( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)throws IOException,ServletException { Connection con=null; try{ con=pool.getConnection(); UsersDAO usersDAO=new UsersDAO(con); Collection col=usersDAO.findAll(); request.setAttribute(BeanNames.USER_LIST,col); return mapping.findForward("success"); }catch (SQLException e){ e.printStackTrace(); throw new RuntimeException("It's impossible to get the connection"); }finally{ try{ if(con!=null) con.close(); }catch(SQLException e){ throw new RuntimeException(e.getMessage()); } } } } //UsersDAO.java ->findAll() public Collection findAll(){ PreparedStatement ps=null; ResultSet rs=null; ArrayList list=new ArrayList(); String sql="SELECT * from users"; try{
Re: javax.servlet.ServletException: Cannot find bean usersList in scope request
You may want to post plain text or post from another email client. A *lot* of your jsp source is missing from this email. --David Carlos Morales Diego wrote: Hello everyone, Could anyone help me, please? I have this mistake and I don't kow how to fix it: org.apache.jasper.JasperException: Exception in JSP: /web_adminContent.jsp:23 20: Users Name 21: Country 22: 23: 24: 25: "> 26: Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.servlet.ServletException: Cannot find bean usersList in scope request org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.web_005fadminContent_jsp._jspService(web_005fadminContent_jsp.java:150) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.servlet.jsp.JspException: Cannot find bean usersList in scope request org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:940) org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:277) org.apache.jsp.web_005fadminContent_jsp._jspService(web_005fadminContent_jsp.java:98) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/5.5.16. And sources are these: //web_userContent.jsp Normalization -- Select -- Filtering Menten CBS View Chromosomes Heat Map Compare Methods Project(s)' Users Management page : Click on IdProject to see all your chips which you have put on this project Project Name is the Project's name Number Arrays is the Analyzed Chips IdProject PROJECT NAME Number Arrays Create Project //Web_UserAction.java package com.genausal.actions; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletException; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionServlet; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import java.util.Collection; import com.genausal.databases.util.ConnectionPool; import com.genausal.databases.UsersDAO; import com.genausal.entity.Users; /** * MyEclipse Struts * Creation date: 06-26-2008 * * XDoclet definition: * @struts.action validate="true" * @struts.action-forward name="success" path="/web_admin.jsp" */ public class Web_AdminAction extends Action { // - Instance Variables private ConnectionPool pool; // - Methods /** * Method execute * @param mapping * @param form * @param request * @param response * @return ActionForward */ public Web_AdminAction(){ pool=ConnectionPool.getInstance(); } public ActionForward perform( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)throws IOException,ServletException { Connection con=null; try{ con=pool.getConnection(); UsersDAO usersDAO=new UsersDAO(con);
RE: javax.servlet.ServletException: Cannot find bean usersList in scope request
The jsp file is this one: I write in a comment because if not you can't see it > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: javax.servlet.ServletException: Cannot find bean usersList in scope > request > Date: Fri, 25 Jul 2008 17:40:53 + > > > > Hello everyone, > > > Could anyone help me, please? > > I have this mistake and I don't kow how to fix it: > > > > > org.apache.jasper.JasperException: Exception in JSP: /web_adminContent.jsp:23 > > 20: Users Name > 21: Country > 22: > 23: > 24: > 25: "> > 26: > > > Stacktrace: > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > causa raíz > > javax.servlet.ServletException: Cannot find bean usersList in scope request > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) > org.apache.jsp.web_005fadminContent_jsp._jspService(web_005fadminContent_jsp.java:150) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > causa raíz > > javax.servlet.jsp.JspException: Cannot find bean usersList in scope request > org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:940) > org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:277) > org.apache.jsp.web_005fadminContent_jsp._jspService(web_005fadminContent_jsp.java:98) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > nota La traza completa de la causa de este error se encuentra en los archivos > de diario de Apache Tomcat/5.5.16. > > > And sources are these: > > //web_userContent.jsp > > > > > > Normalization > > > > > > > -- Select -- > > Filtering > > > Menten > CBS > > > View Chromosomes > Heat Map > > > Compare Methods > > > > > > > > > > > Project(s)' Users Management page : > > > Click on IdProject to see all your chips which you have put on this project > Project Name is the Project's name > Number Arrays is the Analyzed Chips > > > > IdProject > PROJECT NAME > Number Arrays > > > > > > > Create Project > > > > > > > > > //Web_UserAction.java > > package com.genausal.actions; > > import javax.servlet.http.HttpServletRequest; > import javax.servlet.http.HttpServletResponse; > import javax.servlet.ServletException; > > > import org.apache.struts.action.Action; > import org.apache.struts.action.ActionForm; > import org.apache.struts.action.ActionForward; > import org.apache.struts.action.ActionMapping; > import org.apache.struts.action.ActionErrors; > import org.apache.struts.action.ActionError; > import org.apache.struts.action.ActionServlet; > > import java.io.IOException; > import java.sql.Connection; > import java.sql.SQLException; > import java.util.Collection; > > import com.genausal.databases.util.ConnectionPool; > import com.genausal.databases.UsersDAO; > import com.genausal.entity.Users; > > /** > * MyEclipse Struts > * Creation date: 06-26-2008 > * > * XDoclet definition: > * @struts.action validate="true" > * @struts.action-forward name="success" path="/web_admin.jsp" > */ > public class Web_AdminAction extends Action { > > // - Instance > Variables > private ConnectionPool pool; > // - Methods > > /** > * Method execute > * @param mapping > * @
javax.servlet.ServletException: Cannot find bean usersList in scope request
Hello everyone, Could anyone help me, please? I have this mistake and I don't kow how to fix it: org.apache.jasper.JasperException: Exception in JSP: /web_adminContent.jsp:23 20: Users Name 21: Country 22: 23: 24: 25: "> 26: Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.servlet.ServletException: Cannot find bean usersList in scope request org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.web_005fadminContent_jsp._jspService(web_005fadminContent_jsp.java:150) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.servlet.jsp.JspException: Cannot find bean usersList in scope request org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:940) org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:277) org.apache.jsp.web_005fadminContent_jsp._jspService(web_005fadminContent_jsp.java:98) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/5.5.16. And sources are these: //web_userContent.jsp Normalization -- Select -- Filtering Menten CBS View Chromosomes Heat Map Compare Methods Project(s)' Users Management page : Click on IdProject to see all your chips which you have put on this project Project Name is the Project's name Number Arrays is the Analyzed Chips IdProject PROJECT NAME Number Arrays Create Project //Web_UserAction.java package com.genausal.actions; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletException; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionServlet; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import java.util.Collection; import com.genausal.databases.util.ConnectionPool; import com.genausal.databases.UsersDAO; import com.genausal.entity.Users; /** * MyEclipse Struts * Creation date: 06-26-2008 * * XDoclet definition: * @struts.action validate="true" * @struts.action-forward name="success" path="/web_admin.jsp" */ public class Web_AdminAction extends Action { // - Instance Variables private ConnectionPool pool; // - Methods /** * Method execute * @param mapping * @param form * @param request * @param response * @return ActionForward */ public Web_AdminAction(){ pool=ConnectionPool.getInstance(); } public ActionForward perform( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)throws IOException,ServletException { Connection con=null; try{ con=pool.getConnection(); UsersDAO usersDAO=new UsersDAO(con); Collection col=usersDAO.findAll(); request.setAttribute(BeanNames.USER_LIST,col); return mapping.findForwa
RE: javax.servlet.ServletException: Could not connect to SMTP host: localhost, port: 25
Hello, I did it and now I have this one: org.apache.jasper.JasperException: Exception in JSP: /sendmail.jsp:22 19: message.setText("Saludo de JavaMail"); 20: 21: Store store=s.getStore("pop3"); 22: store.connect("pop.correo.yahoo.es","[EMAIL PROTECTED]","bezos11"); 23: Transport.send(message); 24: 25: store.close(); Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.servlet.ServletException: [IN-USE] maildrop busy. org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:91) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.mail.AuthenticationFailedException: [IN-USE] maildrop busy. com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:146) javax.mail.Service.connect(Service.java:275) javax.mail.Service.connect(Service.java:156) org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:67) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > Date: Thu, 17 Jul 2008 12:47:40 +0300 > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: Re: javax.servlet.ServletException: Could not connect to SMTP host: > localhost, port: 25 > > try this .. > props.put("mail.smtp.host","smtp.correo.yahoo.es"); > props.put("mail.smtp.port","25"); > props.put("mail.smtp.auth", "true"); > > > On Thu, Jul 17, 2008 at 12:41 PM, Carlos Morales Diego < > [EMAIL PROTECTED]> wrote: > >> >> >> Hello Jonas, >> >> >> I still have the same mistake, so I don't know, this is my code >> >> Properties props=new Properties(); >> props.put("mail.smtp.host","smtp.correo.yahoo.es"); >> props.put("mail.smtp.port","25"); >> props.put("mail.smtp.auth", "true"); >> Session s=Session.getInstance(props); >> >> >> MimeMessage message=new MimeMessage(s); >> >> InternetAddress from=new InternetAddress("[EMAIL PROTECTED]"); >> message.setFrom(from); >> InternetAddress to=new InternetAddress("[EMAIL PROTECTED]"); >> message.addRecipient(Message.RecipientType.TO,to); >> >> message.setSubject("Prueba de JavaMail"); >> message.setText("Saludo de JavaMail"); >> >> Store store=s.getStore("pop3"); >> store.connect("pop.correo.yahoo.es","[EMAIL PROTECTED] >> ","bezos11"); >> Transport.send(message); >> >> store.close(); >> >> And I don't know. Any advice? >> >> Thanks so much >> >>> Subject: RE: javax.servlet.ServletException: Could not connect to SMTP >> host: localhost, port: 25 >>> Date: Mon, 14 Jul 2008 14:14:40 +0200 >>> From: [EMAIL PROTECTED] >>> To: users@tomcat.apache.org >>> >>> Hello, >>> >>> It looks to me as if you didn't configure any SMTP server. You need to >>> do something like: >>> Properties smtpProperties = new Properties(); >>> smtpProperties.put("mail.smtp.host", "smtp.example.com"); >>> smtpProperties.put("mail.smtp.auth", "true"); >>> >>> // create the mime message >>> >>> Session session = Session.getDefaultInstance(smtpProperties); >>&
Re: javax.servlet.ServletException: Could not connect to SMTP host: localhost, port: 25
try this .. props.put("mail.smtp.host","smtp.correo.yahoo.es"); props.put("mail.smtp.port","25"); props.put("mail.smtp.auth", "true"); On Thu, Jul 17, 2008 at 12:41 PM, Carlos Morales Diego < [EMAIL PROTECTED]> wrote: > > > Hello Jonas, > > > I still have the same mistake, so I don't know, this is my code > > Properties props=new Properties(); >props.put("mail.smtp.host","smtp.correo.yahoo.es"); >props.put("mail.smtp.port","25"); >props.put("mail.smtp.auth", "true"); >Session s=Session.getInstance(props); > > >MimeMessage message=new MimeMessage(s); > >InternetAddress from=new InternetAddress("[EMAIL PROTECTED]"); >message.setFrom(from); >InternetAddress to=new InternetAddress("[EMAIL PROTECTED]"); >message.addRecipient(Message.RecipientType.TO,to); > >message.setSubject("Prueba de JavaMail"); >message.setText("Saludo de JavaMail"); > >Store store=s.getStore("pop3"); > store.connect("pop.correo.yahoo.es","[EMAIL PROTECTED] > ","bezos11"); > Transport.send(message); > >store.close(); > > And I don't know. Any advice? > > Thanks so much > > > Subject: RE: javax.servlet.ServletException: Could not connect to SMTP > host: localhost, port: 25 > > Date: Mon, 14 Jul 2008 14:14:40 +0200 > > From: [EMAIL PROTECTED] > > To: users@tomcat.apache.org > > > > Hello, > > > > It looks to me as if you didn't configure any SMTP server. You need to > > do something like: > > Properties smtpProperties = new Properties(); > > smtpProperties.put("mail.smtp.host", "smtp.example.com"); > > smtpProperties.put("mail.smtp.auth", "true"); > > > > // create the mime message > > > > Session session = Session.getDefaultInstance(smtpProperties); > > Transport transport = session.getTransport("smtp"); > > transport.connect(smtpHost, smtpUser, smtpPasswd); > > mimeMessage.saveChanges(); > > transport.sendMessage(mimeMessage, mimeMessage.getAllRecipients()); > > transport.close(); > > > > I don't know JavaMail that well, so I cannot tell you how it's supposed > > to work with the static Transport::send() method, but you can probably > > set the SMTP server in a property file. > > > >> org.apache.jasper.JasperException: Exception in JSP: /sendmail.jsp:22 > >> > >> 19: Store store=s.getStore("pop3"); > >> 20: > > store.connect("pop.correo.yahoo.es","[EMAIL PROTECTED]","bezos11"); > >> 21: > >> 22: Transport.send(message); > >> 23: > >> 24: store.close(); > >> 25: %> > > > > I don't quite see what the store does in your code. Is this some sort of > > pop-before-smtp authentification? > > > > Greetings, > > Jonas > > > > - > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > _ > Herramientas para combatir la crisis. MSN Dinero > http://dinero.es.msn.com/ > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Regards, Youssef
RE: javax.servlet.ServletException: Could not connect to SMTP host: localhost, port: 25
Hello Jonas, I still have the same mistake, so I don't know, this is my code Properties props=new Properties(); props.put("correo.smtp.host","smtp.correo.yahoo.es"); props.put("correo.smtp.port","25"); props.put("correo.smtp.auth", "true"); Session s=Session.getInstance(props); MimeMessage message=new MimeMessage(s); InternetAddress from=new InternetAddress("[EMAIL PROTECTED]"); message.setFrom(from); InternetAddress to=new InternetAddress("[EMAIL PROTECTED]"); message.addRecipient(Message.RecipientType.TO,to); message.setSubject("Prueba de JavaMail"); message.setText("Saludo de JavaMail"); Store store=s.getStore("pop3"); store.connect("pop.correo.yahoo.es","[EMAIL PROTECTED]","bezos11"); Transport.send(message); store.close(); And I don't know. Any advice? Thanks so much > Subject: RE: javax.servlet.ServletException: Could not connect to SMTP host: > localhost, port: 25 > Date: Mon, 14 Jul 2008 14:14:40 +0200 > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > > Hello, > > It looks to me as if you didn't configure any SMTP server. You need to > do something like: > Properties smtpProperties = new Properties(); > smtpProperties.put("mail.smtp.host", "smtp.example.com"); > smtpProperties.put("mail.smtp.auth", "true"); > > // create the mime message > > Session session = Session.getDefaultInstance(smtpProperties); > Transport transport = session.getTransport("smtp"); > transport.connect(smtpHost, smtpUser, smtpPasswd); > mimeMessage.saveChanges(); > transport.sendMessage(mimeMessage, mimeMessage.getAllRecipients()); > transport.close(); > > I don't know JavaMail that well, so I cannot tell you how it's supposed > to work with the static Transport::send() method, but you can probably > set the SMTP server in a property file. > >> org.apache.jasper.JasperException: Exception in JSP: /sendmail.jsp:22 >> >> 19: Store store=s.getStore("pop3"); >> 20: > store.connect("pop.correo.yahoo.es","[EMAIL PROTECTED]","bezos11"); >> 21: >> 22: Transport.send(message); >> 23: >> 24: store.close(); >> 25: %> > > I don't quite see what the store does in your code. Is this some sort of > pop-before-smtp authentification? > > Greetings, > Jonas > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _ Herramientas para combatir la crisis. MSN Dinero http://dinero.es.msn.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javax.servlet.ServletException: Could not connect to SMTP host: localhost, port: 25
Hello, It looks to me as if you didn't configure any SMTP server. You need to do something like: Properties smtpProperties = new Properties(); smtpProperties.put("mail.smtp.host", "smtp.example.com"); smtpProperties.put("mail.smtp.auth", "true"); // create the mime message Session session = Session.getDefaultInstance(smtpProperties); Transport transport = session.getTransport("smtp"); transport.connect(smtpHost, smtpUser, smtpPasswd); mimeMessage.saveChanges(); transport.sendMessage(mimeMessage, mimeMessage.getAllRecipients()); transport.close(); I don't know JavaMail that well, so I cannot tell you how it's supposed to work with the static Transport::send() method, but you can probably set the SMTP server in a property file. > org.apache.jasper.JasperException: Exception in JSP: /sendmail.jsp:22 > > 19: Store store=s.getStore("pop3"); > 20: store.connect("pop.correo.yahoo.es","[EMAIL PROTECTED]","bezos11"); > 21: > 22: Transport.send(message); > 23: > 24: store.close(); > 25: %> I don't quite see what the store does in your code. Is this some sort of pop-before-smtp authentification? Greetings, Jonas - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javax.servlet.ServletException: Could not connect to SMTP host: localhost, port: 25
This is the source Mail has been sent Compruebe bandeja de entrada Mail has been sent Pulse aquí para enviar otro -- > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: javax.servlet.ServletException: Could not connect to SMTP host: > localhost, port: 25 > Date: Mon, 14 Jul 2008 10:45:56 + > > > Hey all, > > > I'm having problems with Javamail and I don't know why, the trace of the > mistake is this one: > > > > org.apache.jasper.JasperException: Exception in JSP: /sendmail.jsp:22 > > 19: Store store=s.getStore("pop3"); > 20: store.connect("pop.correo.yahoo.es","[EMAIL PROTECTED]","bezos11"); > 21: > 22: Transport.send(message); > 23: > 24: store.close(); > 25: %> > > > Stacktrace: > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > causa raíz > > javax.servlet.ServletException: Could not connect to SMTP host: localhost, > port: 25 > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) > org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:90) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > causa raíz > > javax.mail.MessagingException: Could not connect to SMTP host: localhost, > port: 25; > nested exception is: > java.net.ConnectException: Connection refused: connect > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282) > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) > javax.mail.Service.connect(Service.java:275) > javax.mail.Service.connect(Service.java:156) > javax.mail.Service.connect(Service.java:105) > javax.mail.Transport.send0(Transport.java:168) > javax.mail.Transport.send(Transport.java:98) > org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:67) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > And the file source is this one: > > > > > > > > > Mail has been sent > Compruebe bandeja de entrada > > > Mail has been sent > Pulse aquí para enviar otro > > > > > > > Could anyone help me, please?. Thank you all. > > Carlos > > _ > Tu mejor plan para el fin de semana y toda la actualidad del mundo del > corazón. Entra en MSN Entretenimiento > http://entretenimiento.es.msn.com/ > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _ La última hora de tu ciudad en MSN Noticias http://noticias.es.msn.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.servlet.ServletException: Could not connect to SMTP host: localhost, port: 25
Hey all, I'm having problems with Javamail and I don't know why, the trace of the mistake is this one: org.apache.jasper.JasperException: Exception in JSP: /sendmail.jsp:22 19: Store store=s.getStore("pop3"); 20: store.connect("pop.correo.yahoo.es","[EMAIL PROTECTED]","bezos11"); 21: 22: Transport.send(message); 23: 24: store.close(); 25: %> Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.servlet.ServletException: Could not connect to SMTP host: localhost, port: 25 org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:90) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) causa raíz javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282) com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) javax.mail.Service.connect(Service.java:275) javax.mail.Service.connect(Service.java:156) javax.mail.Service.connect(Service.java:105) javax.mail.Transport.send0(Transport.java:168) javax.mail.Transport.send(Transport.java:98) org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:67) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) And the file source is this one: Mail has been sent Compruebe bandeja de entrada Mail has been sent Pulse aquí para enviar otro Could anyone help me, please?. Thank you all. Carlos _ Tu mejor plan para el fin de semana y toda la actualidad del mundo del corazón. Entra en MSN Entretenimiento http://entretenimiento.es.msn.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javax.servlet.ServletException
Well, the index.html is in the context root directory, not inside the web-inf. After doing the deployment, when you access in your browser to the path: localhost:8080/practica3/ it presents you automatically the index.html. You don't need to put the wellcome file tag in the web.xml because tomcat, using apache, access the index.html file by default. Thank's!> From: [EMAIL PROTECTED]> To: users@tomcat.apache.org> Subject: Re: javax.servlet.ServletException> Date: Wed, 26 Dec 2007 09:40:44 -0500> > If you could demonstrate for us> how does the very first page (index.jsp/index.html) of your webapp get> produced?> Take it step by step showing all the entries in web.xml, code for> controller, interactions of controller, how are the beans configured and> where is the code for the beans, how are you accessing beans via EL? which> library are you using for this purpose? and how the index.jsp/index.html is> presented to the client's browser?> > M--> - Original Message -> From: "rameau rameau1982" <[EMAIL PROTECTED]>> To: "Tomcat Users List" > Sent: Wednesday, December 26, 2007 4:22 AM> Subject: RE: javax.servlet.ServletException> > > > ${request.session.getAttribute('message_srv')} works perfectly because if I> don't login when doing the:> > > ERROR> > Session Error> > > > Volver> > > it is desplayed perfectly, so the first clause is working properly.> I'm not using JSP !!! I'm using a framework done by my teacher that is based> on struts but it's not the same. The parallellism would be that the bean of> a JSP is my MailMessageSession.java. In this class there are several methods> used in the mail.view page as properties and are set in LoginCommand.java:> > request.getSession().setAttribute("message_srv", mms);> > The view language can be compared to .jsp> > Thanl's for any help> > > Date: Mon, 24 Dec 2007 10:10:17 -0500> From: [EMAIL PROTECTED]> To:> users@tomcat.apache.org> Subject: Re: javax.servlet.ServletException> > I'm> looking at your original post on this problem and what I see is you > are> trying to do stuff against how the EL expression language works.> > Stuff> like ${request.session.getAttribute('message_srv') can't work. > Instead,> this expression should access attributes as if they were bean > properties> of the page, request, or session, e.g. > ${sessionScope.message_srv}. See> JSP.2 of the JSP 2.0 specification.> > Looking at ${srv.receivedMessages()},> I would expect you need something > more like:> > var="recmess">pageContext.getAttribute( "srv"> > ).receivedMessages()> > > Overall, the EL expression language was designed> around the idea of > accessing information via JavaBean patterns and doesn't> work with > straight function calls like your are attempting. Use the >> jsp:expression tag to evaluate such things and store the result in a >> pageContext variable for later use.> > --David> > rameau rameau1982 wrote:>> > I've done this and the problem is still there ... I don't know what to> do...> >> >> > To: [EMAIL PROTECTED]: Re:> javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 19:28:06 -0500From:> [EMAIL PROTECTED]> >> >> >> > In that case you're dealing with a flawed> architecture as you have no input mechamismyour web.xml should contain at> least 1 welcome display file such as this input declaration in web.xml> >> Login.html > Good LuckM--> >> > - Original Message - > >> From: rameau rameau1982 > > To: [EMAIL PROTECTED] > > Sent: Sunday,> December 23, 2007 6:00 PM> > Subject: RE: javax.servlet.ServletException> >> I don't use jsp. I use html pages for static content and .view pages for> dynamic content.If you want to see the aplication you have to deploy a .war> archive in tomcatThe .view pages get data from a servletrequest (through the> framework, wich I don't have access to it), present static content and send> requests to the controller (detailed in the controller.xml) wich> interactuates with the model (MailMessageSession.java and all the DAO's> classes and JDBC)> >> >> > To: [EMAIL PROTECTED]: Re:> javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 17:28:23 -0500From:> [EMAIL PROTECTED]> >> >> > Hello Rameau> > I did'nt see any jsp's included> (for viewing the webapp)> > ?M--> >> > - Original Message - > >> From: rameau rameau
Re: javax.servlet.ServletException
If you could demonstrate for us how does the very first page (index.jsp/index.html) of your webapp get produced? Take it step by step showing all the entries in web.xml, code for controller, interactions of controller, how are the beans configured and where is the code for the beans, how are you accessing beans via EL? which library are you using for this purpose? and how the index.jsp/index.html is presented to the client's browser? M-- - Original Message - From: "rameau rameau1982" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, December 26, 2007 4:22 AM Subject: RE: javax.servlet.ServletException ${request.session.getAttribute('message_srv')} works perfectly because if I don't login when doing the: ERROR Session Error Volver it is desplayed perfectly, so the first clause is working properly. I'm not using JSP !!! I'm using a framework done by my teacher that is based on struts but it's not the same. The parallellism would be that the bean of a JSP is my MailMessageSession.java. In this class there are several methods used in the mail.view page as properties and are set in LoginCommand.java: request.getSession().setAttribute("message_srv", mms); The view language can be compared to .jsp Thanl's for any help > Date: Mon, 24 Dec 2007 10:10:17 -0500> From: [EMAIL PROTECTED]> To: users@tomcat.apache.org> Subject: Re: javax.servlet.ServletException> > I'm looking at your original post on this problem and what I see is you > are trying to do stuff against how the EL expression language works.> > Stuff like ${request.session.getAttribute('message_srv') can't work. > Instead, this expression should access attributes as if they were bean > properties of the page, request, or session, e.g. > ${sessionScope.message_srv}. See JSP.2 of the JSP 2.0 specification.> > Looking at ${srv.receivedMessages()}, I would expect you need something > more like:> > pageContext.getAttribute( "srv" > ).receivedMessages()> > > Overall, the EL expression language was designed around the idea of > accessing information via JavaBean patterns and doesn't work with > straight function calls like your are attempting. Use the > jsp:expression tag to evaluate such things and store the result in a > pageContext variable for later use.> > --David> > rameau rameau1982 wrote:> > I've done this and the problem is still there ... I don't know what to do...> >> >> > To: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 19:28:06 -0500From: [EMAIL PROTECTED]> >> >> >> > In that case you're dealing with a flawed architecture as you have no input mechamismyour web.xml should contain at least 1 welcome display file such as this input declaration in web.xml> > Login.html Good LuckM--> >> > - Original Message - > > From: rameau rameau1982 > > To: [EMAIL PROTECTED] > > Sent: Sunday, December 23, 2007 6:00 PM> > Subject: RE: javax.servlet.ServletException> > I don't use jsp. I use html pages for static content and .view pages for dynamic content.If you want to see the aplication you have to deploy a .war archive in tomcatThe .view pages get data from a servletrequest (through the framework, wich I don't have access to it), present static content and send requests to the controller (detailed in the controller.xml) wich interactuates with the model (MailMessageSession.java and all the DAO's classes and JDBC)> >> >> > To: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 17:28:23 -0500From: [EMAIL PROTECTED]> >> >> > Hello Rameau> > I did'nt see any jsp's included (for viewing the webapp)> > ?M--> >> > - Original Message - > > From: rameau rameau1982 > > To: users@tomcat.apache.org > > Sent: Sunday, December 23, 2007 4:57 PM> > Subject: javax.servlet.ServletException> > Hi again, by a problem with hotmail I have only been sending messages with one person. I'll put it all again with a rar that is all my project. Hi!I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW.The dynamic pages terminate with the sufix view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive message
javax.servlet.ServletException
If somebody wants to know I've solved my problem. The UserVO class has to be: package webusr31.pracfinal.model.dao; public class UserVO { public int id; public String name; public String password; public int getId() { return id; } public String getName() { return name; } } And I wasn't doing the getId(); and the getName() methods. When I was calling the property vo.name tomcat throwed an exception because there was a conflict between methods and atributes in this class. Thank's everyone! _ La vida de los famosos al desnudo en MSN Entretenimiento http://entretenimiento.es.msn.com/
RE: javax.servlet.ServletException
${request.session.getAttribute('message_srv')} works perfectly because if I don't login when doing the: ERROR Session Error Volver it is desplayed perfectly, so the first clause is working properly. I'm not using JSP !!! I'm using a framework done by my teacher that is based on struts but it's not the same. The parallellism would be that the bean of a JSP is my MailMessageSession.java. In this class there are several methods used in the mail.view page as properties and are set in LoginCommand.java: request.getSession().setAttribute("message_srv", mms); The view language can be compared to .jsp Thanl's for any help > Date: Mon, 24 Dec 2007 10:10:17 -0500> From: [EMAIL PROTECTED]> To: > users@tomcat.apache.org> Subject: Re: javax.servlet.ServletException> > I'm > looking at your original post on this problem and what I see is you > are > trying to do stuff against how the EL expression language works.> > Stuff > like ${request.session.getAttribute('message_srv') can't work. > Instead, > this expression should access attributes as if they were bean > properties of > the page, request, or session, e.g. > ${sessionScope.message_srv}. See JSP.2 > of the JSP 2.0 specification.> > Looking at ${srv.receivedMessages()}, I > would expect you need something > more like:> > var="recmess">pageContext.getAttribute( "srv" > > ).receivedMessages()> > > Overall, the EL expression language was designed > around the idea of > accessing information via JavaBean patterns and doesn't > work with > straight function calls like your are attempting. Use the > > jsp:expression tag to evaluate such things and store the result in a > > pageContext variable for later use.> > --David> > rameau rameau1982 wrote:> > > I've done this and the problem is still there ... I don't know what to do...> > >> >> > To: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Sun, > 23 Dec 2007 19:28:06 -0500From: [EMAIL PROTECTED]> >> >> >> > In that case > you're dealing with a flawed architecture as you have no input mechamismyour > web.xml should contain at least 1 welcome display file such as this input > declaration in web.xml> > Login.html > Good LuckM--> >> > - Original Message > - > > From: rameau rameau1982 > > To: [EMAIL PROTECTED] > > Sent: Sunday, > December 23, 2007 6:00 PM> > Subject: RE: javax.servlet.ServletException> > I > don't use jsp. I use html pages for static content and .view pages for > dynamic content.If you want to see the aplication you have to deploy a .war > archive in tomcatThe .view pages get data from a servletrequest (through the > framework, wich I don't have access to it), present static content and send > requests to the controller (detailed in the controller.xml) wich > interactuates with the model (MailMessageSession.java and all the DAO's > classes and JDBC)> >> >> > To: [EMAIL PROTECTED]: Re: > javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 17:28:23 -0500From: > [EMAIL PROTECTED]> >> >> > Hello Rameau> > I did'nt see any jsp's included > (for viewing the webapp)> > ?M--> >> > - Original Message - > > From: > rameau rameau1982 > > To: users@tomcat.apache.org > > Sent: Sunday, December > 23, 2007 4:57 PM> > Subject: javax.servlet.ServletException> > Hi again, by a > problem with hotmail I have only been sending messages with one person. I'll > put it all again with a rar that is all my project. Hi!I'm studying at the > university an assignature based on web applications developement using java > servlets, tomcat, Model-view-controller, and a framework done by my teacher > that is a simplification of struts (we use his .jar to implement all te > classes of his framework and he has told us that everything is correct and > that we cannot modify his classes). He has invented a language called > VIEW.The dynamic pages terminate with the sufix .view What I'm doing is a web > application that has some users(with passwords) in a postgresql database > (here everything correct) and that they login and send/receive messages > to/from the rest of the users.I'm also using eclipse, so everything is well > compilatedWhen a user logins, tomcat sends me an exception and doesn't shows > the main dynamic page where the logged user views recieved messages and can > send messages to other users.I give you the code of the mail.view page: version='1.0' enc
RE: javax.servlet.ServletException
I've done it exactly the same way you described and I still have the same problem From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Mon, 24 Dec 2007 09:48:52 -0500 the idea is to have one introductory display file for your webappthe introductory display file is configured via welcome-file directive so edit the web.xml from your webapp install folder assuming the name of your webapp is 'practica3' $CATALINA_HOME/webapps/practica3/WEB-INF/practica3/web.xml immediately after login.html alsoplace the login.html in the webapp folder you should have copy login.html $CATALINA_HOME/webapps/practica3/login.htmlonce the browser client files are in place we can start to concentrate on the taglibs (jstl or struts) and then the controller code..Martin-- - Original Message - From: rameau rameau1982 To: users@tomcat.apache.org ; Martin Gainty Sent: Monday, December 24, 2007 8:47 AM Subject: RE: javax.servlet.ServletException I've done this and the problem is still there ... I don't know what to do... To: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 19:28:06 -0500From: [EMAIL PROTECTED] In that case you're dealing with a flawed architecture as you have no input mechamismyour web.xml should contain at least 1 welcome display file such as this input declaration in web.xml Login.html Good LuckM-- - Original Message - From: rameau rameau1982 To: [EMAIL PROTECTED] Sent: Sunday, December 23, 2007 6:00 PM Subject: RE: javax.servlet.ServletException I don't use jsp. I use html pages for static content and .view pages for dynamic content.If you want to see the aplication you have to deploy a .war archive in tomcatThe .view pages get data from a servletrequest (through the framework, wich I don't have access to it), present static content and send requests to the controller (detailed in the controller.xml) wich interactuates with the model (MailMessageSession.java and all the DAO's classes and JDBC) To: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 17:28:23 -0500From: [EMAIL PROTECTED] Hello Rameau I did'nt see any jsp's included (for viewing the webapp) ?M-- - Original Message - From: rameau rameau1982 To: users@tomcat.apache.org Sent: Sunday, December 23, 2007 4:57 PM Subject: javax.servlet.ServletException Hi again, by a problem with hotmail I have only been sending messages with one person. I'll put it all again with a rar that is all my project. Hi!I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his .jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW.The dynamic pages terminate with the sufix .view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users.I'm also using eclipse, so everything is well compilatedWhen a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users.I give you the code of the mail.view page: Disseny d'aplicacions WEB: P3 ERROR Session Error Volver ${srv.userName} No hay mensajes recibidos Mensajes recibidos:remitente mensaje fecha eliminar ${message.from}${message.text}${message.date} Destinatario/s: ${user.name}'Mensaje: I think that the problem is at: can somebody help me?? Oh! and the tomcat exception:Estado HTTP 500 - type Informe de Excepciónmensaje descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.excepción javax.servlet.ServletException: Cannot execute view page '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webpro
Re: javax.servlet.ServletException
I'm looking at your original post on this problem and what I see is you are trying to do stuff against how the EL expression language works. Stuff like ${request.session.getAttribute('message_srv') can't work. Instead, this expression should access attributes as if they were bean properties of the page, request, or session, e.g. ${sessionScope.message_srv}. See JSP.2 of the JSP 2.0 specification. Looking at ${srv.receivedMessages()}, I would expect you need something more like: pageContext.getAttribute( "srv" ).receivedMessages() Overall, the EL expression language was designed around the idea of accessing information via JavaBean patterns and doesn't work with straight function calls like your are attempting. Use the jsp:expression tag to evaluate such things and store the result in a pageContext variable for later use. --David rameau rameau1982 wrote: I've done this and the problem is still there ... I don't know what to do... To: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 19:28:06 -0500From: [EMAIL PROTECTED] In that case you're dealing with a flawed architecture as you have no input mechamismyour web.xml should contain at least 1 welcome display file such as this input declaration in web.xml Login.html Good LuckM-- - Original Message - From: rameau rameau1982 To: [EMAIL PROTECTED] Sent: Sunday, December 23, 2007 6:00 PM Subject: RE: javax.servlet.ServletException I don't use jsp. I use html pages for static content and .view pages for dynamic content.If you want to see the aplication you have to deploy a .war archive in tomcatThe .view pages get data from a servletrequest (through the framework, wich I don't have access to it), present static content and send requests to the controller (detailed in the controller.xml) wich interactuates with the model (MailMessageSession.java and all the DAO's classes and JDBC) To: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 17:28:23 -0500From: [EMAIL PROTECTED] Hello Rameau I did'nt see any jsp's included (for viewing the webapp) ?M-- - Original Message - From: rameau rameau1982 To: users@tomcat.apache.org Sent: Sunday, December 23, 2007 4:57 PM Subject: javax.servlet.ServletException Hi again, by a problem with hotmail I have only been sending messages with one person. I'll put it all again with a rar that is all my project. Hi!I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his .jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW.The dynamic pages terminate with the sufix .view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users.I'm also using eclipse, so everything is well compilatedWhen a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users.I give you the code of the mail.view page: Disseny d'aplicacions WEB: P3 ERROR Session Error Volver ${srv.userName} No hay mensajes recibidos Mensajes recibidos: remitente mensaje fecha eliminar ${message.from}${message.text}${message.date} Destinatario/s: ${user.name}'Mensaje: I think that the problem is at: can somebody help me?? Oh! and the tomcat exception:Estado HTTP 500 - type Informe de Excepciónmensaje descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.excepción javax.servlet.ServletException: Cannot execute view page '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48) j
RE: javax.servlet.ServletException
I've done this and the problem is still there ... I don't know what to do... To: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 19:28:06 -0500From: [EMAIL PROTECTED] In that case you're dealing with a flawed architecture as you have no input mechamismyour web.xml should contain at least 1 welcome display file such as this input declaration in web.xml Login.html Good LuckM-- - Original Message - From: rameau rameau1982 To: [EMAIL PROTECTED] Sent: Sunday, December 23, 2007 6:00 PM Subject: RE: javax.servlet.ServletException I don't use jsp. I use html pages for static content and .view pages for dynamic content.If you want to see the aplication you have to deploy a .war archive in tomcatThe .view pages get data from a servletrequest (through the framework, wich I don't have access to it), present static content and send requests to the controller (detailed in the controller.xml) wich interactuates with the model (MailMessageSession.java and all the DAO's classes and JDBC) To: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 17:28:23 -0500From: [EMAIL PROTECTED] Hello Rameau I did'nt see any jsp's included (for viewing the webapp) ?M-- - Original Message - From: rameau rameau1982 To: users@tomcat.apache.org Sent: Sunday, December 23, 2007 4:57 PM Subject: javax.servlet.ServletException Hi again, by a problem with hotmail I have only been sending messages with one person. I'll put it all again with a rar that is all my project. Hi!I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his .jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW.The dynamic pages terminate with the sufix .view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users.I'm also using eclipse, so everything is well compilatedWhen a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users.I give you the code of the mail.view page: Disseny d'aplicacions WEB: P3 ERROR Session Error Volver ${srv.userName} No hay mensajes recibidos Mensajes recibidos:remitente mensaje fecha eliminar ${message.from}${message.text}${message.date} Destinatario/s: ${user.name}'Mensaje: I think that the problem is at: can somebody help me?? Oh! and the tomcat exception:Estado HTTP 500 - type Informe de Excepciónmensaje descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.excepción javax.servlet.ServletException: Cannot execute view page '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)causa raíz webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:87) webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50) webprofe.webfw.view.runtime.tree.Page.execute(Page.java:56) webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:61) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.Reque
javax.servlet.ServletException
ok, the problematic one is thi .rar archive, the other one is a copy of my partner that runs ok. But I still want to know what I do wrong beacause I can't see the difference between my project and my partner's project.Can somebody help me? _ MSN Video. http://video.msn.com/?mkt=es-es- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javax.servlet.ServletException
ok, this is not a feature of my framework. What you say has its logical but what I've done it's a little bit different: when (in the mail.view) you see: now, srv its like a MailMessagesession class The MailMessageSession class has, among others, the userListToSend() method that returns a Vector. But a Vector is an object, and in my project it's a UserVO Vector. UserVO class has some methods (that then are called as properties, the way you said) among them is the getName method that is called as a property: user.name Have I answered your question??? thank's! > Date: Sun, 23 Dec 2007 14:22:22 -0800> From: [EMAIL PROTECTED]> To: > users@tomcat.apache.org> Subject: Re: javax.servlet.ServletException> > Hi> > > The error is showing as:> > .EvalException: Undefined property 'name' on > target> You have a loop with:> > items='${srv.userListToSend()}'>> > value='${user.name}'>${user.name}'> > > I don't > understand something - I would have expected srv.userListToSend > which would > have mapped to a method something like:> > List getUserListToSend() {> > List users .> return users;> }> > where User has a property 'name' > which would be a JavaBean with a method > something like:> > String > getName();> > In a normal JSP you would not expect the method to have () at > the end... > but just to be ${srv.userListToSend}> > Is this a feature of > your View framework?> > Regards> > Alan Chaney> > > > > > rameau rameau1982 > wrote:> > Hi again, by a problem with hotmail I have only been sending > messages > > with one person. I'll put it all again with a .rar that is all > my project.> > > > Hi!> > I'm studying at the university an assignature based > on web > > applications developement using java servlets, tomcat, > > > Model-view-controller, and a framework done by my teacher that is a > > > simplification of struts (we use his .jar to implement all te classes > > of > his framework and he has told us that everything is correct and > > that we > cannot modify his classes). He has invented a language called > > VIEW.> > > The dynamic pages terminate with the sufix .view> > > > What I'm doing is a > web application that has some users(with > > passwords) in a postgresql > database (here everything correct) and that > > they login and send/receive > messages to/from the rest of the users.> > I'm also using eclipse, so > everything is well compilated> > When a user logins, tomcat sends me an > exception and doesn't shows the > > main dynamic page where the logged user > views recieved messages and > > can send messages to other users.> > I give > you the code of the mail.view page:> > > > encoding='ISO-8859-1'?>> > xmlns:v='http://soft0.upc.es:8080/web/NS/webfw/view'> > xmlns:b='/base.vlib'> > > component-element-prefixes='b'>> > > > > > Disseny > d'aplicacions WEB: P3> > type='text/css'/>> > > > > > > > border='0' cellspacing='0' cellpadding='0'>> > > > > > > > > > > > > > ERROR> > Session Error> > > > HREF='index.html'>Volver> > > > > > > ${srv.userName}> > > > > > value='${srv.receivedMessages()}'/>> > > > No > hay mensajes recibidos> > > > > > > Mensajes recibidos:> > > > > > >> > > align='center'>> > > > > remitente> > mensaje> > > fecha> > eliminar> > > > > > > > > > ${message.from}> > ${message.text}> > > ${message.date}> > name='message_id' value='${message.id}'/>> > > > > >> > > > > > > > > > > > > > ACTION='send.do'>> > Destinatario/s:> > name='receiver' multiple='multiple'>> > items='${srv.userListToSend()}'>> > value='${user.name}'>${user.name}'> > > > > > > > > Mensaje:> > COLS='100'>> > VALUE='Enviar'/>> > > > > > METHOD='POST' ACTION='logout.do'>> > VALUE='Logout'/>> > > > > > >
Re: javax.servlet.ServletException
Hi The error is showing as: .EvalException: Undefined property 'name' on target You have a loop with: ${user.name}' I don't understand something - I would have expected srv.userListToSend which would have mapped to a method something like: List getUserListToSend() { List users . return users; } where User has a property 'name' which would be a JavaBean with a method something like: String getName(); In a normal JSP you would not expect the method to have () at the end... but just to be ${srv.userListToSend} Is this a feature of your View framework? Regards Alan Chaney rameau rameau1982 wrote: Hi again, by a problem with hotmail I have only been sending messages with one person. I'll put it all again with a .rar that is all my project. Hi! I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his .jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW. The dynamic pages terminate with the sufix .view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users. I'm also using eclipse, so everything is well compilated When a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users. I give you the code of the mail.view page: Disseny d'aplicacions WEB: P3 ERROR Session Error Volver ${srv.userName} No hay mensajes recibidos Mensajes recibidos: align='center'> remitente mensaje fecha eliminar ${message.from} ${message.text} ${message.date} Destinatario/s: ${user.name}' Mensaje: I think that the problem is at: can somebody help me?? Oh! and the tomcat exception: Estado HTTP 500 - type Informe de Excepción mensaje descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento. excepción javax.servlet.ServletException: Cannot execute view page '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) causa raíz webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:87) webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50) webprofe.webfw.view.runtime.tree.Page.execute(Page.java:56) webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:61) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) causa raíz webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
javax.servlet.ServletException
Hi again, by a problem with hotmail I have only been sending messages with one person. I'll put it all again with a .rar that is all my project. Hi!I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his .jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW.The dynamic pages terminate with the sufix .view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users.I'm also using eclipse, so everything is well compilatedWhen a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users.I give you the code of the mail.view page: Disseny d'aplicacions WEB: P3 ERROR Session Error Volver ${srv.userName} No hay mensajes recibidos Mensajes recibidos:remitente mensaje fecha eliminar ${message.from}${message.text}${message.date} Destinatario/s: ${user.name}'Mensaje: I think that the problem is at: can somebody help me?? Oh! and the tomcat exception:Estado HTTP 500 - type Informe de Excepciónmensaje descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.excepción javax.servlet.ServletException: Cannot execute view page '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)causa raíz webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:87) webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50) webprofe.webfw.view.runtime.tree.Page.execute(Page.java:56) webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:61) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)causa raíz webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:87) webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50) webprofe.webfw.view.components.base.IfComponent.execute(IfComponent.java:18) webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:76) webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50) webprofe.webfw.view.runtime.tree.Page.execute(Page.java:56) webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:61) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) w
RE: javax.servlet.ServletException: Cannot execute view page '/mail.view'
you'll also need the controller.xml and the web.xml> From: [EMAIL PROTECTED]> To: users@tomcat.apache.org> Subject: Re: javax.servlet.ServletException: Cannot execute view page '/mail.view'> Date: Sun, 23 Dec 2007 10:41:18 -0500> > please display all relevant java source files> > Bon Chance/> M--> - Original Message -> From: 'rameau rameau1982' <[EMAIL PROTECTED]>> To: > Sent: Sunday, December 23, 2007 6:28 AM> Subject: javax.servlet.ServletException: Cannot execute view page> '/mail.view'> > > > Hi!> I'm studying at the university an assignature based on web applications> developement using java servlets, tomcat, Model-view-controller, and a> framework done by my teacher that is a simplification of struts (we use his> jar to implement all te classes of his framework and he has told us that> everything is correct and that we cannot modify his classes). He has> invented a language called VIEW.> The dynamic pages terminate with the sufix .view> > What I'm doing is a web application that has some users(with passwords) in a> postgresql database (here everything correct) and that they login and> send/receive messages to/from the rest of the users.> I'm also using eclipse, so everything is well compilated> When a user logins, tomcat sends me an exception and doesn't shows the main> dynamic page where the logged user views recieved messages and can send> messages to other users.> I give you the code of the mail.view page:> > > xmlns:b='/base.vlib' component-element-prefixes='b'>> Disseny d'aplicacions WEB: P3 href='styles.css' type='text/css'/> border='0' cellspacing='0' cellpadding='0'>> > ERROR Session Error HREF='index.html'>Volver> ${srv.userName} > No hay mensajes recibidos> Mensajes recibidos: ACTION='delete.do'>> > align='center'> remitente> mensaje fecha> eliminar > items='${srv.receivedMessages()}'>${message.from}${mes> sage.text}${message.date} type='checkbox' name='message_id'> value='${message.id}'/>> > > > ACTION='send.do'>Destinatario/s: multiple='multiple'>> value='${user.name}'>${user.name}'> Mensaje:> > >TYPE='submit' VALUE='Logout'/> > > > I think that the problem is at:> > > can somebody help me??> > Oh! and the tomcat exception:> Estado HTTP 500 -> > > type Informe de Excepción> mensaje> descripción El servidor encontró un error interno () que hizo que no pudiera> rellenar este requerimiento.> excepción javax.servlet.ServletException: Cannot execute view page> '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to> component: webprofe.webfw.view.processor.ViewException: Error in call to> component: webprofe.webfw.view.runtime.expression.EvalException: Undefined> property 'name' on target [EMAIL PROTECTED]> webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63)> webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108)> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)> webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134)> webprofe.webfw.controller.RequestMap.process(RequestMap.java:122)> webprofe.webfw.controller.Controller.process(Controller.java:57)> webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48> )> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)> > > causa raíz webprofe.webfw.view.processor.ViewException: Error in call to> component: webprofe.webfw.view.processor.ViewException: Error in call to> component: webprofe.webfw.view.runtime.expression.EvalException: Undefined> property 'name' on target [EMAIL PROTECTED]> webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:87)> webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50)> webprofe.webfw.view.runtime.tree.Page.execute(Page.java:56)> webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:61)> webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108)> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)> webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134)> webprofe.webfw.controller.RequestMap.process(RequestMap.java:122)> webprofe.webfw.control
RE: javax.servlet.ServletException: Cannot execute view page '/mail.view'
ok, here it goes the java sources if you need other java sources tell me> From: [EMAIL PROTECTED]> To: users@tomcat.apache.org> Subject: Re: javax.servlet.ServletException: Cannot execute view page '/mail.view'> Date: Sun, 23 Dec 2007 10:41:18 -0500> > please display all relevant java source files> > Bon Chance/> M--> - Original Message -> From: 'rameau rameau1982' <[EMAIL PROTECTED]>> To: > Sent: Sunday, December 23, 2007 6:28 AM> Subject: javax.servlet.ServletException: Cannot execute view page> '/mail.view'> > > > Hi!> I'm studying at the university an assignature based on web applications> developement using java servlets, tomcat, Model-view-controller, and a> framework done by my teacher that is a simplification of struts (we use his> jar to implement all te classes of his framework and he has told us that> everything is correct and that we cannot modify his classes). He has> invented a language called VIEW.> The dynamic pages terminate with the sufix .view> > What I'm doing is a web application that has some users(with passwords) in a> postgresql database (here everything correct) and that they login and> send/receive messages to/from the rest of the users.> I'm also using eclipse, so everything is well compilated> When a user logins, tomcat sends me an exception and doesn't shows the main> dynamic page where the logged user views recieved messages and can send> messages to other users.> I give you the code of the mail.view page:> > > xmlns:b='/base.vlib' component-element-prefixes='b'>> Disseny d'aplicacions WEB: P3 href='styles.css' type='text/css'/> border='0' cellspacing='0' cellpadding='0'>> > ERROR Session Error HREF='index.html'>Volver> ${srv.userName} > No hay mensajes recibidos> Mensajes recibidos: ACTION='delete.do'>> > align='center'> remitente> mensaje fecha> eliminar > items='${srv.receivedMessages()}'>${message.from}${mes> sage.text}${message.date} type='checkbox' name='message_id'> value='${message.id}'/>> > > > ACTION='send.do'>Destinatario/s: multiple='multiple'>> value='${user.name}'>${user.name}'> Mensaje:> > >TYPE='submit' VALUE='Logout'/> > > > I think that the problem is at:> > > can somebody help me??> > Oh! and the tomcat exception:> Estado HTTP 500 -> > > type Informe de Excepción> mensaje> descripción El servidor encontró un error interno () que hizo que no pudiera> rellenar este requerimiento.> excepción javax.servlet.ServletException: Cannot execute view page> '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to> component: webprofe.webfw.view.processor.ViewException: Error in call to> component: webprofe.webfw.view.runtime.expression.EvalException: Undefined> property 'name' on target [EMAIL PROTECTED]> webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63)> webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108)> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)> webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134)> webprofe.webfw.controller.RequestMap.process(RequestMap.java:122)> webprofe.webfw.controller.Controller.process(Controller.java:57)> webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48> )> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)> > > causa raíz webprofe.webfw.view.processor.ViewException: Error in call to> component: webprofe.webfw.view.processor.ViewException: Error in call to> component: webprofe.webfw.view.runtime.expression.EvalException: Undefined> property 'name' on target [EMAIL PROTECTED]> webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:87)> webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50)> webprofe.webfw.view.runtime.tree.Page.execute(Page.java:56)> webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:61)> webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108)> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)> webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134)> webprofe.webfw.controller.RequestMap.pr
Re: javax.servlet.ServletException: Cannot execute view page '/mail.view'
please display all relevant java source files Bon Chance/ M-- - Original Message - From: "rameau rameau1982" <[EMAIL PROTECTED]> To: Sent: Sunday, December 23, 2007 6:28 AM Subject: javax.servlet.ServletException: Cannot execute view page '/mail.view' Hi! I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW. The dynamic pages terminate with the sufix .view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users. I'm also using eclipse, so everything is well compilated When a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users. I give you the code of the mail.view page: http://soft0.upc.es:8080/web/NS/webfw/view"; xmlns:b="/base.vlib" component-element-prefixes="b"> Disseny d'aplicacions WEB: P3 ERROR Session Error Volver ${srv.userName} No hay mensajes recibidos Mensajes recibidos: remitente mensaje fecha eliminar ${message.from}${mes sage.text}${message.date} Destinatario/s: ${user.name}" Mensaje: I think that the problem is at: can somebody help me?? Oh! and the tomcat exception: Estado HTTP 500 - type Informe de Excepción mensaje descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento. excepción javax.servlet.ServletException: Cannot execute view page '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48 ) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) causa raíz webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:87) webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50) webprofe.webfw.view.runtime.tree.Page.execute(Page.java:56) webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:61) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48 ) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) causa raíz webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:87) webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50) webprofe.webfw.view.components.base.IfComponent.execute(IfComponent.java:18) webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:76) webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50) webprofe.webfw.view.runtime.tree.Page.execute(Page.java:56) webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:61) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webpr
javax.servlet.ServletException: Cannot execute view page '/mail.view'
Hi! I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his .jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW. The dynamic pages terminate with the sufix .view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users. I'm also using eclipse, so everything is well compilated When a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users. I give you the code of the mail.view page: http://soft0.upc.es:8080/web/NS/webfw/view"; xmlns:b="/base.vlib" component-element-prefixes="b"> Disseny d'aplicacions WEB: P3 ERROR Session Error Volver ${srv.userName} No hay mensajes recibidos Mensajes recibidos: remitente mensaje fecha eliminar ${message.from}${message.text}${message.date} Destinatario/s: ${user.name}" Mensaje: I think that the problem is at: can somebody help me?? Oh! and the tomcat exception: Estado HTTP 500 - type Informe de Excepción mensaje descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento. excepción javax.servlet.ServletException: Cannot execute view page '/mail.view': webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:63) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) causa raíz webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:87) webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50) webprofe.webfw.view.runtime.tree.Page.execute(Page.java:56) webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:61) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatchView(RequestMap.java:134) webprofe.webfw.controller.RequestMap.process(RequestMap.java:122) webprofe.webfw.controller.Controller.process(Controller.java:57) webprofe.webfw.controller.ControllerServlet.doPost(ControllerServlet.java:48) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) causa raíz webprofe.webfw.view.processor.ViewException: Error in call to component: webprofe.webfw.view.runtime.expression.EvalException: Undefined property 'name' on target [EMAIL PROTECTED] webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:87) webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50) webprofe.webfw.view.components.base.IfComponent.execute(IfComponent.java:18) webprofe.webfw.view.runtime.tree.CallNode.invoke(CallNode.java:76) webprofe.webfw.view.runtime.tree.Fragment.invoke(Fragment.java:50) webprofe.webfw.view.runtime.tree.Page.execute(Page.java:56) webprofe.webfw.view.http.ViewServlet.process(ViewServlet.java:61) webprofe.webfw.view.http.ViewServlet.doPost(ViewServlet.java:108) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) webprofe.webfw.controller.RequestMap.dispatch
Re: javax.servlet.ServletException: Cannot allocate servlet instancefor path /servlet/HelloWorld (repost I don't resolve the problem with your reply)
On 8/2/07, Fabbris Pierluigi <[EMAIL PROTECTED]> wrote: > javax.servlet.ServletException: Cannot allocate servlet instance for path > /servlet/HelloWorld > *My first servlet in directory classes is:* Uh, well -- this *isn't* a servlet. I'm guessing that's the problem :-) javax.servlet.Servlet is an interface -- your servlet needs to extend it (actually HttpServlet in this case). > class HelloWorld { > public static void main(String[] args) > { >System.out.println("Hello World!"); > } > } See the examples packaged with Tomcat, and take a look at the Servlet Spec JavaDocs. HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.servlet.ServletException: Cannot allocate servlet instancefor path /servlet/HelloWorld (repost I don't resolve the problem with your reply)
Hi, I've read the reply for the my question about javax.servlet.ServletException: Cannot allocate servlet instancefor path /servlet/HelloWorld. I ask again because I don't understand how apply it. *My Exception is:* HTTP Status 500 - *type* Exception report *message* *description* _The server encountered an internal error () that prevented it from fulfilling this request._ *exception* javax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/HelloWorld org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:380) org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:134) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) *root cause* java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardWrapper can not access a member of class HelloWorld with modifiers "" sun.reflect.Reflection.ensureMemberAccess(Unknown Source) java.lang.Class.newInstance0(Unknown Source) java.lang.Class.newInstance(Unknown Source) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:361) org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:134) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) 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.13 logs._ Apache Tomcat/6.0.13 *My first servlet in directory classes is:* class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } *The web.xml is:* http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5"> default org.apache.catalina.servlets.DefaultServlet debug 0 listings true 1 invoker org.apache.catalina.servlets.InvokerServlet debug 0 2 jsp org.apache.jasper.servlet.JspServlet fork false xpoweredBy false 3 default / invoker /servlet/* jsp *.jsp jsp *.jspx 30 abs audio/x-mpeg ai application/postscript aif audio/x-aiff aifc audio/x-aiff aiff audio/x-aiff aim application/x-aim art image/x-jg asf video/x-ms-asf asx video/x-ms-asf au audio/basic avi video/x-msvideo avx video/x-rad-screenplay bcpio application/x-bcpio bin application/octet-stream bmp image/bmp body text/html cdf application/x-cdf cer application/x-x509-ca-cert class application/java cpio application/x-cpio csh application/x-csh css text/css dib image/bmp doc application/msword dtd application/xml-dtd dv video/x-dv dvi application/x-dvi eps application/postscript etx text/x-setext exe application/octet-stream gif image/gif gtar application/x-gtar gz application/x
RE: javax.servlet.ServletException: Cannot allocate servlet instancefor path /servlet/HelloWorld
> From: Fabbris Pierluigi [mailto:[EMAIL PROTECTED] > Subject: javax.servlet.ServletException: Cannot allocate > servlet instancefor path /servlet/HelloWorld > > java.lang.IllegalAccessException: Class > org.apache.catalina.core.StandardWrapper can not access a > member of class HelloWorld with modifiers "" You've likely not used the public modifier on your doGet(), etc., methods. If that's not the case, post your servlet code to the list. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/HelloWorld
Hi, I've a problem with test of Servlet. I created a Hello World Severlet in the directory classes on Tomcat. I've try with: http://localhost:8080/servlet/Helloworld, but I've this Excpetion: javax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/HelloWorld org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:380) org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:134) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) *root cause* java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardWrapper can not access a member of class HelloWorld with modifiers "" sun.reflect.Reflection.ensureMemberAccess(Unknown Source) java.lang.Class.newInstance0(Unknown Source) java.lang.Class.newInstance(Unknown Source) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:361) org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:134) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) Why? And how I remove this problem? Tanks for the help that you give me. Sincerally yours, Fabbris Pierluigi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javax.servlet.ServletException: Java heap space
e.g. set MaxHeap to 512MB For all Java Processes [unix]export JVM_OPTS ="-Xmx512M" [windows] SET JVM_OPTS="-Xmx256m" For Tomcat only [unix] export TOMCAT_OPTS=3D"-DXmx=3D512m" [Windows] set TOMCAT_OPTS=3D"-DXmx=3D512m" Does this help? M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Aurélien Allienne" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, May 19, 2007 1:09 PM Subject: Re: javax.servlet.ServletException: Java heap space Thank, but tomcat use 64Mb by default. I can do change this parameter? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javax.servlet.ServletException: Java heap space
On 5/19/07, Aurélien Allienne <[EMAIL PROTECTED]> wrote: Thank, but tomcat use 64Mb by default. I can do change this parameter? Example: JAVA_OPTS="-server -Xms128m -Xmx384m" catalina.sh (Unix/Linux) or catalina.bat (MS Windows) Additional documents: http://www.google.com/search?sitesearch=tomcat.apache.org&q=JAVA_OPTS&Search=Search+Site -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javax.servlet.ServletException: Java heap space
Thank, but tomcat use 64Mb by default. I can do change this parameter?
Re: javax.servlet.ServletException: Java heap space
On 5/18/07, Aurélien Allienne <[EMAIL PROTECTED]> wrote: Hi, I have this error : javax.servlet.ServletException: Java heap space But I can find how I can change this in catalina.sh. Can you have the solution? Here are some memory configuration information: http://tomcat.apache.org/faq/memory.html The solution may not depend on the version of Tomcat, JDK etc you're using, but it helps for us to know just in case it does. Cordially Aurelien Allienne -Regards Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.servlet.ServletException: Java heap space
Hi, I have this error : javax.servlet.ServletException: Java heap space But I can find how I can change this in catalina.sh. Can you have the solution? Cordially Aurelien Allienne
javax.servlet.ServletException: Cannot create resource instance
Hi, Iam using Tomcat 5.5.9 and trying to define a bean resource and get an instance of the same inside a jsp thru JNDI lookup,Iam getting the following exception in the browser : - javax.servlet.ServletException: Cannot create resource instance org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781) org.apache.jsp.dates.dtest_jsp._jspService(org.apache.jsp.dates.dtest_jsp:74) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362) root cause javax.naming.NamingException: Cannot create resource instance org.apache.naming.factory.ResourceEnvFactory.getObjectInstance(ResourceEnvFactory.java:99) javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) org.apache.naming.NamingContext.lookup(NamingContext.java:792) org.apache.naming.NamingContext.lookup(NamingContext.java:139) org.apache.naming.NamingContext.lookup(NamingContext.java:780) org.apache.naming.NamingContext.lookup(NamingContext.java:152) org.apache.jsp.dates.dtest_jsp._jspService(org.apache.jsp.dates.dtest_jsp:57) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) - The entry in server.xml - Entry in Web.xml Object factory for MyBean instances. bean/MyBeanFactory dates.PersonBean -- Code snippet inside JSP where lookup is done : Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); PersonBean pb = (PersonBean) envCtx.lookup("bean/MyBeanFactory"); - The bean class exists and I can create an instance directly but when I try to do it thru env lookup it throws the above exception. I also saw a bug registered for the same but it was marked as resolved can anyone please tell me whats wrong with this setting. Thanks in advance. -Sameer - Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business.
Re: How do I fix this error in localhost_log? javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet
Include the bean-utils library from http://jakarta.apache.org/commons/beanutils in the WEB-INF/lib directory of your web application. --David [EMAIL PROTECTED] wrote: This is an excerpt from my localhost_log file: 2006-07-03 12:50:32 StandardContext[/strutsBlank]Marking servlet action as unavailable 2006-07-03 12:50:32 StandardContext[/strutsBlank]Servlet /strutsBlank threw load() exception javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1011) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:594) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) - Root Cause - java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618) Thanks! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I fix this error in localhost_log? javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet
Carrie, Did you include commons-beanutils in your war distribution? It is required for struts (from what I remember), but it cannot find it. [EMAIL PROTECTED] wrote: >This is an excerpt from my localhost_log file: > >2006-07-03 12:50:32 StandardContext[/strutsBlank]Marking servlet action as >unavailable >2006-07-03 12:50:32 StandardContext[/strutsBlank]Servlet /strutsBlank threw >load() exception >javax.servlet.ServletException: Error instantiating servlet class >org.apache.struts.action.ActionServlet > at >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1011) > at >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887) > at >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959) > at >org.apache.catalina.core.StandardContext.start(StandardContext.java:4284) > at >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) > at >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126) > at >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521) > at >org.apache.catalina.core.StandardService.start(StandardService.java:519) > at >org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) > at org.apache.catalina.startup.Catalina.start(Catalina.java:594) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) >- Root Cause - >java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter > at java.lang.Class.getDeclaredConstructors0(Native Method) > at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618) > > >Thanks! > > >- >To start a new topic, e-mail: users@tomcat.apache.org >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > -- __ Avi Deitcher [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I fix this error in localhost_log? javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet
This is an excerpt from my localhost_log file: 2006-07-03 12:50:32 StandardContext[/strutsBlank]Marking servlet action as unavailable 2006-07-03 12:50:32 StandardContext[/strutsBlank]Servlet /strutsBlank threw load() exception javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1011) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:594) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) - Root Cause - java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618) Thanks! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SEVERE: Error reading tld listeners javax.servlet.ServletException.
Sorry, I should have included this in my original email. I'm also converting from struts 1.1 - struts 1.2.9. I wanted to take advantage of some of the features offered by 2.4/2.0 servlet/jsp. So, the jars are different. thx -- View this message in context: http://www.nabble.com/SEVERE%3A-Error-reading-tld-listeners-javax.servlet.ServletException.---HELP-t1751842.html#a4773129 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SEVERE: Error reading tld listeners javax.servlet.ServletException. HELP
Have you checked the version of the struts jar files to make sure they are the same level from your old install of tomcat to your new install? It may just be that tomcat 5.5.X expects a certain level of struts. /shrug On 6/7/06, Richard DeGrande <[EMAIL PROTECTED]> wrote: I've recently upgraded to tomcat 5.5.15. I'm migrating current apps the the new tomcat. I get this error when starting/deploying a specific app. I have one other app deployed, it too uses struts, I have no problems with it. thanks Jun 7, 2006 4:28:51 PM org.apache.catalina.core.StandardContext processTlds SEVERE: Error reading tld listeners javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts-logic.tld in context /paimport javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts-logic.tld in context /paimport at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:547) at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:300) at org.apache.catalina.core.StandardContext.processTlds(StandardContext.jav - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Marc Farrow
SEVERE: Error reading tld listeners javax.servlet.ServletException. HELP
I've recently upgraded to tomcat 5.5.15. I'm migrating current apps the the new tomcat. I get this error when starting/deploying a specific app. I have one other app deployed, it too uses struts, I have no problems with it. thanks Jun 7, 2006 4:28:51 PM org.apache.catalina.core.StandardContext processTlds SEVERE: Error reading tld listeners javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts-logic.tld in context /paimport javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts-logic.tld in context /paimport at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:547) at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:300) at org.apache.catalina.core.StandardContext.processTlds(StandardContext.jav - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help for error javax.servlet.ServletException
A servlet threw a Throwwable during its service method which was not caught by any number of exceptions. There should be something in the logs (catalina.out of localhost_log_{date}.txt which should tell you the nested part of the exception. Otherwise - start looking for timestamps and trace that back to the access log. From there you might be able to find the culprit. -Tim Qaiser Mehmood wrote: Does anyone know why I am getting this error : javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:275) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help for error javax.servlet.ServletException
Does anyone know why I am getting this error : javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:275) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Thanks, Qaiser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.servlet.ServletException: javax/xml/rpc/Service
Hi friends, I am able to access web service via command prompt using "java -cp $AXISCLASSPATH ws.TestService" but getting following error when trying to access a web service via browser (jsp page) cause java.lang.NoClassDefFoundError: javax/xml/rpc/Service java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass(URLClassLoader.java:260) java.net.URLClassLoader.access$100(URLClassLoader.java:56) java.net.URLClassLoader$1.run(URLClassLoader.java:195) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:306) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) java.lang.ClassLoader.loadClass(ClassLoader.java:251) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1253) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1187) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:127) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) java.lang.Class.getDeclaredConstructors0(Native Method) java.lang.Class.privateGetDeclaredConstructors(Class.java:2328) java.lang.Class.getConstructor0(Class.java:2640) java.lang.Class.newInstance0(Class.java:321) java.lang.Class.newInstance(Class.java:303) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.jav a:138) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 05) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.12 logs. //STACK Trace from log file 2006-01-02 21:18:10,375 [TP-Processor5] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis].[jsp] - Servlet.service() for servlet jsp threw exception java.lang.NoClassDefFoundError: javax/xml/rpc/Service at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1253) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1187) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:127) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328) at java.lang.Class.getConstructor0(Class.java:2640) at java.lang.Class.newInstance0(Class.java:321) at java.lang.Class.newInstance(Class.java:303) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.jav a:138) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 05) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 )