Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2007, 05:29 AM
Member
 
Join Date: Jun 2007
Posts: 92
Daniel is on a distinguished road
java.lang.NoClassDefFoundError Exception when I invoke to a class outside projectEJB
I am trying to invoke the isEmail method (String value) - static method- in the GenericValidator class, of project ApacheCommons (packet org.apache.com mons.validator). This I do it from the PersonalPropertyRegistration class that is in a package of the PprEJB project (therefore project EJB is called). This class is invoked from the PprWeb project and - as they can see in statck- this using Struts.

error:

Code:
[10/12/05 11:30:43:794 CDT] 1a84cdbb WebGroup E SRVE0026E: [Servlet Error]-[org/apache/commons /validator/GenericValidator]: java.lang.NoClassDefFoundError: org/apache/commons/validator/GenericValidator at ca.mb.gov.ppr.application.objects.PersonalPropertyRegistration.<init>(PersonalPropertyRegistration.java:147) at ca.mb.gov.ppr.htmlclient.lifecycle.registration.financing.SelectLegislationAction.executeAction(SelectLegislationAction.java:88) at ca.mb.gov.ppr.htmlclient.PprAction.execute(PprAction.java:109) at ca.mb.gov.env.htmlclient.struts.ActionDispatcher.execute(ActionDispatcher.java:79) at ca.mb.gov.ppr.htmlclient.TabActionDispatcher.execute(TabActionDispatcher.java:84) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:275) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at ca.mb.gov.env.htmlclient.struts.EnvStrutsActionServlet.doPost(EnvStrutsActionServlet.java:111) at ca.mb.gov.ppr.htmlclient.PprActionServlet.doPost(PprActionServlet.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1030) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:566) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:198) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:214) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182) at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334) at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:615) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:449) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Daniel
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-06-2007, 07:08 AM
Member
 
Join Date: Jun 2007
Posts: 95
Felissa is on a distinguished road
I've added to EAR project the commons-validator.jar and jakarta-oro-2.0.8.jar files, just doing drag and drop from Windows Explorer to EAR project.


The commons-validator.jar file I've download from Downloads - Validator

The jakarta-oro-2.0.8.jar file I've download from The Jakarta Site - ORO Downloads


Then I've index them in the EJB project, I execute the application.

Greetings
Felissa
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
java.lang.NoClassDefFoundError: com.ibm.ws.orb.GlobalORBFactory hawkeye Enterprise JavaBeans 1 06-16-2008 11:56 AM
java.lang.NoClassDefFoundError J_a_y New To Java 2 08-07-2007 12:51 PM
Exception in thread "main" java.lang.NoClassDefFoundError baltimore New To Java 1 08-06-2007 07:07 AM
java.lang.NoClassDefFoundError fred Advanced Java 3 08-01-2007 06:00 PM
Exception in thread "main" java.lang.NoClassDefFoundError carl New To Java 2 08-01-2007 06:26 AM


All times are GMT +3. The time now is 12:51 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org