RE: Struts/JBoss Developers
Folks, We are actively looking for middle level java developers at GlobalNetXChange (www.gnx.com). If you have 2-3 years of industry experience using Struts/JBoss and are looking for a job, please send me your resume at [EMAIL PROTECTED] Thanks, Yibing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts/Jboss 3.2.x
You must define where your Rmi Server is listening , by default in Jboss is 1099. - Original Message - From: "Buics" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, June 28, 2003 5:01 AM Subject: Re: Struts/Jboss 3.2.x > I still have this exception > java.rmi.ServerException: RemoteException occurred in server thread; nested exce > > ption is: > java.rmi.ServerException: EJBException:; nested exception is: > javax.ejb.EJBException: null > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292) > at sun.rmi.transport.Transport$1.run(Transport.java:148) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:144) > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4 > > thank you anyway > > Konstadinis Euaggelos wrote: > > > Probaly as i understand, you have your web application in Tomcat, and your > > backoffice application (EJBs, JavaBeans) in JBoss, > > > > 1. JBoss have an embedded Tomcat 4.1.24 you can use this. > > > > 2. If you want to use tomcat as an seperate servlet-cointainer , you must > > insert you client jars from JBOSS_HOME/client to the libs of the your > > tomcat, > > > > 3. In your jsp when you lookup an object > > > > you must create a Property Object, Properties props = new Properties(); > > and you must add the properties for the jboss. @see > > JBOSS_DIR/server/default/conf/jndi.properties > > > > InitialContex ctx = new InitialContex(props) > > > > Hope this help you . > > > > - Original Message - > > From: "Buics" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Friday, June 27, 2003 11:31 AM > > Subject: Re: Struts/Jboss 3.2.x > > > > > Thank you for that . . > > > > > > Here's my setup ... > > > My jboss and tomcat was installed in separate box. > > > say .. > > > jboss --> server_1 > > > tomcat --> server_2 > > > > > > my problem is in the lookup part, > > > > > > javax.naming.NameNotFoundException: FinishedGoods not bound > > > at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) > > > at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) > > > at org.jnp.server.NamingServer.getObject(NamingServer.java:509) > > > at org.jnp.server.NamingServer.lookup(NamingServer.java:282) > > > at org.jnp.server.NamingServer.lookup(NamingServer.java:256) > > > at org.jnp.server.NamingServer.lookup(NamingServer.java:256) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > > > > > > java:39) > > > > > > TIA, > > > buics > > > > > > Konstadinis Euaggelos wrote: > > > > > > > The jars that are in the lib directory of the Struts, > > > > There are two ways for this, > > > > > > > > 1. to put these jars in the server/default/lib directory, > > > > 2. second to put these jars in the lib directory you web-application > > > > WEB-INF/lib > > > > > > > > Vangos > > > > > > > > - Original Message - > > > > From: "Buics" <[EMAIL PROTECTED]> > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > Sent: Friday, June 27, 2003 9:37 AM > > > > Subject: Re: Struts/Jboss 3.2.x > > > > > > > > > Thank you so much for your reply. > > > > > > > > > > what are the necessary run time classes that needs to be included in > > the > > > > > application. > > > > > > > > > > TIA, > > > > > buics > > > > > > > > > > > > > > > Konstadinis Euaggelos wrote: > > > > > > > > > > > I haven't face any problem, > > > > > > > > > > > > V. > > > > > > - Original Message - > > > > > > From: "Buics" <[EMAIL PROTECTED]> > > > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > > > Sent: Friday, June 27, 2
Re: Struts/Jboss 3.2.x
I still have this exception java.rmi.ServerException: RemoteException occurred in server thread; nested exce ption is: java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: null at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4 thank you anyway Konstadinis Euaggelos wrote: > Probaly as i understand, you have your web application in Tomcat, and your > backoffice application (EJBs, JavaBeans) in JBoss, > > 1. JBoss have an embedded Tomcat 4.1.24 you can use this. > > 2. If you want to use tomcat as an seperate servlet-cointainer , you must > insert you client jars from JBOSS_HOME/client to the libs of the your > tomcat, > > 3. In your jsp when you lookup an object > > you must create a Property Object, Properties props = new Properties(); > and you must add the properties for the jboss. @see > JBOSS_DIR/server/default/conf/jndi.properties > > InitialContex ctx = new InitialContex(props) > > Hope this help you . > > - Original Message - > From: "Buics" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, June 27, 2003 11:31 AM > Subject: Re: Struts/Jboss 3.2.x > > > Thank you for that . . > > > > Here's my setup ... > > My jboss and tomcat was installed in separate box. > > say .. > > jboss --> server_1 > > tomcat --> server_2 > > > > my problem is in the lookup part, > > > > javax.naming.NameNotFoundException: FinishedGoods not bound > > at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) > > at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) > > at org.jnp.server.NamingServer.getObject(NamingServer.java:509) > > at org.jnp.server.NamingServer.lookup(NamingServer.java:282) > > at org.jnp.server.NamingServer.lookup(NamingServer.java:256) > > at org.jnp.server.NamingServer.lookup(NamingServer.java:256) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > > > > java:39) > > > > TIA, > > buics > > > > Konstadinis Euaggelos wrote: > > > > > The jars that are in the lib directory of the Struts, > > > There are two ways for this, > > > > > > 1. to put these jars in the server/default/lib directory, > > > 2. second to put these jars in the lib directory you web-application > > > WEB-INF/lib > > > > > > Vangos > > > > > > - Original Message - > > > From: "Buics" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Friday, June 27, 2003 9:37 AM > > > Subject: Re: Struts/Jboss 3.2.x > > > > > > > Thank you so much for your reply. > > > > > > > > what are the necessary run time classes that needs to be included in > the > > > > application. > > > > > > > > TIA, > > > > buics > > > > > > > > > > > > Konstadinis Euaggelos wrote: > > > > > > > > > I haven't face any problem, > > > > > > > > > > V. > > > > > - Original Message - > > > > > From: "Buics" <[EMAIL PROTECTED]> > > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > > Sent: Friday, June 27, 2003 1:27 AM > > > > > Subject: Struts/Jboss 3.2.x > > > > > > > > > > > Is there any incompatibility issues between struts 1.1 and jboss > > > 3.2.x? > > > > > > > > > > > > TIA, > > > > > > buics > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > -- > > > > > > > > > > > > > > > > > - > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > For additional com
Re: Struts/Jboss 3.2.x
Probaly as i understand, you have your web application in Tomcat, and your backoffice application (EJBs, JavaBeans) in JBoss, 1. JBoss have an embedded Tomcat 4.1.24 you can use this. 2. If you want to use tomcat as an seperate servlet-cointainer , you must insert you client jars from JBOSS_HOME/client to the libs of the your tomcat, 3. In your jsp when you lookup an object you must create a Property Object, Properties props = new Properties(); and you must add the properties for the jboss. @see JBOSS_DIR/server/default/conf/jndi.properties InitialContex ctx = new InitialContex(props) Hope this help you . - Original Message - From: "Buics" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, June 27, 2003 11:31 AM Subject: Re: Struts/Jboss 3.2.x > Thank you for that . . > > Here's my setup ... > My jboss and tomcat was installed in separate box. > say .. > jboss --> server_1 > tomcat --> server_2 > > my problem is in the lookup part, > > javax.naming.NameNotFoundException: FinishedGoods not bound > at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) > at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) > at org.jnp.server.NamingServer.getObject(NamingServer.java:509) > at org.jnp.server.NamingServer.lookup(NamingServer.java:282) > at org.jnp.server.NamingServer.lookup(NamingServer.java:256) > at org.jnp.server.NamingServer.lookup(NamingServer.java:256) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > > java:39) > > TIA, > buics > > Konstadinis Euaggelos wrote: > > > The jars that are in the lib directory of the Struts, > > There are two ways for this, > > > > 1. to put these jars in the server/default/lib directory, > > 2. second to put these jars in the lib directory you web-application > > WEB-INF/lib > > > > Vangos > > > > ----- Original Message - > > From: "Buics" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Friday, June 27, 2003 9:37 AM > > Subject: Re: Struts/Jboss 3.2.x > > > > > Thank you so much for your reply. > > > > > > what are the necessary run time classes that needs to be included in the > > > application. > > > > > > TIA, > > > buics > > > > > > > > > Konstadinis Euaggelos wrote: > > > > > > > I haven't face any problem, > > > > > > > > V. > > > > - Original Message - > > > > From: "Buics" <[EMAIL PROTECTED]> > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > Sent: Friday, June 27, 2003 1:27 AM > > > > Subject: Struts/Jboss 3.2.x > > > > > > > > > Is there any incompatibility issues between struts 1.1 and jboss > > 3.2.x? > > > > > > > > > > TIA, > > > > > buics > > > > > > > > > > > > > > > > > > > > -- > > -- > > > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > -- -- > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts/Jboss 3.2.x
Thank you for that . . Here's my setup ... My jboss and tomcat was installed in separate box. say .. jboss --> server_1 tomcat --> server_2 my problem is in the lookup part, javax.naming.NameNotFoundException: FinishedGoods not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) at org.jnp.server.NamingServer.getObject(NamingServer.java:509) at org.jnp.server.NamingServer.lookup(NamingServer.java:282) at org.jnp.server.NamingServer.lookup(NamingServer.java:256) at org.jnp.server.NamingServer.lookup(NamingServer.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) TIA, buics Konstadinis Euaggelos wrote: > The jars that are in the lib directory of the Struts, > There are two ways for this, > > 1. to put these jars in the server/default/lib directory, > 2. second to put these jars in the lib directory you web-application > WEB-INF/lib > > Vangos > > - Original Message - > From: "Buics" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, June 27, 2003 9:37 AM > Subject: Re: Struts/Jboss 3.2.x > > > Thank you so much for your reply. > > > > what are the necessary run time classes that needs to be included in the > > application. > > > > TIA, > > buics > > > > > > Konstadinis Euaggelos wrote: > > > > > I haven't face any problem, > > > > > > V. > > > - Original Message - > > > From: "Buics" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Friday, June 27, 2003 1:27 AM > > > Subject: Struts/Jboss 3.2.x > > > > > > > Is there any incompatibility issues between struts 1.1 and jboss > 3.2.x? > > > > > > > > TIA, > > > > buics > > > > > > > > > > > > > > > -- > -- > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts/Jboss 3.2.x
The jars that are in the lib directory of the Struts, There are two ways for this, 1. to put these jars in the server/default/lib directory, 2. second to put these jars in the lib directory you web-application WEB-INF/lib Vangos - Original Message - From: "Buics" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, June 27, 2003 9:37 AM Subject: Re: Struts/Jboss 3.2.x > Thank you so much for your reply. > > what are the necessary run time classes that needs to be included in the > application. > > TIA, > buics > > > Konstadinis Euaggelos wrote: > > > I haven't face any problem, > > > > V. > > - Original Message - > > From: "Buics" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Friday, June 27, 2003 1:27 AM > > Subject: Struts/Jboss 3.2.x > > > > > Is there any incompatibility issues between struts 1.1 and jboss 3.2.x? > > > > > > TIA, > > > buics > > > > > > > > > > -- -- > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts/Jboss 3.2.x
HI, i have also a struts app running under jboss 3.2.1 jars that i have put in WEB-INF\lib are all the jars that u find in the lib directory of your struts distribution don't forget to put all the .tld that u find in the lib in your WEB-INF directory of your app regards marco > -Original Message- > From: ext Buics [mailto:[EMAIL PROTECTED] > Sent: 27 June, 2003 10:37 > To: Struts Users Mailing List > Subject: Re: Struts/Jboss 3.2.x > > > Thank you so much for your reply. > > what are the necessary run time classes that needs to be > included in the > application. > > TIA, > buics > > > Konstadinis Euaggelos wrote: > > > I haven't face any problem, > > > > V. > > - Original Message - > > From: "Buics" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Friday, June 27, 2003 1:27 AM > > Subject: Struts/Jboss 3.2.x > > > > > Is there any incompatibility issues between struts 1.1 > and jboss 3.2.x? > > > > > > TIA, > > > buics > > > > > > > > > > > -- > -- > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts/Jboss 3.2.x
Thank you so much for your reply. what are the necessary run time classes that needs to be included in the application. TIA, buics Konstadinis Euaggelos wrote: > I haven't face any problem, > > V. > - Original Message - > From: "Buics" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, June 27, 2003 1:27 AM > Subject: Struts/Jboss 3.2.x > > > Is there any incompatibility issues between struts 1.1 and jboss 3.2.x? > > > > TIA, > > buics > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts/Jboss 3.2.x
Is anybody using JASS with JBOSS .. -Original Message- From: Konstadinis Euaggelos [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 1:32 PM To: Struts Users Mailing List Subject: Re: Struts/Jboss 3.2.x I haven't face any problem, V. - Original Message - From: "Buics" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, June 27, 2003 1:27 AM Subject: Struts/Jboss 3.2.x > Is there any incompatibility issues between struts 1.1 and jboss 3.2.x? > > TIA, > buics > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts/Jboss 3.2.x
I haven't face any problem, V. - Original Message - From: "Buics" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, June 27, 2003 1:27 AM Subject: Struts/Jboss 3.2.x > Is there any incompatibility issues between struts 1.1 and jboss 3.2.x? > > TIA, > buics > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts JBoss / Tomcat and Form
Title: Struts JBoss / Tomcat and From Gregory Have you got any examples on how to use nested properties? My initial assumption would be to use public attributes in the form bean and multiple dot operators in the .jsp to populate the fields? -Original Message- From: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 5:53 PM To: [EMAIL PROTECTED] Subject: Re: Struts JBoss / Tomcat and From Why do you use ActionForm as value object in EJB? I thnik, this is not a clean design, since you make your EJB code dependent on Struts. Struts beloongs to the web layer, EJB to the businness layer. Your EJB do not need things like HttpRequest, so'd try to make them independet from the servlet.* package. I'd suggest a simple redesign. Use simple beans as value object and nest them in your action forms. Struts supports nested properties, so will not need to create delegating propertry setters and getters in your action form. (unless you want to do some conversions - ActionForms' properties should be string based, value objects should use the "real" type of the property) -- gR P.S.: Of course it would be nice, if struts.jar could be installed in server scope instead of application scope. I suppose, it would need some changes in the class loading in ActionServlet. - Original Message - From: Nortje, Andrew To: '[EMAIL PROTECTED]' Sent: Thursday, September 20, 2001 10:50 PM Subject: Struts JBoss / Tomcat and From I have deployed my app using JBoss/Tomcat. I recently started using the ActionForm as value objects in my EJB's. JBoss now needs struts.jar in the class path, so it can find ActionForm, so I put sturts.jar in JBOSS_HOME/lib/ext. This works fine put it kills struts. Struts now throws a ClassNotFoundException for my ActionForm's. If I remove the stuts.jar from the JBoss class path JBoss dies and struts works again. Anyone got some advice for me here? Thanks in advance. Andrew This is the exception that get thrown by Tomcat Error: 500 Location: /jazzman/contact/details/address.jsp Internal Servlet Error: javax.servlet.ServletException: Exception creating bean of class com.jazzman.contact.details.view.AddressValue: java.lang.ClassNotFoundException: com.jazzman.contact.details.view.AddressValue at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at contact.details._0002fcontact_0002fdetails_0002faddress_0002ejspaddress_jsp_0._jspService(_0002fcontact_0002fdetails_0002faddress_0002ejspaddress_jsp_0.java:409) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Unknown Source) Root cause: javax.servlet.jsp.JspException: Exception creating bean of class com.jazzman.contact.details.view.AddressValue: java.lang.ClassNotFoundException: com.jazzman.contact.details.view.AddressValue at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:527) at contact.details._0002fcontact_0002fdetails_0002faddress_0002ejspaddress_jsp_0._jspService(_0002fcontact_0002fdetails_0002faddress_0002ejspaddress_jsp_0.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$
RE: Struts JBoss / Tomcat and From
Title: Struts JBoss / Tomcat and From Gregory Thanks for the input. It has been bothering me using ActionForm in the EJB layer, as you say it mixes view and model. The nested properties idea is great, thanks. Andrew -Original Message- From: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 5:53 PM To: [EMAIL PROTECTED] Subject: Re: Struts JBoss / Tomcat and From Why do you use ActionForm as value object in EJB? I thnik, this is not a clean design, since you make your EJB code dependent on Struts. Struts beloongs to the web layer, EJB to the businness layer. Your EJB do not need things like HttpRequest, so'd try to make them independet from the servlet.* package. I'd suggest a simple redesign. Use simple beans as value object and nest them in your action forms. Struts supports nested properties, so will not need to create delegating propertry setters and getters in your action form. (unless you want to do some conversions - ActionForms' properties should be string based, value objects should use the "real" type of the property) -- gR P.S.: Of course it would be nice, if struts.jar could be installed in server scope instead of application scope. I suppose, it would need some changes in the class loading in ActionServlet. - Original Message - From: Nortje, Andrew To: '[EMAIL PROTECTED]' Sent: Thursday, September 20, 2001 10:50 PM Subject: Struts JBoss / Tomcat and From I have deployed my app using JBoss/Tomcat. I recently started using the ActionForm as value objects in my EJB's. JBoss now needs struts.jar in the class path, so it can find ActionForm, so I put sturts.jar in JBOSS_HOME/lib/ext. This works fine put it kills struts. Struts now throws a ClassNotFoundException for my ActionForm's. If I remove the stuts.jar from the JBoss class path JBoss dies and struts works again. Anyone got some advice for me here? Thanks in advance. Andrew This is the exception that get thrown by Tomcat Error: 500 Location: /jazzman/contact/details/address.jsp Internal Servlet Error: javax.servlet.ServletException: Exception creating bean of class com.jazzman.contact.details.view.AddressValue: java.lang.ClassNotFoundException: com.jazzman.contact.details.view.AddressValue at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at contact.details._0002fcontact_0002fdetails_0002faddress_0002ejspaddress_jsp_0._jspService(_0002fcontact_0002fdetails_0002faddress_0002ejspaddress_jsp_0.java:409) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Unknown Source) Root cause: javax.servlet.jsp.JspException: Exception creating bean of class com.jazzman.contact.details.view.AddressValue: java.lang.ClassNotFoundException: com.jazzman.contact.details.view.AddressValue at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:527) at contact.details._0002fcontact_0002fdetails_0002faddress_0002ejspaddress_jsp_0._jspService(_0002fcontact_0002fdetails_0002faddress_0002ejspaddress_jsp_0.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWra
Re: Struts JBoss / Tomcat and From
Title: Struts JBoss / Tomcat and From Why do you use ActionForm as value object in EJB? I thnik, this is not a clean design, since you make your EJB code dependent on Struts. Struts beloongs to the web layer, EJB to the businness layer. Your EJB do not need things like HttpRequest, so'd try to make them independet from the servlet.* package. I'd suggest a simple redesign. Use simple beans as value object and nest them in your action forms. Struts supports nested properties, so will not need to create delegating propertry setters and getters in your action form. (unless you want to do some conversions - ActionForms' properties should be string based, value objects should use the "real" type of the property) -- gR P.S.: Of course it would be nice, if struts.jar could be installed in server scope instead of application scope. I suppose, it would need some changes in the class loading in ActionServlet. - Original Message - From: Nortje, Andrew To: '[EMAIL PROTECTED]' Sent: Thursday, September 20, 2001 10:50 PM Subject: Struts JBoss / Tomcat and From I have deployed my app using JBoss/Tomcat. I recently started using the ActionForm as value objects in my EJB's. JBoss now needs struts.jar in the class path, so it can find ActionForm, so I put sturts.jar in JBOSS_HOME/lib/ext. This works fine put it kills struts. Struts now throws a ClassNotFoundException for my ActionForm's. If I remove the stuts.jar from the JBoss class path JBoss dies and struts works again. Anyone got some advice for me here? Thanks in advance. Andrew This is the exception that get thrown by Tomcat Error: 500 Location: /jazzman/contact/details/address.jsp Internal Servlet Error: javax.servlet.ServletException: Exception creating bean of class com.jazzman.contact.details.view.AddressValue: java.lang.ClassNotFoundException: com.jazzman.contact.details.view.AddressValue at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at contact.details._0002fcontact_0002fdetails_0002faddress_0002ejspaddress_jsp_0._jspService(_0002fcontact_0002fdetails_0002faddress_0002ejspaddress_jsp_0.java:409) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Unknown Source) Root cause: javax.servlet.jsp.JspException: Exception creating bean of class com.jazzman.contact.details.view.AddressValue: java.lang.ClassNotFoundException: com.jazzman.contact.details.view.AddressValue at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:527) at contact.details._0002fcontact_0002fdetails_0002faddress_0002ejspaddress_jsp_0._jspService(_0002fcontact_0002fdetails_0002faddress_0002ejspaddress_jsp_0.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
Re: Struts + JBoss
"ecn11" <[EMAIL PROTECTED]> wrote: > Ok, I tried this but the result was the same... > > javax.servlet.jsp.JspException: Exception creating bean of class > foo.bar.myclass: java.lang.ClassNotFoundException: foo.bar.myclass > at > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568) > > I copied the .war-file into the jboss/deploy folder. After that my classes > have been copied to > jboss/tmp/deploy/Default/war-ic.war/web1004/WEB-INF/classes - but Struts > doesn't find them anyway... Is your struts.jar in your war's WEB-INF/lib? And nowhere else in your classpath? -- gR
Re: Struts + JBoss
> Hi. > > Has anyone of you managed to make Struts and JBoss working together? > > This is my current situation: I use JBoss-2.2.2 + Tomcat-3.2.2 (by > run_with_tomcat.bat - so they are running in one VM) and Struts 1.0. Hi, I use struts in jboss+tomcat. I use 2 configurations: 1st) Separate ejb and war. There are no problems, since I have no EAR file. 2nd) An EAR file. This is a bit tricky: a) you have to let struts.jar in the root of the EAR. Do not place it under war/WEB-INF/lib. Do the same with all jars which would go into WEB-INF/lib b) in war's META-INF/manifest.mf you need following lines for needed libraries: Class-Path: ./struts.jar Class-Path: ./somethingelse.jar So far so good. ActionServlet will be found, your Actions as well But I've had problems with Jasper. It was not able to compile my JSP pages, since it was not loading the jars from manifest.mf The solution was to use jasper at deployment time and let it to compile all jsp pages into java, compile those java sources into classes, jar them and put the jsp.jar into my EAR along with the modified web.xml Even with ant it is not so easy and the deployment takes a lot of time. So I use the 1st approach during development. -- gR
Re: Struts + JBoss
i've had trouble with jboss 2.2.2/tomcat 3.2.2...for this reason i dropped back to the 2.2.1/3.2.1 version and everything worked fine... in my experimentation, it seems to be a classloader issue...any classes you want to access from another class must be either on the same level, or higher in your classpath...if a .jar file that is located in the jboss/lib/ext directory is accessing a struts class or action class that is in your WEB-INF/lib/this.jar file, then it will give you this message... it's been a real pain :-) Jon Brisbin Lamar, MO - Original Message - From: ecn11 <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 24, 2001 9:46 AM Subject: Struts + JBoss > Hi. > > Has anyone of you managed to make Struts and JBoss working together? > > This is my current situation: I use JBoss-2.2.2 + Tomcat-3.2.2 (by > run_with_tomcat.bat - so they are running in one VM) and Struts 1.0. > > > The problem is briefly: When I deploy a .ear-archive that contains a > .war-archive with the classes Struts should use (e.g. the form and > action-classes), it throws an exception: > > javax.servlet.jsp.JspException: Exception creating bean of class > /DetailsForm: java.lang.ClassNotFoundException: /DetailsForm > at > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568) > > These are the lines of the Struts source-code where the exception is thrown: >try { > Class clazz = Class.forName(type); > bean = clazz.newInstance(); > if (bean instanceof ActionForm) >((ActionForm) bean).setServlet(servlet); >} catch (Exception e) { > throw new JspException > (messages.getMessage("formTag.create", type, > e.toString())); >} > > > The reason I blame Struts for that is the following: > When I try to instanciate DetailsForm manually from the .jsp-page there is > absolutely no problem. But Struts seems to use another classpath. > > > Using the same .jsp-pages/classes/struts-config.xml/web.xml with Tomcat and > J2EE-reference implementation works fine. - So I can say for sure that > struts-config.xml and web.xml okay. > > > This is the way the .ear-File looks like: > > .ear >META-INF\ > sun-j2ee-ri.xml, Manifest.mf, application.xml >war-ic.war > lots of stuff > WEB-INF\ > web.xml, struts-*.tld, struts-config.xml, global.properties > classes\ > Resources.properties > all my classes >ejb-jar-ic.jar > the beans (they work fine) > > > I once tried to add the .class-files manually to the classpath (not the ones > that are created by jboss, when I deploy the .ear, but the .class-files, > that I built before building the .ear-file). > > After that Struts was able to find the classes, but my classpath was > completely messed up. The global.properties for example (which is accessible > via InputStream is = getClass().getResourceAsStream("/global.properties") > normally) was not found any more. > > Thanks in advance > Dominic
Re: [JBoss-user] RE: Struts & Jboss?
"Assenza, Chris" <[EMAIL PROTECTED]> writes: > Okay...I'll rephrase that last one I sent. :) You won't be able to deploy > the EAR the way you want without properly using the Application Deployment > Descriptor (application.xml). Have you tried doing this? > > Here's a sample one I use for JBoss 2.0 w/ Tomcat 3.2b7, goes in META-INF of > the EAR's contents. > > > Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd";> > > > App Name > > > Warfile.war > /usermanager > > > > > EJBJar.jar > > Yes, my application.xml should be ok. It looks like this: usermanager usermanager.war /usermanager usermanager.jar And with the duplicated jars (usermanager-client.jar - interfaces) and (struts.jar) (in ear's root and war/WEB-INF/lib) it works. But I don't like duplicating those jars, only to support jasper's jsp compiling. (I will haev to look for jasper's docu, perhaps I can write the ant task) -- gR
RE: [JBoss-user] RE: Struts & Jboss?
Okay...I'll rephrase that last one I sent. :) You won't be able to deploy the EAR the way you want without properly using the Application Deployment Descriptor (application.xml). Have you tried doing this? Here's a sample one I use for JBoss 2.0 w/ Tomcat 3.2b7, goes in META-INF of the EAR's contents. http://java.sun.com/j2ee/dtds/application_1_2.dtd";> App Name Warfile.war /usermanager EJBJar.jar Chris -Original Message- From: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 3:03 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [JBoss-user] RE: Struts & Jboss? So I've tested some things: 1st I removed the struts.jar and my client.jar from app.jar/WEB-INF/lib and placed them directly to ear. I've changed the manifest.mf to include those two jars: My apps name is usermanager manifest.mf of usermanager.war: Class-Path: ./usermanager-client.jar Class-Path: ./struts.jar these two files are in the root of usermanager.ear struts.jar is nowhere else in any war, jar or lib or lib/ext or classpath. Now the tomcat CAN find ActionServlet and *.do will be handled by ActionServlet. Action servlet CAN find all my Action and ActionForm classes. Lo long so good. Unfortunately, tomcat's JSP compiler (jasper) cannot compile my JSP files. Jasper has no access to my either struts.jar or to usermanager-client.jar. The only solution for this, is to include the files struts.jar and usermanager-client.jar both in the EARs root AND in war/WEB-APPS/lib. I really don't like this workaround. One possible solution would be, to precompile all JSPs and include alredy compiled servlets in my EAR. This would be a much better solution anyway. My question actually changes to this: Does anybody know, how to compile JSPs to class or java files in ant? And how to include them to web.xml? -- gR
RE: [JBoss-user] RE: Struts & Jboss?
What does your application.xml look like? Chris -Original Message- From: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 12:39 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [JBoss-user] RE: Struts & Jboss? "Ravindran Ramaiah" <[EMAIL PROTECTED]> wrote: > Hi, > I have tried JBoss+HP-Bluestone UBS 7.2 combination without any > problems. > Deployed EJB jar on JBoss and Application.war with HP-Bluestone UBS. > > This combination works fine. > > Thanks, > Ravi Yes, I have no problem when I deploy the ejb jar and the war separately. The problems start only when I pack them togerther in an ear file and then deploy only that one. -- gR