geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Kirby" <ted.ki...@gmail.com>
Subject Re: Can't deploy MagicGBall in latest 1.1
Date Thu, 18 May 2006 15:35:55 GMT
After some work, my latest failure is:

19:48:53,693 INFO [Log4jService]
----------------------------------------------

19:48:53,693 INFO [Log4jService] Started Logging Service

19:48:55,405 INFO [JvmVendor] IBM JVM detected from IBM Corporation

19:48:57,899 INFO [DynamicStubClassLoader] Started

19:48:58,239 INFO [CSSBeanBase] Starting Base CORBA Client Security Server

19:48:59,601 INFO [CSSBean] Started CORBA Client Security Server -
NoSecurity

19:48:59,601 INFO [CSSBeanBase] Started Base CORBA Client Security Server

19:48:59,641 INFO [CommandLine] Server startup completed

CallbackHandler set user=system, password=manager

CallbackHandler set user=system, password=manager

CallbackHandler set user=system, password=manager

CallbackHandler set user=system, password=manager

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

at org.apache.geronimo.client.AppClientContainer$1.run(
AppClientContainer.java:153)

at java.security.AccessController.doPrivileged1(Native Method)

at java.security.AccessController.doPrivileged(AccessController.java:321)

at javax.security.auth.Subject.doAs(Subject.java:477)

at org.apache.geronimo.client.AppClientContainer.main(
AppClientContainer.java:146)

at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)

at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:122)

at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java
:852)

at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)

at org.apache.geronimo.system.main.CommandLine.invokeMainGBean(
CommandLine.java:113)

at org.apache.geronimo.system.main.ClientCommandLine.<init>(
ClientCommandLine.java:80)

at org.apache.geronimo.system.main.ClientCommandLine.main(
ClientCommandLine.java:50)

Caused by: java.lang.reflect.InvocationTargetException

at java.lang.reflect.Method.invoke(Method.java(Compiled Code))

at org.apache.geronimo.client.AppClientContainer$1.run(
AppClientContainer.java:149)

... 11 more

Caused by: java.lang.NullPointerException:

Trace from server: 598748091 at host 9.49.205.136 >>

java.lang.NullPointerException

at org.openejb.proxy.ReplacementStrategy$1.writeReplace(
ReplacementStrategy.java:73)

at org.openejb.proxy.SerializationHandler.writeReplace(
SerializationHandler.java:99)

at org.openejb.proxy.EJBObjectImpl.writeReplace(EJBObjectImpl.java:115)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:85)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:58)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:60)

at java.lang.reflect.Method.invoke(Method.java:391)

at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1057)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1042)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:309)

at org.openejb.proxy.SerializationHandler.copyObj(SerializationHandler.java
:111)

at org.openejb.corba.util.Util.writeObject(Util.java:485)

at org.openejb.corba.StandardServant._invoke(StandardServant.java:323)

at com.ibm.rmi.poa.GenericPOAServerSC.dispatchToServant(
GenericPOAServerSC.java:430)

at com.ibm.rmi.poa.GenericPOAServerSC.internalDispatch(
GenericPOAServerSC.java:277)

at com.ibm.rmi.poa.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:181)

at com.ibm.rmi.iiop.ORB.process(ORB.java:439)

at com.ibm.CORBA.iiop.ORB.process(ORB.java:1737)

at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2289)

at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:65)

at com.ibm.rmi.iiop.WorkerThread.run(ThreadPoolImpl.java:204)

at java.lang.Thread.run(Thread.java:570)

<< END server: 598748091 at host 9.49.205.136



at com.ibm.CORBA.iiop.UtilDelegateImpl.mapSystemException(
UtilDelegateImpl.java:168)

at org.openejb.corba.util.UtilDelegateImpl.mapSystemException(
UtilDelegateImpl.java:215)

at javax.rmi.CORBA.Util.mapSystemException(Util.java:84)

at org.openejb.corba.util.StubMethodInterceptor.intercept(
StubMethodInterceptor.java:136)

at org.omg.stub.org.acme._MagicGBallHome_Stub.create(<generated>)

at org.acme.MagicGBallClient.ask(MagicGBallClient.java:46)

at org.acme.MagicGBallClient.main(MagicGBallClient.java:38)

... 13 more.

Also, get this in server log when I start
geronimo/magicGball-NoSec/1.1-SNAPSHOT/car:

19:47:07,219 DEBUG [TSSBean] IdentityTokenNoSecurity - Linked container
geronimo/magicGball-NoSec/1.1-SNAPSHOT/car?EJBModule=
magicGball-ejb-1.1-SNAPSHOT.jar
,J2EEApplication=geronimo/magicGball-NoSec/1.1-SNAPSHOT/car,j2eeType=StatelessSessionBean,name=MagicGBall

