File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes ERROR convention.PackageBasedActionConfigBuilder - Unable to load class 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 "ERROR convention.PackageBasedActionConfigBuilder - Unable to load class" Watch "ERROR convention.PackageBasedActionConfigBuilder - Unable to load class" New topic
Author

ERROR convention.PackageBasedActionConfigBuilder - Unable to load class

Nandish Sri
Ranch Hand

Joined: Jan 19, 2004
Posts: 45
I am getting the below error in server. I hosted this application in server. There getting below error, but in local it is working fine.
And in the error, its logging something strange which is not related to my application at all..
Is it related to conflicting with some other application on the server with same namespace ???
I am trying to solve this issue since 2 days.. Anyone please help me.....

struts.xml

Here is the error:


Web.xml


Libraries:


Nandish
Nandish Sri
Ranch Hand

Joined: Jan 19, 2004
Posts: 45
Please see struts.xml in above post. I am using customized interceptor stack. Is there any problem with that usage ? I am confused. The same application is working perfectly in my local system. I am using same tomcat version 6.0 as in server, but error only in server. This is strange.... I am blank on this.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If those com.careerChapter classes aren't yours, you'll probably have to turn off some of the convention plugin's package scanning--although they must be *somewhere*, otherwise they wouldn't be being scanned. Are you intending to use the convention plugin?

It's also possible that it's a different app deployed on the same server and the messages aren't related in any way to your application.

Why do you define a Struts 1 taglib in your web.xml?
Nandish Sri
Ranch Hand

Joined: Jan 19, 2004
Posts: 45
Thanks David for your response.
I am not sure, why I am using convention plugin. Shall I remove struts2-convention-plugin-2.1.6.jar from my application or is it referring somewhere internally ?
And in web.xml, struts1 you mean, referring of logic tags ? I will remove struts.jar also, not sure why I am using this older and newer version both !
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If you're not using the convention plugin you should remove it.

Struts 2 plugins can alter behavior, sometimes in unexpected ways: if you *intend* to use it, that's fine, but it's most likely what's causing the problem, as I mentioned previously.
Nandish Sri
Ranch Hand

Joined: Jan 19, 2004
Posts: 45
Thanks David. Your solution resolved my issue. I removed convention plugin jar file. Thanks a lot.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Glad you figured it out :)
 
 
subject: ERROR convention.PackageBasedActionConfigBuilder - Unable to load class
 
Similar Threads
The jar synchronization issue seems to be out of hand.
Project not running in jboss -- solved
Apache POI, FormFile, and XSSF
Axis 1.4 Deployment on Websphere5.1 issue
Error in Message Resource Properties.