Hi,

I am having following configuration 

Java:JDK-11
Tomcat: 8.5.31
OS: RedHat
I am getting following error:

Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
com.xyz.PAPFacade
        at com.abc.NSFAdminUtil.getPAPFacade(NSFAdminUtil.java:93)
        at com.abc.NSFAdminUtil.getPAPFacade(NSFAdminUtil.java:86)
        at com.abc.NSFAdminServiceFactory.<init>(NSFAdminServiceFactory.java:85)
        at com.abc. 
NSFAdminServiceFactory.getInstance(NSFAdminServiceFactory.java:107)
        at com.lmn.RemoteStorageClient.<init>(RemoteStorageClient.java:43)
        at 
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
        at 
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at 
java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
        ... 103 more

05-Jul-2018 03:32:30.218 SEVERE [localhost-startStop-1] 
org.apache.catalina.core.StandardContext.startInternal One or more listeners 
failed to start. Full details will be found in the appropriate container log 
file
05-Jul-2018 03:32:30.219 SEVERE [localhost-startStop-1] 
org.apache.catalina.core.StandardContext.startInternal Context [/pxgrid] 
startup failed due to previous errors
05-Jul-2018 03:32:30.219 INFO [localhost-startStop-1] 
org.apache.catalina.core.ApplicationContext.log Closing Spring root 
WebApplicationContext
05-Jul-2018 03:32:30.222 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web 
application directory 
[/opt/CSCOcpm/appsrv/apache-tomcat-8.5.31/pxgridwebapp/pxgrid] has finished in 
[7,471] ms
05-Jul-2018 03:32:30.223 INFO [main] org.apache.coyote.AbstractProtocol.start 
Starting ProtocolHandler ["https-jsse-nio2-8910"]
05-Jul-2018 03:32:30.224 INFO [main] org.apache.catalina.startup.Catalina.start 
Server startup in 51976 ms
Daemon started successfully
java_start done
Waiting for a signal to be delivered
create_tmp_file: /tmp/25518.jsvc_up

----------------------------------------------------------------------------------------------------------------------------------
It stucking at this point.
When I am checking it status , it is showing “Initialization” state (remain at 
this state).

Description about classes:
PAPFacade class is present in some xyz.jar , NSFAdminUtil is in some abc jar.
>From log we can say,“NSFAdminUtil.class” calling method of PAPFacade.class , 
>as it is giving error “NoClassDefFoundError” indicating that  
>NSFAdminUtil.class not able to find the path of class PAPFacade.class



For resolving this I performed following thing:

1. In META-INF/MANIFEST.MF of abc.jar (jar where NSFAdminUtil.class is present) 
added 
“Class-Path: xyz.jar” (xyz.jar where PAPFacade.class is present)
2. In setenv.sh I put following line
 export CLASSPATH=/opt/apache-tomcat/apache-tomcat-8.5.31/lib/* (even check for 
*.jar also)

Both these steps didn’t help me to resolve .
Pls help me to figure out this problem.

Thanks in advance.

Regards
Prateek

Reply via email to