19:47:07,219 DEBUG [GenericEJBContainer] GenericEJBContainer
'geronimo/magicGball-NoSec/1.1-SNAPSHOT/car?EJBModule=
magicGball-ejb-1.1-SNAPSHOT.jar,J2EEApplication=geronimo/magicGball-NoSec/1.1-SNAPSHOT/car,j2eeType=StatelessSessionBean,name=MagicGBall'
started

19:47:07,219 DEBUG [GBeanInstanceState] GBeanInstanceState for:
geronimo/magicGball-NoSec/1.1-SNAPSHOT/car?EJBModule=
magicGball-ejb-1.1-SNAPSHOT.jar,J2EEApplication=geronimo/magicGball-NoSec/1.1-SNAPSHOT/car,j2eeType=StatelessSessionBean,name=MagicGBall
State changed from starting to running

19:47:07,550 ERROR [ProxyCollection] Listener threw exception

java.lang.ClassCastException: org.openejb.GenericEJBContainer

at org.openejb.EJBContainer$$EnhancerByCGLIB$$6da8ed71.getUnmanagedReference
(<generated>)

at org.openejb.ContainerIndex.addContainer(ContainerIndex.java:153)

at org.openejb.ContainerIndex.memberAdded(ContainerIndex.java:187)

at org.apache.geronimo.gbean.runtime.ProxyCollection.addTarget(
ProxyCollection.java:102)

at org.apache.geronimo.gbean.runtime.GBeanCollectionReference.targetAdded(
GBeanCollectionReference.java:96)

at org.apache.geronimo.gbean.runtime.GBeanCollectionReference.addTarget(
GBeanCollectionReference.java:180)

at org.apache.geronimo.gbean.runtime.GBeanCollectionReference$1.running(
GBeanCollectionReference.java:110)

at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(
BasicLifecycleMonitor.java:173)

at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(
BasicLifecycleMonitor.java:41)

at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent
(BasicLifecycleMonitor.java:251)

at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(
GBeanInstanceState.java:292)

at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(
GBeanInstanceState.java:102)

at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(
GBeanInstanceState.java:124)

at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(
GBeanInstance.java:540)

at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(
BasicKernel.java:379)

at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans
(ConfigurationUtil.java:374)

at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(
KernelConfigurationManager.java:181)

at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration
(SimpleConfigurationManager.java:505)

at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration
(SimpleConfigurationManager.java:486)

at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke
(<generated>)

at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)

at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)

at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:122)

at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java
:817)

at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)

at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:35)

at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
ProxyMethodInterceptor.java:96)

at
org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$c2bcdefe.startConfiguration
(<generated>)

at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:308)

at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:81)

at org.apache.geronimo.system.main.Daemon.main(Daemon.java:432)

--------

David Jencks' upgrade tool was quite helpful. I ran it on magicgball plan.
still not working, but past deploy problems, and appClient is failing on
CORBA code.

I have put 3 fixes into (our version) of AG that I think you'll want to pick
up. They are in j2ee-corba-plan, client-corba-plan, and client-security.  It
would be best to have it working with the proper maven plugin to process
plans. That will take me a while. I am hand-crafting plans at the moment.

I was not able to get everything into one magicgball plan. I put CSS and TSS
bean in separate plans. I will attach my plans here, and put my latest
mgball trace below.

Thanks,

Ted





Log: set proper dependency on new CORBASystemProperties GBean

Modified: trunk/geronimo/configs/j2ee-corba/src/plan/plan.xml

===================================================================

--- trunk/geronimo/configs/j2ee-corba/src/plan/plan.xml 2006-05-12 00:01:36
UTC (rev 2860)

+++ trunk/geronimo/configs/j2ee-corba/src/plan/plan.xml 2006-05-12 01:13:37
UTC (rev 2861)

@@ -60,7 +60,7 @@

<!-- CORBA -->

<gbean name="DynamicORBStubClassLoader" class="
org.openejb.corba.util.DynamicStubClassLoader">

<dependency>

- <name>SystemProperties</name>

+ <name>CORBASystemProperties</name>

</dependency>

</gbean>

@@ -71,7 +71,7 @@

<attribute name="dbDir">var/cosnaming.db</attribute>

<attribute name="port">${PlanCOSNamingPort}</attribute>

<dependency>

- <name>SystemProperties</name>

+ <name>CORBASystemProperties</name>

</dependency>

</gbean>

@@ -104,7 +104,7 @@

</tss:tss>

</xml-attribute>

<dependency>

- <name>SystemProperties</name>

+ <name>CORBASystemProperties</name>

</dependency>

<dependency>

<name>NameServer</name>

@@ -143,7 +143,7 @@

<name>Server</name>

</dependency>

<dependency>

- <name>SystemProperties</name>

+ <name>CORBASystemProperties</name>

</dependency>

<dependency>

<name>NameServer</name>

Log: remove module element for gbean reference, like the server does.

This fix allows app client to work.

This fix needs to be fed back to AG1.1.

Modified: trunk/geronimo/configs/client-security/src/plan/plan.xml

