简体   繁体   中英

ClassNotFoundException while running web service with tomcat 7?

I am developing a webservice and got following error.

Servlet.service() for servlet [Jersey RESTful App] in context with path [/RestWebService] threw exception [org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: javax/ejb/CreateException] with root cause
java.lang.ClassNotFoundException: javax.ejb.CreateException

As i am dealing with oim api so i have also added the wlfullclient.jar in class path. /WEB-INF/lib folder .

After addling that jar also the exception is still there.

Download the JAR file from here j2ee-1.4.jar

Put it on your /WEB-INF/lib folder. Add CLASSPATH . Then restart server.

The class is located in j2ee-1.4.jar . please download and add it to your classpath.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM