We are having a problem with JBoss / Tomcat that we hope someone can help us
with. We are developing an application that makes CORBA requests. This class
is running in the web container and is accessed by JSP / Servlets. When
running in a pure Tomcat environment everything runs fine. When we run JBoss
with embedded Tomcat it crashes when we try to do a
orb.string_to_object(ior). We have discovered that the conflict is with the
internal web server running in JBoss. If we disable this service (comment it
out in jboss.conf) everything works. In debugging the code we have found
that the codebase in the IOR.class is null when the JBoss internal web
server is not running (this is the scenerio that works). When the internal
web server is running the codebase in IOR.class = http://localhost:8083
which is the codebase for the internal webserver. This causes the code to
take a completely different logic branch and it ends up dying in
IOR.getCodebase() method. It dies when it tries to do components.length
because components is null.

Profile.TaggedComponent[] components = getProfile().getTaggedComponents(); 

for (int i=0; i < components.length; i++) {
    if (components[i].tag == Profile.TaggedComponent.TAG_JAVA_CODEBASE) {
    try {
        MarshalInputStream in = components[i].getComponentData(factory);
        codebase = in.read_string();
        }


Here is the stack trace:

Using configuration "tomcat"
[Console logging] Initialized
[Classpath extension] Initializing
[Classpath extension] Initialized
[File logging] Initializing
[File logging] Initialized
[Classpath extension] Initializing
[Classpath extension] Initialized
[Classpath extension] Initializing
[Classpath extension] Initialized
[Info] Java version: 1.3.0,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc.
[Info] System: Windows 2000 5.0,x86
[Classpath extension] Initializing
[Classpath extension] Initialized
[JDBC] Loaded JDBC-driver:org.hsql.jdbcDriver
[JDBC] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
[Webserver] Initializing
[Webserver] Initialized
[Hypersonic] Initializing
[Hypersonic] Initialized
[Naming] Initializing
[Naming] Naming started on port 1099
[Naming] Initialized
[Transaction manager] Initializing
[Transaction manager] Initialized
[JAAS Security Manager] Initializing
[JAAS Security Manager] Initialized
[Simple Realm Mapping] Initializing
[Simple Realm Mapping] Initialized
[Security manager] Initializing
[Security manager] Initialized
[InstantDB] Initializing
[InstantDB] Initialized
[DefaultDS] Initializing
[DefaultDS] Initialized
[Container factory] Initializing
[Container factory] Initialized
[Auto deploy] Watching C:\jboss_tomcat\jboss-2.0-FINAL\deploy
[Auto deploy] Initializing
[Auto deploy] Initialized
[JMX RMI Adaptor] Initializing
[JMX RMI Adaptor] Initialized
[JMX RMI Connector] Initializing
[JMX RMI Connector] Initialized
[Configuration] Initializing
[Configuration] Initialized
[J2EE Deployer] Initializing
[J2EE Deployer] Initialized
[EmbeddedTomcat] Initializing
[EmbeddedTomcat] Initialized
[SpyderMQ] Initializing
[SpyderMQ] Initialized
[EmbeddedTomcat] Starting
[EmbeddedTomcat] Testing if Tomcat is present....
[EmbeddedTomcat] OK
[EmbeddedTomcat] ContextManager: Adding context Ctx(  )
[EmbeddedTomcat] path="" :jsp: init
[EmbeddedTomcat] PoolTcpConnector: Starting HttpConnectionHandler on 8080
[EmbeddedTomcat] Started
[Simple Realm Mapping] Starting
[Simple Realm Mapping] Started
[Webserver] Starting
[Webserver] Codebase set to http://localhost:8083/
[Webserver] Started webserver on port 8083
[Webserver] Started
[Transaction manager] Starting
[Transaction manager] Started
[Hypersonic] Starting
[Hypersonic] Server 1.4 is running
[Hypersonic] Press [Ctrl]+[C] to abort
[Hypersonic] Database started
[Hypersonic] Started
[Naming] Starting
[Naming] Started
[InstantDB] Starting
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
Enhydra InstantDB - Version 3.21
[InstantDB] The Initial Developer of the Original Code is Lutris
Technologies In
c.
Portions created by Lutris are Copyright (C) 1997-2000 Lutris Technologies,
Inc.

All Rights Reserved.
[InstantDB] Started
[DefaultDS] Starting
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
[DefaultDS] Started
[JAAS Security Manager] Starting
[JAAS Security Manager] Started
[Container factory] Starting
[Container factory] Started
[J2EE Deployer] Starting
[J2EE Deployer] Cleaning up deployment directory
file:/C:/jboss_tomcat/jboss-2.0
-FINAL/bin/../tmp/deploy/
[J2EE Deployer] Started
[Security manager] Starting
[Security manager] Started
[Auto deploy] Starting
[Auto deploy] Auto deploy of
file:/C:/jboss_tomcat/jboss-2.0-FINAL/deploy/CQ.war

[J2EE Deployer] Deploy J2EE application:
file:/C:/jboss_tomcat/jboss-2.0-FINAL/d
eploy/CQ.war
[J2EE Deployer] Could not delete temporary file:
/C:/jboss_tomcat/jboss-2.0-FINA
L/bin/../tmp/deploy/copy1001.zip
[J2EE Deployer] Create application CQ.war
[J2EE Deployer] Installing web package: CQ.war
[J2EE Deployer] Starting module CQ.war
[EmbeddedTomcat] ContextManager: Adding context Ctx( /CQ )
[EmbeddedTomcat] path="/CQ" :jsp: init
[EmbeddedTomcat] path="/CQ" :ServletController: init
[EmbeddedTomcat] -- listing properties --
[EmbeddedTomcat] com.rational.rambu.arch.web.logonPage=/login2.jsp
[EmbeddedTomcat]
com.rational.rambu.arch.web.servletPath=/CQ/servlet/ServletCont
roller
[EmbeddedTomcat] com.rational.rambu.arch.web.runQuery=/queryResults.jsp
[EmbeddedTomcat] com.rational.rambu.arch.web.retrieve=/queryResults.jsp
[EmbeddedTomcat] com.rational.rambu.arch.web.viewDetails=/queryDetails.jsp
[EmbeddedTomcat] com.rational.rambu.arch.web.workspace=/frame.jsp
[EmbeddedTomcat]
com.rational.rambu.arch.web.requestor=com.rational.rambu.arch.w
eb.CorbaRequ...
[EmbeddedTomcat] About to init orb...
[EmbeddedTomcat] About to int svc_locator...
[EmbeddedTomcat] About to get service count...
[EmbeddedTomcat] inetaddress: 255.255.255.255/255.255.255.255
[EmbeddedTomcat] s1: IORPORT:1189
[EmbeddedTomcat] s1.substring(8): 1189
[EmbeddedTomcat] ior:
IOR:010000003500000049444c3a72616d62752e726174696f6e616c2e
636f6d2f4351436f7262612f69435153657373696f6e466163746f72793a312e300000000001
0000
00000000002a000000010100000e0000003137322e32312e3137312e353800a4040e000000fe
f9c0
5d3a000006e80000000000
[EmbeddedTomcat] s2:
IOR:010000003500000049444c3a72616d62752e726174696f6e616c2e6
36f6d2f4351436f7262612f69435153657373696f6e466163746f72793a312e3000000000010
0000
0000000002a000000010100000e0000003137322e32312e3137312e353800a4040e000000fef
9c05
d3a000006e80000000000
[EmbeddedTomcat] s1: IORPORT:1115
[EmbeddedTomcat] s1.substring(8): 1115
[EmbeddedTomcat] ior:
IOR:010000003500000049444c3a72616d62752e726174696f6e616c2e
636f6d2f4351436f7262612f69435153657373696f6e466163746f72793a312e300000000001
0000
00000000002a000000010100000e0000003137322e32312e3137312e3536005a040e000000fe
12d4
5d3a000007000000000000
[EmbeddedTomcat] s2:
IOR:010000003500000049444c3a72616d62752e726174696f6e616c2e6
36f6d2f4351436f7262612f69435153657373696f6e466163746f72793a312e3000000000010
0000
0000000002a000000010100000e0000003137322e32312e3137312e3536005a040e000000fe1
2d45
d3a000007000000000000
[EmbeddedTomcat] inetaddress: 255.255.255.255/255.255.255.255
[EmbeddedTomcat] inetaddress: 255.255.255.255/255.255.255.255
[EmbeddedTomcat] inetaddress: 255.255.255.255/255.255.255.255
[EmbeddedTomcat] inetaddress: 255.255.255.255/255.255.255.255
[EmbeddedTomcat] About to locate service...
[EmbeddedTomcat] ior_array size: 2
[EmbeddedTomcat] i : 0
[EmbeddedTomcat] Returning IOR:
IOR:010000003500000049444c3a72616d62752e72617469
6f6e616c2e636f6d2f4351436f7262612f69435153657373696f6e466163746f72793a312e30
0000
000001000000000000002a000000010100000e0000003137322e32312e3137312e353800a404
0e00
0000fef9c05d3a000006e80000000000
[EmbeddedTomcat] [CorbaRequestor] ior:
IOR:010000003500000049444c3a72616d62752e7
26174696f6e616c2e636f6d2f4351436f7262612f69435153657373696f6e466163746f72793
a312
e300000000001000000000000002a000000010100000e0000003137322e32312e3137312e353
800a
4040e000000fef9c05d3a000006e80000000000
[EmbeddedTomcat] About to perform string to object...
[EmbeddedTomcat] ORB: com.sun.corba.se.internal.iiop.ORB@513d61
[EmbeddedTomcat] Class Name: com.sun.corba.se.internal.iiop.ORB
[EmbeddedTomcat] Class Package: com.sun.corba.se.internal.iiop
[EmbeddedTomcat] java.lang.NullPointerException
[EmbeddedTomcat]        at
com.sun.corba.se.internal.core.IOR.getCodebase(IOR.ja
va:256)
[EmbeddedTomcat]        at
com.sun.corba.se.internal.core.IOR.read(IOR.java:215)

[EmbeddedTomcat]        at
com.sun.corba.se.internal.iiop.CDRInputStream.read_Ob
ject(CDRInputStream.java:579)
[EmbeddedTomcat]        at
com.sun.corba.se.internal.iiop.CDRInputStream.read_Ob
ject(CDRInputStream.java:572)
[EmbeddedTomcat]        at
com.sun.corba.se.internal.corba.ORB.string_to_object(
ORB.java:1017)
[EmbeddedTomcat]        at
com.rational.rambu.arch.web.CorbaRequestor.<init>(Cor
baRequestor.java:67)
[EmbeddedTomcat]        at java.lang.Class.newInstance0(Native Method)
[EmbeddedTomcat]        at java.lang.Class.newInstance(Class.java:237)
[EmbeddedTomcat]        at
com.rational.rambu.arch.web.ServletController.init(Se
rvletController.java:34)
[EmbeddedTomcat]        at
org.apache.tomcat.core.ServletWrapper.doInit(ServletW
rapper.java:317)
[EmbeddedTomcat]        at
org.apache.tomcat.core.Handler.init(Handler.java:215)

[EmbeddedTomcat]        at
org.apache.tomcat.core.ServletWrapper.init(ServletWra
pper.java:296)
[EmbeddedTomcat]        at
org.apache.tomcat.context.LoadOnStartupInterceptor.co
ntextInit(LoadOnStartupInterceptor.java:130)
[EmbeddedTomcat]        at
org.apache.tomcat.core.ContextManager.initContext(Con
textManager.java:493)
[EmbeddedTomcat]        at
org.apache.tomcat.startup.EmbededTomcat.initContext(E
mbededTomcat.java:237)
[EmbeddedTomcat]        at
org.jboss.tomcat.EmbeddedTomcatService.deploy(Embedde
dTomcatService.java:177)
[EmbeddedTomcat]        at java.lang.reflect.Method.invoke(Native Method)
[EmbeddedTomcat]        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1628)
[EmbeddedTomcat]        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1523)
[EmbeddedTomcat]        at
org.jboss.deployment.J2eeDeployer.startApplication(J2
eeDeployer.java:659)
[EmbeddedTomcat]        at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer
.java:137)
[EmbeddedTomcat]        at java.lang.reflect.Method.invoke(Native Method)
[EmbeddedTomcat]        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1628)
[EmbeddedTomcat]        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1523)
[EmbeddedTomcat]        at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:3
32)
[EmbeddedTomcat]        at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:268)

