Re: Visualage Java 3.5 with tomcat and struts

2001-04-06 Thread Sylvain Fagnent

We had a similar problem. In our case it appears that the Digester was
missing. Remove the IBM XML Parser for Java Project and replace it by a
Xerces parser in a XML projext for instance. Go to http://xml.apache.org/
you'll find the XERCES parser jar.

Sylvain Fagnent


- Original Message -
From: "Wes Cummings" <[EMAIL PROTECTED]>
To: "Struts-User" <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 10:18 PM
Subject: Visualage Java 3.5 with tomcat and struts


> hi,
> I am trying to get struts to run in VAJ3.5 pacth 2. I have tomcat running
> fine. The version of tomcat is 3.1. The version of struts is 1.0-beta-1.
In
> stepping thru with the debugger, it appears to get the error when trying
to
> load org.apache.struts.digester.Digster. I have all Struts classes loaded
in
> VisualAge and have added the Struts project to the TomcatRunner
properties.
> I have tried adding the struts.jar to TomcatRunner's classpath as well
with
> know luck. Any help at all would be most appreciated.
>
> Thanks in advance,
>
> Wes Cummings
>
> I get the following error when tomcat is starting up:
>
> Context log path="/struts-example" :tomcat.errorPage: init
> Context log: path="/struts-example" XmlReader - init  /struts-example
> webapps/struts-example
> Context log: path="/struts-example" Reading
> E:\VAJ\ide\project_resources\Apache_Tomcat_Test_Environment\conf\web.xml
> Context log: path="/struts-example" Reading
>
E:\VAJ\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\struts-e
> xample\WEB-INF\web.xml
> Context log: path="/struts-example" Loading -2147483646 jsp
> Context log path="/struts-example" :jsp: init
>  Fri Apr 06 12:38:25 PDT 2001 Parent class loader is:
> org.apache.tomcat.loader.AdaptiveServletLoader@78c7
> Context log: path="/struts-example" Loading -2147483646 default
> Context log path="/struts-example" :default: init
> Context log: path="/struts-example" Loading 1 database
> Context log path="/struts-example" :database: init
> Context log path="/struts-example" :database: Initializing database
servlet
> Context log path="/struts-example" :database: Loading database from
> '/WEB-INF/database.xml'
> Exception occurred:  null
> java.lang.reflect.InvocationTargetException: java.lang.InternalError:
(Ex02)
> An error has occurred.
> java.lang.Throwable(java.lang.String)
> java.lang.Error(java.lang.String)
> java.lang.VirtualMachineError(java.lang.String)
> java.lang.InternalError(java.lang.String)
> void org.apache.struts.example.DatabaseServlet.load()
> void org.apache.struts.example.DatabaseServlet.load()
> void org.apache.struts.example.DatabaseServlet.init()
> void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
> void org.apache.tomcat.core.ServletWrapper.initServlet()
> void org.apache.tomcat.core.ServletWrapper.loadServlet()
> void
>
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(org.apache.to
> mcat.core.Context)
> void
>
org.apache.tomcat.core.ContextManager.initContext(org.apache.tomcat.core.Con
> text)
> void org.apache.tomcat.core.ContextManager.init()
> void org.apache.tomcat.startup.Tomcat.execute(java.lang.String [])
> void org.apache.tomcat.startup.Tomcat.main(java.lang.String [])
> java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object,
> java.lang.Object [])
> void com.ibm.ivj.tomcat.TomcatRunner.startTomcat(java.lang.String)
> void
>
com.ibm.ivj.tomcat.TomcatRunner.actionPerformed(java.awt.event.ActionEvent)
> void java.awt.Button.processActionEvent(java.awt.event.ActionEvent)
> void java.awt.Button.processEvent(java.awt.AWTEvent)
> void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
> void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
> void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
> boolean java.awt.EventDispatchThread.pumpOneEvent()
> void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
> void java.awt.EventDispatchThread.run()
>
>




