> Hello,
> I'm using WebLogic 5.1 sp12 on Solaris and when i try and compile a
[quoted text clipped - 5 lines]
> However, I have verified that the file "cms/logic/Curriculum.class"
> exists and that "cms" is in the classpath.
You need the directory ABOVE cms to be in the classpath.
For example, say I have a package foo sitting in /home/kaeli/bar.
i.e.
/home/kaeli/bar/foo/doit.class
If I want to use that stuff, /home/kaeli/bar needs to be in the classpath,
not /home/kaeli/bar/foo.
> vendorB/cms/dir2/VendorClass2.class
>
> Is the fact that "cms" is referenced at a sub-directory throwing things
> off?
No.

Signature
--
~kaeli~
I love God. It's His fanclub that I can't stand.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
laredotornado@zipmail.com - 24 May 2005 18:08 GMT
Thanks for your reply. As it happens /home/kaeli/bar/ (or the
equivalent in my example) is in fact in the classpath and not
/home/kaeli/bar/foo. What other possible reasons are there for this
problem, however obscure those reasons may be?
- Dave
John C. Bollinger - 24 May 2005 19:59 GMT
> Thanks for your reply. As it happens /home/kaeli/bar/ (or the
> equivalent in my example) is in fact in the classpath and not
> /home/kaeli/bar/foo. What other possible reasons are there for this
> problem, however obscure those reasons may be?
If WebLogic can be trusted to be providing the correct error message
(i.e. for the rootmost cause) then it is a classpath-related error --
that's what it _means_ that the class cannot be found. Before you go
much further, however, you should be sure *which* classpath you're
talking about, as there may be more than one depending on how you
compile the JSP. It looks like you're letting the JSP engine
autocompile it, which should be fine. In that case you should have a
jar in the webapp's WEB-INF/lib directory, and in that jar you should
have an entry named exactly "cms/logic/Curriculum.class" that contains
the bytecode for class cms.logic.Curriculum.class. There may also be
other files in the same jar, of course.

Signature
John Bollinger
jobollin@indiana.edu
kaeli - 24 May 2005 20:56 GMT
> Thanks for your reply. As it happens /home/kaeli/bar/ (or the
> equivalent in my example) is in fact in the classpath and not
> /home/kaeli/bar/foo. What other possible reasons are there for this
> problem, however obscure those reasons may be?
The invoking code in the JSP and a stack trace would help.
Some random thoughts...
Whose classpath? Yours, or the web server? It has to be the server's
(weblogic's) classpath, not the normal environment classpath.
Did you check case-sensitivity? Caller and class and directory must all match
case.
Unlikely, but see if you can tell what exactly is the process doing the
compile and check how (i.e. whence javac and javac -version, but for the
processes, not your login). Could be a JVM version issue where one process is
using one version and the other, another. For example, the compiler to take
the JSP into java uses /usr/bin/java1.2 and the one that compiles java to
class uses /usr/local/bin/java1.4.

Signature
--
~kaeli~
Going to church doesn't make you a Christian any more than
standing in a garage makes you a car.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
William Brogden - 25 May 2005 14:08 GMT
>> Hello,
>> I'm using WebLogic 5.1 sp12 on Solaris and when i try and compile a
[quoted text clipped - 5 lines]
>> However, I have verified that the file "cms/logic/Curriculum.class"
>> exists and that "cms" is in the classpath.
I don't know about Weblogic, but the Tomcat server pays no
attention to the environment CLASSPATH - perhaps Weblogic also
has its own rules for finding classes and ignores CLASSPATH settings.
Bill