Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

SNMP4j and JSP no TransportMapping?

 
Sean Michael Hayes
Ranch Hand
Posts: 54
Android
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 64837
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Looks to me like you simply forgot to add the jar file for SNMP4J to WEB-INF/lib.
 
Sean Michael Hayes
Ranch Hand
Posts: 54
Android
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 54
Android
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 64837
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
SeanMichael Hayes,
Your unrelated post was moved to a new topic. Please start new topics for new questions.
 
    Bookmark Topic Watch Topic
  • New Topic