Hi guys,

Struts and orion don't seem to be good friends. After looking in the 
archive I found some links telling me
how to patch struts so it works with orion. The solution I use is simply 
unpack the jar file in the classes
directory (during the build fase).
However that doesn't solve the problem you get as soon as you define 
your own actions and forms. As soon
as you want to access one of your actions/forms, you get the following 
error in your application.log:

java.lang.ClassNotFoundException: 
com.fredhopper.admin.control.web.action.ItemsAction
       at com.evermind[Orion/1.4.8 (build 10374)]._ed.findClass(Unknown 
Source)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:120)
       at 
org.apache.struts.action.ActionServlet.processActionCreate(ActionServlet.java:1470)
       at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1421)
       at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:463)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
       at com.evermind[Orion/1.4.8 (build 10374)]._iib._vfd(Unknown Source)
       at com.evermind[Orion/1.4.8 (build 10374)]._iib._qjc(Unknown Source)
       at com.evermind[Orion/1.4.8 (build 10374)]._kj._qbc(Unknown Source)
       at com.evermind[Orion/1.4.8 (build 10374)]._kj._oa(Unknown Source)
       at com.evermind[Orion/1.4.8 (build 10374)]._jw.run(Unknown Source)

The classloader can't find any of your defined actions/forms. However 
Orion/1.3.8 didn't have this
problem (and J2EE doesn't have it as well).
I created a small test application which can be downloaded from our website:

www.fredhopper.com/struts-example.tgz

To get it running:
1) unpack it
2) set the J2EE_HOME variable
3) go to the struts-test/src directory
3) run ./build.sh

This creates a test.ear which you can deploy on orion.
Does anyone have similar problems with struts and does somebody have a 
solution?
If there are any questions regarding the struts-example please don't 
hesitate to ask.


Mark

--o-o----------
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone:  +31 20 3206203 Mobile: +31 620 209 817
fax:    +31 20 8848747
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]


Reply via email to