This is very confusing.

Using Erik's handy hack, I have managed to get Struts working on my home PC,
Windows 2000, with Weblogic 5.1 SP6 and JDK 1.2.2.

Now if I take the exact same binary distribution of Struts, and identical
versions of the xerces.jar/xalan.jar files, and a copy of the
WebAppStartup.class (which resides in /weblogic/classes) and attempt to
deploy at work, on a Solaris machine, with Weblogic 5.1 SP6 and JDK 1.2.2,
it doesn't work, and I get the dreaded "ClassCastException".

I have attached files which show the configuration of the working version,
and it's output to the weblogic.log file, and the configuration of the
non-working version, and it's output to the log file.  The configurations
files are output from the Weblogic console, so may be a little strange to
read, but they have all the classpath info.

If anyone has experience getting this stuff working on a Solaris box, would
you please take a look and see what the heck could be the problem.


Thanks in advance for looking.

Lori Olson

notworking.log

  classDisplayName=Console subsystem
  instanceDisplayName=Console subsystem
  properties:
    JVM vendor  value=Sun Microsystems Inc.
    JVM version  value=1.2.2
    Size of current heap (K)  value=16777
    Amount of heap used (%)  value=26
    JIT compiler  value=sunwjit
    JVM classpath  value=
        A
        /usr/java/lib/classes.zip
        ./classes/boot
        ./classes
        ./lib/weblogicaux.jar
  classDisplayName=WebLogic Server
  instanceDisplayName=dev4
  properties:
    Host name  value=pembina.digitaloilfield.com
    IP address  value=192.168.120.30
    Listen port  value=7001
    SSL listen port  value=7002
    Admin listen port  value=0 (not listening)
    Server version  value=5.1.0 Service Pack 6 09/20/2000 21:03:19 #84511
    Date/time started  value=Tue Oct 24 08:48:54 MDT 2000
    Up time  value=0d 00:02:41
    Maximum Java heap (K)  value=67108
    Java heap used (%)  value=3
    Execute queue length  value=0
    Execute queue throughput  value=2
    Workspaces  value=1
    Logins enabled  value=true
    WebLogic home  value=/opt/dof/weblogic510
    Cluster name  value=
    Cluster address  value=
    Cluster weight  value=100
    JVM vendor  value=Sun Microsystems Inc.
    JVM version  value=1.2.2
    JIT compiler  value=none
    JVM classpath  value=
        A
        /opt/dof/weblogic/dev4/serverclasses
        ./lib/weblogic510sp6boot.jar
        ./classes/boot
        /opt/dof/weblogic/lib/xerces.jar
        /opt/dof/weblogic/lib/xalan.jar
    Server classpath  value=
        A
        ./lib/weblogic510sp6.jar
        ./license
        ./classes
        ./lib/weblogicaux.jar
        ./dev4/serverclasses

working.log

CLASSPATH Prefix    
C:\weblogic\myserver\serverclasses;c:\weblogic\lib\weblogic510sp6boot.jar;c:\tools\xalan\xerces.jar;c:\tools\xalan\xalan.jar
CLASSPATH           
C:\weblogic\myserver\serverclasses;c:\weblogic\lib\weblogic510sp6boot.jar;c:\tools\xalan\xerces.jar;c:\tools\xalan\xalan.jar;c:\tools\jdk1.2
.2\lib\tools.jar;c:\tools\jdk1.2.2\jre\lib\rt.jar;c:\tools\jdk1.2.2\jre\lib\i18n.jar;C:\weblogic\license;C:\weblogic\classes\boot;C:\weblogic\classes;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\eval\cloudscape\lib\cloudscape.jar
JAVA_HOME           c:\tools\jdk1.2.2
WEBLOGIC_LICENSEDIR C:\weblogic\license
WEBLOGIC_HOME       C:\weblogic
system properties:
                    java.security.manager
                    java.security.policy==C:\weblogic\weblogic.policy
                    weblogic.system.home=C:\weblogic
                    java.compiler=symcjit
                    
weblogic.class.path=c:\weblogic\lib\weblogic510sp6.jar;C:\weblogic\license;C:\weblogic\classes;C:\weblogic\myserver\serverclasses;C:\weblogic\lib\weblogicaux.jar
INITIAL_HEAP        64 MB
MAX_HEAP            64 MB
SERVERCLASSPATH     
C:\weblogic\myserver\serverclasses;c:\weblogic\lib\weblogic510sp6boot.jar;c:\tools\xalan\xerces.jar;c:\tools\xalan\xalan.jar;c:\tools\jdk1.2.2\jre\lib\rt.jar;c:\tools\jdk1.2.2\jre\lib\i18n.jar;C:\weblogic\classes\boot;C:\weblogic\eval\cloudscape\lib\cloudscape.jar

Reply via email to