10. Trouble Shooting Tips

 

 

 

Problem

Solution

 

 

 

The " java.lang.ClassNotFoundException" can occur  while starting the client.

This exception occurs when classes from the crimson.jar, jaxp.jar

and xalan.jar were not present in the classpath.

 

To overcome this exception, please follow the endorsed mechanism

 as per steps given below:

 

1. Copy xalan.jar, crimson.jar, and jaxp.jar (from earlier version of JDK say 1.4)

to a folder, for example \"endorsed_nms\" under <Web NMS Home>/classes folder.

 

2. In the <WebNMS Home>/setEnv.bat/sh file, add the below content.

-Djava.endorsed.dirs=%WEBNMSHOME%\\classes\\endorsed_nms

 

3. Now in the server startup script (<WebNMS Home>/bin/startnms.bat/sh) use the following

line for invoking the startup class.

%JAVA_HOME%\\bin\\java -Xmx200M -Djava.endorsed.dirs=%WEBNMSHOME%\\classes\\endorsed_nms

 

4. Now start the client and try connecting to the server.

 

 

Scenario 1 :

 

javax.xml.transform.TransformerException: java.io.FileNotFoundException: file:\C:\Program%20Files\AdventNet\WebNMS\NetMonitor\build\uninstall.xml

(The filename, directory name, or volume label syntax is incorrect)

at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler

(TransformerIdentityImpl.java:260)

at org.apache.xalan.transformer.TransformerIdentityImpl.transform

(TransformerIdentityImpl.java:291)

 

Scenario 2 :

 

java.net.MalformedURLException: unknown protocol: c

 

          These above two exceptions occurs when there is a space in the directory path where WebNMS is installed and trying to install a NAR file in WebNMS. This is a JDK bug which occurs in some scenarios where Xalan parsing of XML file is done.

 

 

 

 

 

 

 

 

Kindly install the WebNMS in a directory which does not have space characters in its path.

 

 

 



Copyright © 2009 ZOHO Corp. All Rights Reserved.