hi i have an application (called Web ) which is gving me the follwoing error when i try to compile a class ../bean2/src/examples/bean2/BasisUsernameBean.java:44: cannot access javax.servlet.http.HttpServ letRequestWrapper file javax/servlet/http/HttpServletRequestWrapper.class not found username = aPageBean.getWebRequest().getWebSession() ^ i've tried putting the two libraries required from the -classpath as part of the compilation command into the jdk/jre/lib directory but it still gives me the same error. any ideas as to how to get it to compile ? cheers chris ps - whats the easiest way (i cant remember the command) for viewing the classes in a jar file ?
It's hard to see because it got garbled during cut-and-paste, but the error message seems a little weird. javax.servlet.http.HttpServletRequestWrapper is a class that was added in the Servlets 2.3 API, so maybe you're mixing 2.3 and pre-2.3 components? What are "the two libraries?" What command line are you using to compile? Note that putting jar files into jdk/jre/lib accomplishes nothing; you're thinking of the jdk/jre/lib/ext directory.
ps - whats the easiest way (i cant remember the command) for viewing the classes in a jar file ?
thanks for jar command. the command is in a file and i'm calling it from the unix(sun solaris) prompt as its too long to type at the command line. ie page.java calls the following page.java file javac -classpath "/Basis+/basisv91/java2/java/webtopSecure/webapp/WEB-INF/lib/basisjdbc.jar:/Basis+/basisv91/java2/java/webtopSecure/webapp/WEB-INF/lib/basiswebtop.jar:/Basis+/basisv91/java2/jakarta-tomcat-4.0.4/lib/servlet.jar" -d /Basis+/basisv91/java2/java/webtopSecure/webapp/WEB-INF/classes /Basis+/basisv91/java2/java/webtopSecure/examples/bean2/src/examples/bean2/BasisUsernameBean.java the "two libraries" (they're packages aren't they ?)are the (application) web.jar and the webjdbc.jar which i've installed in jdk/jre/lib/ext but this give the same error. chris