Logic iterate problems

2001-05-10 Thread Sylvain FAGNENT



Hello,
 
I have a Vector Object stored in my session with 
the key "tabTest" this Vector contains "Client" Objetcs, Client classe have 
a "name" property.
 
I use this code in my JSP :
 
    
 
This error is return :
 
...JSP Exception : Cannot find bean client in scope 
null
 
any help...Thanks
 
Sylvain


Re: Logic iterate problems

2001-05-10 Thread Sylvain FAGNENT



Yes , we did ! :-(

  - Original Message - 
  From: 
  Dudley Butt@i-Commerce 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Thursday, May 10, 2001 3:04 
PM
  Subject: RE: Logic iterate problems
  
  have 
  u put that object into the session, before u get to the 
  form
   
  session.setAttribute("tabTest", 
  VectorObject);
  
-Original Message-From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]Sent: 
Thursday, May 10, 2001 2:57 PMTo: [EMAIL PROTECTED]Subject: 
Logic iterate problems
Hello,
 
I have a Vector Object stored in my session 
with the key "tabTest" this Vector contains "Client" Objetcs, Client 
classe have a "name" property.
 
I use this code in my JSP :
 
    
 
This error is return :
 
...JSP Exception : Cannot find bean client in 
scope null
 
any help...Thanks
 
Sylvain


Re: Logic iterate problems

2001-05-10 Thread Sylvain FAGNENT



I tried, here is the code in my action 
:
 
 tabTest= new 
Vector(); test = new 
Client(); test.setName("Tata 
DUBAR"); tabTest.add(test); test 
= new 
Client(); test.setName("SFA"); tabTest.add(test);
 session.setAttribute("tabTest",tabTest);
 
And the JSP code :
 
     
 
I still have my "cannnot find client bean " 
error.
 
Thanks Sylvain !

  - Original Message - 
  From: 
  Nanduri, Amarnath 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Thursday, May 10, 2001 3:17 
PM
  Subject: RE: Logic iterate problems
  
  Maybe use need to use the  
  in 
  your jsp page. Give it a shot and let me know...
   
  cheers,
  Amar..
  
    -Original Message-From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]Sent: 
Thursday, May 10, 2001 9:13 AMTo: [EMAIL PROTECTED]Subject: 
Re: Logic iterate problems
Yes , we did ! :-(

  - Original Message - 
  From: 
  Dudley Butt@i-Commerce 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Thursday, May 10, 2001 3:04 
  PM
  Subject: RE: Logic iterate 
  problems
  
  have u put that object into the session, before u 
  get to the form
   
  session.setAttribute("tabTest", 
  VectorObject);
  
-Original Message-From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]Sent: 
Thursday, May 10, 2001 2:57 PMTo: [EMAIL PROTECTED]Subject: 
Logic iterate problems
Hello,
 
I have a Vector Object stored in my session 
with the key "tabTest" this Vector contains "Client" Objetcs, Client 
classe have a "name" property.
 
I use this code in my JSP :
 
    

 
This error is return :
 
...JSP Exception : Cannot find bean client 
in scope null
 
any help...Thanks
 
Sylvain


Re: Logic iterate problems

2001-05-10 Thread Sylvain FAGNENT

I tried to encapsulate all my tags with

..


But it still doesn't work !
- Original Message -
From: "Firmin David" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 3:22 PM
Subject: RE: Logic iterate problems