[EmbeddedTomcat]        at
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.
java:311)
[EmbeddedTomcat]        at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBean
Support.java:92)
[EmbeddedTomcat]        at java.lang.reflect.Method.invoke(Native Method)
[EmbeddedTomcat]        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1628)
[EmbeddedTomcat]        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1523)
[EmbeddedTomcat]        at
org.jboss.dependencies.DependencyManager.startMBean(D
ependencyManager.java:284)
[EmbeddedTomcat]        at
org.jboss.dependencies.DependencyManager.loadService(
DependencyManager.java:261)
[EmbeddedTomcat]        at
org.jboss.dependencies.DependencyManager.processServi
ce(DependencyManager.java:243)
[EmbeddedTomcat]        at
org.jboss.dependencies.DependencyManager.startMBeans(
DependencyManager.java:117)
[EmbeddedTomcat]        at org.jboss.Main.<init>(Main.java:162)
[EmbeddedTomcat]        at org.jboss.Main$1.run(Main.java:87)
[EmbeddedTomcat]        at
java.security.AccessController.doPrivileged(Native Me
thod)
[EmbeddedTomcat]        at org.jboss.Main.main(Main.java:83)
[EmbeddedTomcat] Requestor: com.rational.rambu.arch.web.CorbaRequestor@cf66b
[J2EE Deployer] J2EE application:
file:/C:/jboss_tomcat/jboss-2.0-FINAL/deploy/C
Q.war is deployed.
[Auto deploy] Started
[SpyderMQ] Starting
[SpyderMQ] Testing if SpyderMQ is present....
[SpyderMQ] OK
[SpyderMQ] Starting SpyderMQ...
[SpyderMQ] Started
[JMX RMI Adaptor] Starting
[JMX RMI Adaptor] Started
[JMX RMI Connector] Starting
[JMX RMI Connector] Started
[Default] 23 services and 4 other MBeans started.
[Default] Shutdown hook added
[Default] jBoss 2.0 FINAL Started



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to