On Thu, 13 Jun 2002 [EMAIL PROTECTED] wrote: We are using the IBM JDK's. Also for tomcat (version 4). But we got no problems with it. It works fine. My feeling that there is something wrong with on of your paths (PATH, CLASSPATH,...)
Also, we installed it using the RPM. I don't know how you did it. Kind regards, Tim Verhoeven > So is nobody using IBM's JDK on s390? Are those with tomcat using > blackdown instead? > > The servlets work when called by tomcat, but fail when I try to execute > them directly with the java binary (/opt/IBMJava2-s390-131/bin/java) > because it can't find the javax classes. And I can't compile with javac > for the same reason. > > ~ Daniel > > [EMAIL PROTECTED] wrote: > > > I had downloaded IBM's Dev Kit for Linux 31-bit zSeries (S/390) version > > 1.3.1 from http://www6.software.ibm.com/dl/dklx130/dklx130-p > > > > HelloWorldExample.java:8: package javax.servlet does not exist > > import javax.servlet.*; > > ^ > > HelloWorldExample.java:9: package javax.servlet.http does not exist > > import javax.servlet.http.*; > > ^ > > > > In fact, it can't find anything from javax.*. README.SDK.HTML alludes > > to a javax, and I don't in this case meet any of the four conditions > > where a classpath is required. So I tried it without, and also am up to > > >CLASSPATH=.:/usr/share/java:/var/tomcat4/server/lib:/opt/IBMJava2-s390-131/jre/lib:/var/tomcat4/common/lib > > > > and still javac fails to compile anything requiring the javax class > > tree (including Tomcat's example servlets). > > > > Also, a java HelloWorldExample of tomcat's precompiled java bytecode > > (with the classpath listed above) gets an exception thrown > > Exception in thread "main" java.lang.NoClassDefFoundError: > > javax/servlet/http/HttpServlet > > > > Going through tomcat 4.0.3 runs the servlets (came precompiled) without > > error. > > Also, java and javac finds the java.* classes okay, just no the javax.* > > classes. Any ideas what I'm missing? > > ~ Daniel > > > > > > $ which java > > /opt/IBMJava2-s390-131/bin/java > > $ which javac > > /opt/IBMJava2-s390-131/bin/javac > > > > $ ls /usr/share/java > > ant-1.4.1.jar bsf.jar servlet-2.3-4.0.3.jar > > xalanservlet.jar > > ant.jar jakarta-regexp-1.2.jar servlet-2.3.jar > > xerces-1.4.4.jar > > antlr-2.7.1.jar jakarta-regexp.jar xalan-2.1.0.jar > > xerces.jar > > antlr.jar jaxp_parser.jar xalanj1compat.jar > > xercesSamples-1.4.4.jar > > ant-optional-1.4.1.jar junit-3.7.jar xalan.jar > > xercesSamples.jar > > ant-optional.jar junit.jar xalansamples.jar > > xsltc.jar > > $ ls /var/tomcat4/server/lib > > catalina.jar servlets-invoker.jar tomcat-ajp.jar > > jakarta-regexp-1.2.jar servlets-manager.jar tomcat-util.jar > > servlets-cgi.renametojar servlets-snoop.jar warp.jar > > servlets-common.jar servlets-ssi.renametojar > > servlets-default.jar servlets-webdav.jar > > $ ls /opt/IBMJava2-s390-131/jre/lib/*.jar > > /opt/IBMJava2-s390-131/jre/lib/i18n.jar > > /opt/IBMJava2-s390-131/jre/lib/rt.jar > -- =========================================================================== Tim Verhoeven Linux & Open Source Specialist GSM : 0496 / 693 453 + e-business solutions Email : [EMAIL PROTECTED] + consulting URL : www.sin.khk.be/~dj/ + Server consolidation ===========================================================================
