*
The moose likes JSP and the fly likes SNMP4j and JSP no TransportMapping? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

SNMP4j and JSP no TransportMapping?

Sean Michael Hayes
Ranch Hand

Joined: Feb 08, 2012
Posts: 54

I'm upgrading a java program I created using SNMP4j that uses OIDs to get values from devices etc.

What I want to do now is make a jsp page that will create tables based on these devices we have polled the data from. I've done out the jsp page and was testing if it will create an amount tables equal to the number of devices were I got a strange error on running it.



Here is my jsp:



If no one knows SNMP4j thats fine, I was just wondering if the problem comes from the jsp side of things. Also, for technical reasons at the moment, Im running my Apache tomcat server on a router thats not connected to the internet (devices are connected by wire)

EDIT: I also "modified" the project from a java project to a java EE project by modifying the .project file, would that be an issue?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

Looks to me like you simply forgot to add the jar file for SNMP4J to WEB-INF/lib.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sean Michael Hayes
Ranch Hand

Joined: Feb 08, 2012
Posts: 54

Hang on, I think I've figured out whats wrong. I can pass normal values such as ints and strings from my java classes but what I wanted originally, an arraylist of objects, was what caused the error. Is there a special way of using Arraylists I'm not aware of.
Sean Michael Hayes
Ranch Hand

Joined: Feb 08, 2012
Posts: 54

Bear Bibeault wrote:Looks to me like you simply forgot to add the jar file for SNMP4J to WEB-INF/lib.


I checked though, the jar file with the missing class IS in my build path.

EDIT: Hang on, I mis-read what you wrote. You are absolutely correct, thank you.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

SeanMichael Hayes,
Your unrelated post was moved to a new topic. Please start new topics for new questions.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SNMP4j and JSP no TransportMapping?