Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] SSHTelnet MP

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] SSHTelnet MP


Chronological Thread 
  • From: Stijn Melis <>
  • To: Rodesch Christian <>
  • Cc:
  • Subject: Re: [perfsonar-user] SSHTelnet MP
  • Date: Wed, 28 May 2008 14:59:00 +0200

Hi Christian,

Rodesch Christian wrote:
Hi,

I already installed the SSHTelnet MP from perfsonar 2.2 and in
combination with the Looking Glass client, it worked quite well.
Now, I installed the new Service of perfSONAR 3.0 and I only got a lot
of problems:

1) The Web IF is not working, if I open the URL, the main page appears
like it should,but if I click on any link like Basic Setup, I get this
message:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Error instantiating servlet class
perfSONARWebAdmin.admin.wizard.Wizard

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)

root cause

java.lang.NullPointerException

org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1967)

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1759)

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
java.lang.Class.getConstructor0(Class.java:2671)
java.lang.Class.newInstance0(Class.java:321)
java.lang.Class.newInstance(Class.java:303)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.16 logs.
Apache Tomcat/6.0.16


The log shows me the following:

2008-05-27 16:01:31,692 DEBUG - In AxisServletBase init
2008-05-27 16:01:31,705 DEBUG - Enter: getEngine()
2008-05-27 16:01:31,717 DEBUG -
getBundle(org.apache.axis,org.apache.axis.i18n,resource,null,...)
2008-05-27 16:01:31,726 DEBUG - loadBundle: Ignoring
MissingResourceException: Can't find bundle for base name
org.apache.axis.resource, locale en_US
2008-05-27 16:01:31,726 DEBUG - Created org.apache.axis.i18n.resource,
linked to parent null
2008-05-27 16:01:31,727 DEBUG -
getBundle(org.apache.axis,org.apache.axis.utils,resource,null,...)
2008-05-27 16:01:31,729 DEBUG - loadBundle: Ignoring
MissingResourceException: Can't find bundle for base name
org.apache.axis.utils.resource, locale en_US
2008-05-27 16:01:31,729 DEBUG - loadBundle: Ignoring
MissingResourceException: Can't find bundle for base name
org.apache.axis.resource, locale en_US
2008-05-27 16:01:31,729 DEBUG - Root package not found, cross link to
org.apache.axis.i18n.resource
2008-05-27 16:01:31,729 DEBUG - Root package not found, cross link to
org.apache.axis.i18n.resource
2008-05-27 16:01:31,729 DEBUG -
org.apache.axis.i18n.resource::handleGetObject(engineFactory)
2008-05-27 16:01:31,729 DEBUG - Got EngineFactory:
org.apache.axis.configuration.EngineConfigurationFactoryServlet
2008-05-27 16:01:31,732 DEBUG -
org.apache.axis.i18n.resource::handleGetObject(readOnlyConfigFile)
2008-05-27 16:01:31,732 INFO - Configuration file read-only so engine
configuration changes will not be saved.
2008-05-27 16:01:31,736 DEBUG - Enter: DefaultAxisServerFactory::getServer
2008-05-27 16:01:31,736 DEBUG - Enter:
DefaultAxisServerFactory::getEngineConfiguration
2008-05-27 16:01:31,736 DEBUG - Exit:
DefaultAxisServerFactory::getEngineConfiguration
2008-05-27 16:01:31,738 DEBUG - Enter: AxisEngine::init
2008-05-27 16:01:32,076 DEBUG -
org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
2008-05-27 16:01:32,076 DEBUG - Attachment support is enabled? true
2008-05-27 16:01:32,092 DEBUG - Enter/Exit:
JAFDataHandlerDeserializerFactory(class java.lang.String,
{http://xml.apache.org/xml-soap}PlainText)
2008-05-27 16:01:32,094 DEBUG -
org.apache.axis.i18n.resource::handleGetObject(oddDigits00)
2008-05-27 16:01:32,094 DEBUG -
org.apache.axis.i18n.resource::handleGetObject(badChars01)
2008-05-27 16:01:32,136 DEBUG - Enter/Exit:
JAFDataHandlerDeserializerFactory(class java.awt.Image,
{http://xml.apache.org/xml-soap}Image)
2008-05-27 16:01:32,137 DEBUG - Enter/Exit:
JAFDataHandlerDeserializerFactory(class
javax.mail.internet.MimeMultipart,
{http://xml.apache.org/xml-soap}Multipart)
2008-05-27 16:01:32,138 DEBUG - Enter/Exit:
JAFDataHandlerDeserializerFactory(interface javax.xml.transform.Source,
{http://xml.apache.org/xml-soap}Source)
2008-05-27 16:01:32,139 DEBUG - Enter/Exit:
JAFDataHandlerDeserializerFactory(class
org.apache.axis.attachments.OctetStream,
{http://xml.apache.org/xml-soap}octet-stream)
2008-05-27 16:01:32,139 DEBUG - Enter/Exit:
JAFDataHandlerDeserializerFactory()
2008-05-27 16:01:32,196 DEBUG - Exit: AxisEngine::init
2008-05-27 16:01:32,196 DEBUG - Exit: DefaultAxisServerFactory::getServer
2008-05-27 16:01:32,196 DEBUG - Exit: getEngine()

Honestly, I have no idea what is causing this. Did you use the war, rpm or deb file? Which log file are you talking about, because there are several?
Maybe Michalis can give some more information about this too, since he is responsible for the WebAdmin.

2) Therefore I configured everything by hand, the service.properties and
the xml file. I also uploaded the file to the eXist database. When I
then open the Looking Glass it depends on my luck whether I get the
configured router and the commands,or if I get a popup with an error
message. So the fact that once or twice I got the list with the commands
I wrote in the xml file, shows that the xml is ok and correctly uploaded
to the eXist database.

The password for the devices should be encrypted in Base64. You can use the SSHTELNET MP configuration tool for this. You can find it here:

http://wiki.perfsonar.net/jra1-wiki/index.php/SSH-Telnet-download#Configuration_script_to_be_used_together_with_version_1.3

If you entered the password in plain text in the metadata configuration file, it will not work. You will however still see the devices and commands like you do now, but they won't work.

About the Looking Glass: I am aware that it is not working properly as it should and that is gives too much errors when trying to do something. I am busy integrating the Looking Glass into psUI, so you will have a new version to use very soon.


3) As I used the SSHTelnet service of perfsonar bundle 2.2, I miss the
option to chose whether to connect by Telnet or SSH in the xml meta data
file. Is there an xml element for this?

This is still there. If you use the configuration tool I mentioned above, you will still have the same options as in 2.2 (it's actually the same script, but on a standalone basis). However, if you want to change it manually, you have to change the class_name element. For example, for a Cisco Telnet connection you have to enter:

org.perfsonar.service.measurementPoint.lookingGlassType.engine.adapters.CiscoAdapter

other possibilities are:

org.<...>.adapters.CiscoSshAdapter -> Cisco/SSH
org.<...>.adapters.CiscoKeyAdapter -> Cisco/SSH with a key
org.<...>.adapters.JuniperAdapter -> Juniper/Telnet
org.<...>.adapters.JuniperSshAdapter -> Juniper/SSH
org.<...>.adapters.JuniperKeyAdapter -> Juniper/SSH with a key

Please not however that if you change the type of connection, some other parameters will get a different meaning. For example, if you use a Key, the password parameter has no meaning, and should be replaced by a keyUrl parameter, which specifies the path to the key, and you could also add a passphrase parameter, which indicates a possible password for your key.

So, to make it short, I'd advise you to use the configuration tool, since this will solve the problem with the Base64 encoding of the password, as well as ask you all the right questions according to the chosen type of connection/device.


I hope I'm not bothering you too much, but I really like the concept of
perfSONAR and I'm trying my best to get the services to work.

Regards,

Christian

Regards,

Stijn



Archive powered by MHonArc 2.6.16.

Top of Page