What could be wrong in above? Is there anything getting wrong while compiling GetUserAction.
Please Help.
Thanks in Advance.
Jay Shukla
Dawn Charangat
Ranch Hand
Joined: Apr 26, 2007
Posts: 249
posted
0
Can you check if there are more than one xwork.jar in the same path ? or, more than one org.opensymphony.xpath.* entries available in the same classpath ???
Jay Shukla
Ranch Hand
Joined: Jun 08, 2008
Posts: 214
posted
0
Hi dawn,
Thanks for Reply.
I have manually set the classpath and moreover i have attached exact screen shot of output of echo %CLASSPATH% commnad.
Hope this may help you.
Jay Shukla
Ranch Hand
Joined: Jun 08, 2008
Posts: 214
posted
0
Attachment ......
Karthik Shiraly
Ranch Hand
Joined: Apr 04, 2009
Posts: 364
posted
0
Hi Jay,
It's a compilation problem, so the jars should be added to your Eclipse project. Adding jars to CLASSPATH will not help in compilation, because while compiling, Eclipse overrides the classpath with only jars that have been added to the project.
Cheers
karthik
Jay Shukla
Ranch Hand
Joined: Jun 08, 2008
Posts: 214
posted
0
Hi Karthik,
Jars are already present in the my eclipse folder in lib folder (D:\Eclipse_wrksp\Struts2Application\WebContent\WEB-INF\lib).
Do you want to me to add 'Add As External Jars' in the Eclipse porject build path??
They need to be added to the build path in the project properties.
Please, please don't attach screenshots for textual information: cut and paste exists for a reason.
Karthik Shiraly
Ranch Hand
Joined: Apr 04, 2009
Posts: 364
posted
0
Hi Jay,
Ok I got the problem now after looking into xwork. The correct package name is com.opensymphony.xwork2.Action, not org.opensymphony.xwork2.Action.
In fact, Eclipse IDE itself would have flagged this problem by highlighting the line in red.
And yes, you also have add both jars to the build path. Since it's already available in one of your project folders (./lib), you can use the "Add jars" button instead of "Add external jars".