> I came across a similar problem not so long ago. What I'd done wrong was
try
> and access properties outside the  tags.
> Moving my tag calls inside the form tags fixed my problem at the time, but
I
> don't know if this applies in your case. It's worth double checking
> none-the-less.
>
> Regards
> David
>
> -Original Message-
> From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]
> Sent: 10 May 2001 13:57
> To: [EMAIL PROTECTED]
> Subject: Logic iterate problems
>
>
> Hello,
>
> I have a Vector Object stored in my session with the key "tabTest" this
> Vector
> contains "Client" Objetcs, Client classe have a "name" property.
>
> I use this code in my JSP :
>
> 
> 
> 
>
> This error is return :
>
> ...JSP Exception : Cannot find bean client in scope null
>
> any help...Thanks
>
> Sylvain
>
>
>
> 
> The information in this email is confidential and is intended solely
> for the addressee(s).
> Access to this email by anyone else is unauthorised. If you are not
> an intended recipient, you must not read, use or disseminate the
> information contained in the email.
> Any views expressed in this message are those of the individual
> sender, except where the sender specifically states them to be
> the views of Capco.
>
> http://www.capco.com
> ***
>
>




Re: Logic iterate problems

2001-05-10 Thread Sylvain FAGNENT



In fact I use the full class name in the iterate 
Tag !

  - Original Message - 
  From: 
  Nanduri, Amarnath 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Thursday, May 10, 2001 3:39 
PM
  Subject: RE: Logic iterate problems
  
  In 
  your jsp page did you do an import on client ?
   
  
  <%@ page import = "beans.Client" %>
   


Re: Logic iterate problems

2001-05-10 Thread Sylvain FAGNENT

Doesn't work since we retrieve the following exception:
"javax.servlet.jsp.JspException: No getter method for property choix of bean
tabTest"

tabTest is a Vector!!

- Original Message -
From: "Dudley Butt@i-Commerce" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 3:45 PM
Subject: RE: Logic iterate problems


> try this
>
> 
> > 
> > 
>
> -Original Message-
> From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 10, 2001 3:37 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Logic iterate problems
>
>
> I tried to encapsulate all my tags with
> 
> ..
> 
>
> But it still doesn't work !
> - Original Message -
> From: "Firmin David" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 10, 2001 3:22 PM
> Subject: RE: Logic iterate problems
>
>
> > I came across a similar problem not so long ago. What I'd done wrong was
> try
> > and access properties outside the  tags.
> > Moving my tag calls inside the form tags fixed my problem at the time,
but
> I
> > don't know if this applies in your case. It's worth double checking
> > none-the-less.
> >
> > Regards
> > David
> >
> > -Original Message-
> > From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]
> > Sent: 10 May 2001 13:57
> > To: [EMAIL PROTECTED]
> > Subject: Logic iterate problems
> >
> >
> > Hello,
> >
> > I have a Vector Object stored in my session with the key "tabTest" this
> > Vector
> > contains "Client" Objetcs, Client classe have a "name" property.
> >
> > I use this code in my JSP :
> >
> > 
> > 
> > 
> >
> > This error is return :
> >
> > ...JSP Exception : Cannot find bean client in scope null
> >
> > any help...Thanks
> >
> > Sylvain
> >
> >
> >
> > 
> > The information in this email is confidential and is intended solely
> > for the addressee(s).
> > Access to this email by anyone else is unauthorised. If you are not
> > an intended recipient, you must not read, use or disseminate the
> > information contained in the email.
> > Any views expressed in this message are those of the individual
> > sender, except where the sender specifically states them to be
> > the views of Capco.
> >
> > http://www.capco.com
> > ***
> >
> >
>




Re: Logic iterate problems => solution

2001-05-10 Thread Sylvain FAGNENT



I found the error, the logic tld was not 
imported...
the logic tag was not parsed 
 
stupid error isn't it ?? :-

  - Original Message - 
  From: 
  Sylvain FAGNENT 
  
  To: [EMAIL PROTECTED] 
  Sent: Thursday, May 10, 2001 3:41 
PM
  Subject: Re: Logic iterate problems
  
  In fact I use the full class name in the iterate 
  Tag !
  
- Original Message - 
From: 
Nanduri, Amarnath 
To: '[EMAIL PROTECTED]' 

Sent: Thursday, May 10, 2001 3:39 
PM
Subject: RE: Logic iterate 
problems

In 
your jsp page did you do an import on client ?
 

<%@ page import = "beans.Client" %>