This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60765
    
  65

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: 60765
    
  65

SeanMichael Hayes,
Your unrelated post was moved to a new topic. Please start new topics for new questions.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SNMP4j and JSP no TransportMapping?
 
Similar Threads
This connection has been closed ERROR!!
XML functionality not working on Tomcat 7.0.6
javax.servlet.ServletException: Name java: is not bound in this Context
test.jsp error HTTP 500
javax.servlet.jsp.*. compiler error