OK, I misread your initial message, hectic morning today  ;}

Check your CLASSPATH definition against what is defined to Tomcat (I'm
unfamiliar with Tomcat, we use WebSphere AS)


Patrick M. Mason
Senior Open Systems Engineer
SysProg, Inc.

Solutions Team
IT Branch
DISA Defense Enterprise Computing Center,  St. Louis, MO
Commercial: (314) 263-6687   DSN: 693-6687
[EMAIL PROTECTED]



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 8:43 AM
To: [EMAIL PROTECTED]
Subject: Re: IBM's Dev Kit for Linux 31-bit zSeries (S/390) version
1.3.1. .. where's javax.*?


I can run java and javac, and they compile fine as long as they don't
need to import anything from javax.*
JAVA_HOME is correct and $JAVA_HOME/bin is in my path.  The only problem
is compiling or running anything with import javax with java or javac.
 Tomcat can somehow find the javax classes.

~ Daniel

[EMAIL PROTECTED] wrote:

>We don't have a L/390 environment but on our OS/390 environment we have no
>problems using javac & java.
>They are located in the $JAVA_HOME/bin directory
>
>Do you have JAVA_HOME defined correctly in your profile?
>Do you have $JAVA_HOME/bin defined to your PATH in your profile?
>
>Could be why Tomcat knows where to look yet your session doesn't
>
>
>Patrick M. Mason
>Senior Open Systems Engineer
>SysProg, Inc.
>
>Solutions Team
>IT Branch
>DISA Defense Enterprise Computing Center,  St. Louis, MO
>Commercial: (314) 263-6687   DSN: 693-6687
>[EMAIL PROTECTED]
>
>
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, June 13, 2002 6:48 AM
>To: [EMAIL PROTECTED]
>Subject: Re: IBM's Dev Kit for Linux 31-bit zSeries (S/390) version
>1.3.1... where's javax.*?
>
>
>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/
j
>re/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
>>

Reply via email to