This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes RAD/Struts 2 error/ Action class not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "RAD/Struts 2 error/ Action class not found" Watch "RAD/Struts 2 error/ Action class not found" New topic
Author

RAD/Struts 2 error/ Action class not found

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
re:RAD/Struts 2 error/ Action class not found

All the files look normal; that is, in proper folders, etc. Any idea on this error?

It was okay without struts 2. When I added struts 2 a while ago, this is the error.



I do have game.Login source file.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Originally posted by Jesus Angeles:
I do have game.Login source file.

Do you have game.Login class file?


Merrill
Consultant, Sima Solutions
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
Originally posted by Merrill Higginson:

Do you have game.Login class file?


It's been between this error, and this error below:



The class file game.Login appeared after I fixed the classpath/jars.

Now I have the error above.

I already downloaded the latest jdk/jre, installed it, and deleted old class files, set the project's jre, and still I have this error.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Originally posted by Jesus Angeles:
I already downloaded the latest jdk/jre, installed it.

That could very well be the problem. WebSphere 6.1 uses Java SDK 1.5, not 1.6. Make sure the compliance level is set to 5.0 on your project (properties->Java Compiler->JDK Compliance)
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
Yes, that came to me too and googled on how to change the runtime for the WAS 6.

It is not possible?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
No, it is not possible to change the SDK for WAS 6. As I mentioned earlier, you cannot run Struts 2 at all on WAS 6.0 because of this issue, but you can run Struts 2 on WAS 6.1.

It is possible to change the compliance level of your module to 5.0 when you compile it in RAD, and that's what you will need to do to get past this error.
[ April 02, 2008: Message edited by: Merrill Higginson ]
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
Thank you once again.

I put compliance to 1.5, and undid all 1.6 settings that I added.

It is working now.

Just out of curiousity, as a server expert, you feel WAS is a good competitor in the market in general? As I remember, it is one of the last to add support for ejb 3. Just wondering if I should add another server to my skillset.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
IBM operates in the business space of large, conservative companies who value stability and reliability over rapid adoption of the latest bleeding-edge technology. That's why they're slow, and most of their key customers follow the same pattern.

The market share for WebSphere is very high, so it's a good bet to know it. At the same time, it's also a good idea to get to know other, more progressive platforms just as a matter of keeping up with the latest technologies.

I'd suggest you download and try WAS Community Edition, which is basically the Apache Geronimo Server with a few IBM enhancements. Because it's open-source, it can adopt new technologies much faster than the commercial edition. There's also an Eclipse plugin available to aid in developing for it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: RAD/Struts 2 error/ Action class not found
 
Similar Threads
Loading from MessageResources.properties in Struts 2
how to find the action class?
Struts2 and Eclipse: No configuration found for the specified action in namespace: ''
Request not able to reach Action class in Struts2
[struts 1.x / 2.0] @ include