Fórum

Java class not found exception

R Naresh Reddy, modificado 11 Anos atrás.

Java class not found exception

Junior Member Postagens: 60 Data de Entrada: 28/02/13 Postagens Recentes
hi


can any say why it is getting like this in my log

java.lang.ClassNotFoundException:
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:525)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:507)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:124)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1136)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1585)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)


Thanks for any help
thumbnail
Gregory Amerson, modificado 11 Anos atrás.

RE: Java class not found exception

Liferay Legend Postagens: 1123 Data de Entrada: 16/02/10 Postagens Recentes
Can you post the contents of your project source and your deployed ../tomcat/webapps/<portlet-name> folder in two separate zip files?
R Naresh Reddy, modificado 11 Anos atrás.

RE: Java class not found exception

Junior Member Postagens: 60 Data de Entrada: 28/02/13 Postagens Recentes
Gregory Amerson:
Can you post the contents of your project source and your deployed ../tomcat/webapps/<portlet-name> folder in two separate zip files?


HI GREGORY


i am attaching here please go through attachment
thumbnail
Gregory Amerson, modificado 10 Anos atrás.

RE: Java class not found exception

Liferay Legend Postagens: 1123 Data de Entrada: 16/02/10 Postagens Recentes
R Naresh Reddy:
Gregory Amerson:
Can you post the contents of your project source and your deployed ../tomcat/webapps/<portlet-name> folder in two separate zip files?


HI GREGORY


i am attaching here please go through attachment



In your web.xml you have this section:

<servlet>
    <servlet-name>view-servlet</servlet-name>
    <servlet-class></servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>


Notice the <servlet-class> element that is empty. You should be able to simply remove that servlet declaration as it shouldn't be needed.