Re: javax.servlet.ServletException: Cannot find bean usersList in scope request

2008-07-27 Thread Carlos Morales
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

2008-07-26 Thread David Smith
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.printStackTrace();
   throw new RuntimeException("It's impossible to get the connection");
  }finally{
   try{

RE: javax.servlet.ServletException: Cannot find bean usersList in scope request

2008-07-26 Thread Carlos Morales
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{
if(con.isClosed()){
 throw new IllegalStateException("error.unexpected");
}

ps=co

Re: javax.servlet.ServletException: Cannot find bean usersList in scope request

2008-07-25 Thread David Smith
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);
Collection col=usersDAO.findAll();

request.setAttribute

RE: javax.servlet.ServletException: Cannot find bean usersList in scope request

2008-07-25 Thread Carlos Morales Diego



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
> * @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

RE: javax.servlet.ServletException: Could not connect to SMTP host: localhost, port: 25

2008-07-17 Thread Carlos Morales Diego


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

2008-07-17 Thread Youssef Mohammed
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

2008-07-17 Thread Carlos Morales Diego


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

2008-07-14 Thread Jonas Wagner
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

2008-07-14 Thread Carlos Morales Diego

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]



RE: javax.servlet.ServletException

2007-12-30 Thread rameau rameau1982

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

2007-12-26 Thread Martin Gainty
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

RE: javax.servlet.ServletException

2007-12-26 Thread rameau rameau1982

 ${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

2007-12-26 Thread rameau rameau1982

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

2007-12-24 Thread David Smith
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

2007-12-24 Thread rameau rameau1982

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

RE: javax.servlet.ServletException

2007-12-23 Thread rameau rameau1982

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

2007-12-23 Thread Alan Chaney

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] 


 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.v

RE: javax.servlet.ServletException: Cannot execute view page '/mail.view'

2007-12-23 Thread rameau rameau1982

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'

2007-12-23 Thread rameau rameau1982

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'

2007-12-23 Thread Martin Gainty
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)
webprofe.webfw.controller.RequestMap.process(RequestMap.java:122)
webprofe.webfw.controller.Controller.process(Controller.java:57)
webprofe.web

Re: javax.servlet.ServletException: Cannot allocate servlet instancefor path /servlet/HelloWorld (repost I don't resolve the problem with your reply)

2007-08-02 Thread Hassan Schroeder
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]



RE: javax.servlet.ServletException: Cannot allocate servlet instancefor path /servlet/HelloWorld

2007-08-02 Thread Caldarale, Charles R
> 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]



Re: javax.servlet.ServletException: Java heap space

2007-05-19 Thread Martin Gainty

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

2007-05-19 Thread Rashmi Rubdi

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

2007-05-19 Thread Aurélien Allienne

Thank, but tomcat use 64Mb by default. I can do change this parameter?


Re: javax.servlet.ServletException: Java heap space

2007-05-19 Thread Rashmi Rubdi

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]