===================================================================

--- trunk/geronimo/configs/client-security/src/plan/plan.xml 2006-05-13
02:41:35 UTC (rev 2867)

+++ trunk/geronimo/configs/client-security/src/plan/plan.xml 2006-05-13
02:42:46 UTC (rev 2868)

@@ -30,7 +30,7 @@

<!-- required -->

<gbean name="SecurityService" class="
org.apache.geronimo.security.SecurityServiceImpl">

<reference name="ServerInfo">

- <module>geronimo/client-system/${pom.currentVersion}/car</module>

+ <!--module>geronimo/client-system/${pom.currentVersion}/car</module-->

<name>ServerInfo</name>

</reference>

<attribute name="policyConfigurationFactory">
org.apache.geronimo.security.jacc.GeronimoPolicyConfigurationFactory
</attribute>

@@ -93,7 +93,7 @@

</lc:login-config>

</xml-reference>

<reference name="ServerInfo">

- <module>geronimo/client-system/${pom.currentVersion}/car</module>

+ <!--module>geronimo/client-system/${pom.currentVersion}/car</module-->

<name>ServerInfo</name>

</reference>

<reference name="LoginService">

Log:

client-corba has a securityserver reference, and needs a dependency on
client-security to get it.

This fix needs to be fed back to AG1.1

Modified: trunk/geronimo/configs/client-corba/project.xml

===================================================================

--- trunk/geronimo/configs/client-corba/project.xml 2006-05-12 18:55:17 UTC
(rev 2866)

+++ trunk/geronimo/configs/client-corba/project.xml 2006-05-13 02:41:35 UTC
(rev 2867)

@@ -72,6 +72,15 @@

</dependency>

<dependency>

<groupId>geronimo</groupId>

+ <artifactId>client-security</artifactId>

+ <version>${geronimo_version}</version>

+ <type>car</type>

+ <properties>

+ <geronimo.import>true</geronimo.import>

+ </properties>

+ </dependency>

+ <dependency>

+ <groupId>geronimo</groupId>

<artifactId>geronimo-system</artifactId>

<version>${geronimo_version}</version>

</dependency>



On 5/10/06, Ted Kirby <ted.kirby@gmail.com> wrote:
>
>  Looks like MagicGBall has not been run in a while... I changed the xml
> namespaces from 1.0 to latest 1.1 levels to get past my first problem with
> depploying.
> Now I get:
>
> deploy distribute magicGball\target\magicGball-1.1-SNAPSHOT.earmagicGball\target\plan\magicgball-
> corba-nosec-plan.xml
>
>
> Error: Operation failed: org.apache.xmlbeans.XmlException:
>     Invalid deployment descriptor: [error: cvc-complex-type.2.4a:
>     Expected element
>     'environment@http://geronimo.apache.org/xml/ns/deployment-1.1'
>     instead of
>     'module@http://geronimo.apache.org/xml/ns/j2ee/application-1.1'
>     here, error: cvc-complex-type.2.4a: Expected element
>     'environment@http://geronimo.apache.org/xml/ns/deployment-1.1'
>     instead of
>     'module@http://geronimo.apache.org/xml/ns/j2ee/application-1.1'
>     here, error: cvc-complex-type.2.4a: Expected element
>     'environment@http://geronimo.apache.org/xml/ns/deployment-1.1'
>     instead of
>     'module@http://geronimo.apache.org/xml/ns/j2ee/application-1.1'
>     here, error: cvc-complex-type.2.4a: Expected element
>     'environment@http://geronimo.apache.org/xml/ns/deployment-1.1'
>     instead of 'security@http://geronimo.apache.org/xml/ns/security-1.1'
>     here, error: cvc-complex-type.2.4c: Expected element
>     'environment@http://geronimo.apache.org/xml/ns/deployment-1.1'
>     before the end of the content]
>
>     Descriptor: <xml-fragment
>     xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-1.1"
>     xmlns:nam=" http://geronimo.apache.org/xml/ns/naming-1.1"
>     xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1">
>
>       <app:module>
>
>         <app:ejb>magicGball-ejb-1.1-SNAPSHOT.jar</app:ejb>
>
>         <openejb-jar
>     xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
>
>           <enterprise-beans>
>
>             <session>
>
>               <ejb-name>MagicGBall</ejb-name>
>
>               <jndi-name>MagicGBall</jndi-name>
>
>               <tss-link>IdentityTokenNoSecurity</tss-link>
>
>             </session>
>
>           </enterprise-beans>
>
>         </openejb-jar>
>
>       </app:module>
>
>       <app:module>
> ...
>
>
>
> I suspect magicgball/project.xml needs some work.
>
> Should geronimo-packaging-plugin or geronimo-deployment-plugin be used?
>
> Can/should maven generate the target plan?  This would be best.  For now,
> I will try to craft the proper <dep:environment> element by hand.
>
>
>

Mime
View raw message