CXF on WebLogic 9.2

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

CXF on WebLogic 9.2

chengas123
Hi,
I was getting a "java.lang.NoSuchMethodError: javax.jws.WebService.portName()Ljava/lang/String;" error on WebLogic 9.2, but seemed to have solved it by following a post (http://forums.bea.com/thread.jspa?threadID=600009031) I found and adding -Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory to my WebLogic startup.
However, I'm now getting:
java.lang.RuntimeException: [was class java.net.ConnectException] Tried all: '1' addresses, but could not connect over HTTP to server: 'java.sun.com', port: '80'
My only guess is it's trying to validate a DTD or something and is being blocked by our corporate firewall.  I have no idea how to tell weblogic about our proxy.  Configuring the proxy would be a good short-term solution since it would allow development to move forward.  However, ultimately I'm probably going to need another solution since I'm not sure this would fly in our production environment.

Thanks,
Ben
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

chengas123
After a bit more research it seems that this error was because Weblogic is trying to use it's own older version of JSR 181.  So, I prepended geronimo-ws-metadeta_2.0_spec-1.1.1.jar to the Weblogic classpath and am now getting:

Jan 31, 2008 11:46:07 AM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service {http://service.auth.sd.sherwin.com/}swAuthService from class com.sherwin.sd.auth.service.AuthServiceImpl
2008-01-31 11:46:07 ContextLoader [ERROR] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auth': Invocation of init method failed; nested exception is java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class
Caused by:
java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class
        at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(RuntimeBuiltinLeafInfoImpl.java:186)
        at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.<init>(RuntimeTypeInfoSetImpl.java:25)
        at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:84)
        at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:41)
        at com.sun.xml.bind.v2.model.impl.ModelBuilder.<init>(ModelBuilder.java:104)
        at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.<init>(RuntimeModelBuilder.java:49)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:372)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:236)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:366)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
        at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContext(JAXBDataBinding.java:427)
        at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:221)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:313)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:362)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:156)
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:89)
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:74)
        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:108)
        at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:147)
        at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:299)
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:230)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:181)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:352)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:375)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:83)
        at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1591)
        at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2734)
        at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:892)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
        at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
        at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:641)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:229)
        at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
        at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:181)
        at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:352)
        at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
        at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:186)
        at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
        at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
        at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
        at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
        at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
        at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)



chengas123 wrote
I was getting a "java.lang.NoSuchMethodError: javax.jws.WebService.portName()Ljava/lang/String;" error on WebLogic 9.2
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

chengas123
I found this guide on the CFX wiki, which confirms the issue is with WebLogic overriding geronimo-ws-metadeta_2.0_spec-1.1.1.jar
http://cwiki.apache.org/CXF20DOC/appserverguide.html#AppServerGuide-WebLogic
However, following their instructions I still get the QName error.

-Ben


chengas123 wrote
After a bit more research it seems that this error was because Weblogic is trying to use it's own older version of JSR 181.  So, I prepended geronimo-ws-metadeta_2.0_spec-1.1.1.jar to the Weblogic classpath and am now getting:

Jan 31, 2008 11:46:07 AM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service {http://service.auth.sd.sherwin.com/}swAuthService from class com.sherwin.sd.auth.service.AuthServiceImpl
2008-01-31 11:46:07 ContextLoader [ERROR] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auth': Invocation of init method failed; nested exception is java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class
Caused by:
java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class
        at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(RuntimeBuiltinLeafInfoImpl.java:186)
        at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.<init>(RuntimeTypeInfoSetImpl.java:25)
        at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:84)
        at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:41)
        at com.sun.xml.bind.v2.model.impl.ModelBuilder.<init>(ModelBuilder.java:104)
        at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.<init>(RuntimeModelBuilder.java:49)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:372)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:236)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:366)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
        at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContext(JAXBDataBinding.java:427)
        at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:221)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:313)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:362)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:156)
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:89)
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:74)
        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:108)
        at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:147)
        at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:299)
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:230)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:181)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:352)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:375)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:83)
        at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1591)
        at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2734)
        at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:892)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
        at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
        at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:641)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:229)
        at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
        at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:181)
        at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:352)
        at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
        at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:186)
        at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
        at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
        at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
        at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
        at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
        at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)



chengas123 wrote
I was getting a "java.lang.NoSuchMethodError: javax.jws.WebService.portName()Ljava/lang/String;" error on WebLogic 9.2
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

YI (William) ZHU
In reply to this post by chengas123
How about you put the jar file "xml-resolver-1.2.jar" in your webLogic classpath?
(keep this -Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory setting)

Or make sure CXF's jars in your classpath.

I agree that "Configuring the proxy" is not a good solution.

Hope this can help.

Yi Zhu


chengas123 wrote
Hi,
I was getting a "java.lang.NoSuchMethodError: javax.jws.WebService.portName()Ljava/lang/String;" error on WebLogic 9.2, but seemed to have solved it by following a post (http://forums.bea.com/thread.jspa?threadID=600009031) I found and adding -Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory to my WebLogic startup.
However, I'm now getting:
java.lang.RuntimeException: [was class java.net.ConnectException] Tried all: '1' addresses, but could not connect over HTTP to server: 'java.sun.com', port: '80'
My only guess is it's trying to validate a DTD or something and is being blocked by our corporate firewall.  I have no idea how to tell weblogic about our proxy.  Configuring the proxy would be a good short-term solution since it would allow development to move forward.  However, ultimately I'm probably going to need another solution since I'm not sure this would fly in our production environment.

Thanks,
Ben
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

chengas123
Unfortunately that does not work either.  I get the stacktrace below.
I feel like I was closest overriding geronimo-ws-metadeta_2.0_spec-1.1.1.jar:
http://cwiki.apache.org/CXF20DOC/appserverguide.html#AppServerGuide-WebLogic
However, I then get the QName error.  The wiki says in multiple places to "Remove javax.xml.namespace.QName from stax-api shiped with CXF" if you get this error, but there's no such file as stax-api.jar, so I have no clue what they're talking about (nor could I find that file in any jars I have included in my project).

Thanks,
Ben


<Jan 31, 2008 2:22:40 PM EST> <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\appServers\bea9\weblogic92\server\lib\consoleapp/META-INF/application.xml of module consoleapp. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
        at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:147)
        at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:280)
        at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:749)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:376)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:720)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:729)
        at weblogic.application.ApplicationDescriptor.getApplicationDescriptor(ApplicationDescriptor.java:277)
        at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:174)
        at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
        at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
        at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
        at weblogic.deploy.internal.InternalAppProcessor.createBeansForInternalApp(InternalAppProcessor.java:396)
        at weblogic.deploy.internal.InternalAppProcessor.stageFilesAndCreateBeansForInternalApp(InternalAppProcessor.java:250)
        at weblogic.deploy.internal.InternalAppProcessor.updateConfiguration(InternalAppProcessor.java:196)
        at weblogic.management.deploy.internal.DeploymentServerService.init(DeploymentServerService.java:144)
        at weblogic.management.deploy.internal.DeploymentPreStandbyServerService.start(DeploymentPreStandbyServerService.java:32)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: com.bea.xml.XmlException: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.ModuleBeanImpl@82faccb(/Modules[weblogic.descriptor.internal.DescriptorBeanKey@8426316])"
        at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:54)
        at com.bea.staxb.runtime.internal.RuntimeBindingType$BeanRuntimeProperty.setValue(RuntimeBindingType.java:483)
        at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType$QNameRuntimeProperty.fillCollection(AttributeRuntimeBindingType.java:385)
        at com.bea.staxb.runtime.internal.MultiIntermediary.getFinalValue(MultiIntermediary.java:52)
        at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType.getFinalObjectFromIntermediary(AttributeRuntimeBindingType.java:145)
        at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:185)
        at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:154)
        at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
        at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:136)
        ... 19 more
Caused by: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.ModuleBeanImpl@82faccb(/Modules[weblogic.descriptor.internal.DescriptorBeanKey@8426316])"
        at weblogic.descriptor.internal.ReferenceManager.registerBean(ReferenceManager.java:207)
        at weblogic.j2ee.descriptor.ApplicationBeanImpl.setModules(ApplicationBeanImpl.java:419)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:48)
        ... 27 more
.> 
<Jan 31, 2008 2:22:40 PM EST> <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\appServers\bea9\weblogic92\server\lib\consoleapp/META-INF/application.xml of module consoleapp. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
        at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:147)
        at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:280)
        at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:749)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:376)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:720)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:729)
        at weblogic.application.ApplicationDescriptor.getApplicationDescriptor(ApplicationDescriptor.java:277)
        at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:174)
        at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
        at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
        at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
        at weblogic.deploy.internal.InternalAppProcessor.createBeansForInternalApp(InternalAppProcessor.java:396)
        at weblogic.deploy.internal.InternalAppProcessor.stageFilesAndCreateBeansForInternalApp(InternalAppProcessor.java:250)
        at weblogic.deploy.internal.InternalAppProcessor.updateConfiguration(InternalAppProcessor.java:196)
        at weblogic.management.deploy.internal.DeploymentServerService.init(DeploymentServerService.java:144)
        at weblogic.management.deploy.internal.DeploymentPreStandbyServerService.start(DeploymentPreStandbyServerService.java:32)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: com.bea.xml.XmlException: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.ModuleBeanImpl@818ff7b(/Modules[weblogic.descriptor.internal.DescriptorBeanKey@8426316])"
        at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:54)
        at com.bea.staxb.runtime.internal.RuntimeBindingType$BeanRuntimeProperty.setValue(RuntimeBindingType.java:483)
        at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType$QNameRuntimeProperty.fillCollection(AttributeRuntimeBindingType.java:385)
        at com.bea.staxb.runtime.internal.MultiIntermediary.getFinalValue(MultiIntermediary.java:52)
        at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType.getFinalObjectFromIntermediary(AttributeRuntimeBindingType.java:145)
        at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:185)
        at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:154)
        at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
        at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:136)
        ... 19 more
Caused by: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.ModuleBeanImpl@818ff7b(/Modules[weblogic.descriptor.internal.DescriptorBeanKey@8426316])"
        at weblogic.descriptor.internal.ReferenceManager.registerBean(ReferenceManager.java:207)
        at weblogic.j2ee.descriptor.ApplicationBeanImpl.setModules(ApplicationBeanImpl.java:419)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:48)
        ... 27 more
.> 
<Jan 31, 2008 2:22:40 PM EST> <Warning> <Deployer> <BEA-149617> <Non-critical internal application consoleapp was not deployed. Error: weblogic.management.DeploymentException: Unmarshaller failed> 
<Jan 31, 2008 2:22:41 PM EST> <Error> <HTTP> <BEA-101064> <[WebAppModule(bea_wls_internal:bea_wls_internal.war)] Error parsing descriptor in Web appplication "C:\appServers\bea9\user_projects\domains\mydomain\.\servers\AdminServer\tmp\.internal\bea_wls_internal.war"
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(String.java:558)
        at weblogic.servlet.internal.WebAppReader2.getText(WebAppReader2.java:150)
        at weblogic.application.descriptor.BasicMunger2._onDTD(BasicMunger2.java:485)
        at weblogic.application.descriptor.BasicMunger2.next(BasicMunger2.java:448)
        at weblogic.application.descriptor.VersionMunger._next(VersionMunger.java:234)
        Truncated. see log file for complete stacktrace
>
<Jan 31, 2008 2:22:41 PM EST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'bea_wls_internal' due to error weblogic.application.ModuleException: [HTTP:101064][WebAppModule(bea_wls_internal:bea_wls_internal.war)] Error parsing descriptor in Web appplication "C:\appServers\bea9\user_projects\domains\mydomain\.\servers\AdminServer\tmp\.internal\bea_wls_internal.war"
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(String.java:558)
        at weblogic.servlet.internal.WebAppReader2.getText(WebAppReader2.java:150)
        at weblogic.application.descriptor.BasicMunger2._onDTD(BasicMunger2.java:485)
        at weblogic.application.descriptor.BasicMunger2.next(BasicMunger2.java:448)
        at weblogic.application.descriptor.VersionMunger._next(VersionMunger.java:234)
        at weblogic.application.descriptor.VersionMunger.next(VersionMunger.java:159)
        at weblogic.application.descriptor.VersionMunger.consumeInputStream(VersionMunger.java:329)
        at weblogic.application.descriptor.VersionMunger.init(VersionMunger.java:278)
        at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:44)
        at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:34)
        at weblogic.servlet.internal.WebAppReader2.<init>(WebAppReader2.java:41)
        at weblogic.servlet.internal.WebAppDescriptor$MyWebAppDescriptor.createXMLStreamReader(WebAppDescriptor.java:243)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:369)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:720)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:729)
        at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:134)
        at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:778)
        at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:275)
        at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
        at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
        at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
        at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:621)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:208)
        at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
        at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:131)
        at weblogic.management.deploy.internal.ConfiguredDeployments.deployPreStandbyInternalApps(ConfiguredDeployments.java:84)
        at weblogic.management.deploy.internal.DeploymentServerService.deployPreStandbyInternalApps(DeploymentServerService.java:161)
        at weblogic.management.deploy.internal.DeploymentPreStandbyServerService.start(DeploymentPreStandbyServerService.java:33)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

String index out of range: 0.
weblogic.application.ModuleException: [HTTP:101064][WebAppModule(bea_wls_internal:bea_wls_internal.war)] Error parsing descriptor in Web appplication "C:\appServers\bea9\user_projects\domains\mydomain\.\servers\AdminServer\tmp\.internal\bea_wls_internal.war"
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(String.java:558)
        at weblogic.servlet.internal.WebAppReader2.getText(WebAppReader2.java:150)
        at weblogic.application.descriptor.BasicMunger2._onDTD(BasicMunger2.java:485)
        at weblogic.application.descriptor.BasicMunger2.next(BasicMunger2.java:448)
        at weblogic.application.descriptor.VersionMunger._next(VersionMunger.java:234)
        at weblogic.application.descriptor.VersionMunger.next(VersionMunger.java:159)
        at weblogic.application.descriptor.VersionMunger.consumeInputStream(VersionMunger.java:329)
        at weblogic.application.descriptor.VersionMunger.init(VersionMunger.java:278)
        at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:44)
        at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:34)
        at weblogic.servlet.internal.WebAppReader2.<init>(WebAppReader2.java:41)
        at weblogic.servlet.internal.WebAppDescriptor$MyWebAppDescriptor.createXMLStreamReader(WebAppDescriptor.java:243)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:369)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:720)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:729)
        at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:134)
        at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:778)
        at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:275)
        at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
        at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
        at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
        at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:621)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:208)
        at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
        at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:131)
        at weblogic.management.deploy.internal.ConfiguredDeployments.deployPreStandbyInternalApps(ConfiguredDeployments.java:84)
        at weblogic.management.deploy.internal.DeploymentServerService.deployPreStandbyInternalApps(DeploymentServerService.java:161)
        at weblogic.management.deploy.internal.DeploymentPreStandbyServerService.start(DeploymentPreStandbyServerService.java:33)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

String index out of range: 0
        at weblogic.servlet.internal.WebAppModule.createModuleException(WebAppModule.java:983)
        at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:802)
        at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:275)
        at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
        at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
        Truncated. see log file for complete stacktrace
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(String.java:558)
        at weblogic.servlet.internal.WebAppReader2.getText(WebAppReader2.java:150)
        at weblogic.application.descriptor.BasicMunger2._onDTD(BasicMunger2.java:485)
        at weblogic.application.descriptor.BasicMunger2.next(BasicMunger2.java:448)
        at weblogic.application.descriptor.VersionMunger._next(VersionMunger.java:234)
        Truncated. see log file for complete stacktrace
>
<Jan 31, 2008 2:22:41 PM EST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:

There are 1 nested errors:

weblogic.application.ModuleException: [HTTP:101064][WebAppModule(bea_wls_internal:bea_wls_internal.war)] Error parsing descriptor in Web appplication "C:\appServers\bea9\user_projects\domains\mydomain\.\servers\AdminServer\tmp\.internal\bea_wls_internal.war"
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(String.java:558)
        at weblogic.servlet.internal.WebAppReader2.getText(WebAppReader2.java:150)
        at weblogic.application.descriptor.BasicMunger2._onDTD(BasicMunger2.java:485)
        at weblogic.application.descriptor.BasicMunger2.next(BasicMunger2.java:448)
        at weblogic.application.descriptor.VersionMunger._next(VersionMunger.java:234)
        at weblogic.application.descriptor.VersionMunger.next(VersionMunger.java:159)
        at weblogic.application.descriptor.VersionMunger.consumeInputStream(VersionMunger.java:329)
        at weblogic.application.descriptor.VersionMunger.init(VersionMunger.java:278)
        at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:44)
        at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:34)
        at weblogic.servlet.internal.WebAppReader2.<init>(WebAppReader2.java:41)
        at weblogic.servlet.internal.WebAppDescriptor$MyWebAppDescriptor.createXMLStreamReader(WebAppDescriptor.java:243)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:369)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:720)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:729)
        at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:134)
        at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:778)
        at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:275)
        at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
        at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
        at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
        at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:621)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:208)
        at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
        at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:131)
        at weblogic.management.deploy.internal.ConfiguredDeployments.deployPreStandbyInternalApps(ConfiguredDeployments.java:84)
        at weblogic.management.deploy.internal.DeploymentServerService.deployPreStandbyInternalApps(DeploymentServerService.java:161)
        at weblogic.management.deploy.internal.DeploymentPreStandbyServerService.start(DeploymentPreStandbyServerService.java:33)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

String index out of range: 0
        at weblogic.servlet.internal.WebAppModule.createModuleException(WebAppModule.java:983)
        at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:802)
        at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:275)
        at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
        at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
        at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
        at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:621)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:208)
        at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
        at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:131)
        at weblogic.management.deploy.internal.ConfiguredDeployments.deployPreStandbyInternalApps(ConfiguredDeployments.java:84)
        at weblogic.management.deploy.internal.DeploymentServerService.deployPreStandbyInternalApps(DeploymentServerService.java:161)
        at weblogic.management.deploy.internal.DeploymentPreStandbyServerService.start(DeploymentPreStandbyServerService.java:33)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(String.java:558)
        at weblogic.servlet.internal.WebAppReader2.getText(WebAppReader2.java:150)
        at weblogic.application.descriptor.BasicMunger2._onDTD(BasicMunger2.java:485)
        at weblogic.application.descriptor.BasicMunger2.next(BasicMunger2.java:448)
        at weblogic.application.descriptor.VersionMunger._next(VersionMunger.java:234)
        at weblogic.application.descriptor.VersionMunger.next(VersionMunger.java:159)
        at weblogic.application.descriptor.VersionMunger.consumeInputStream(VersionMunger.java:329)
        at weblogic.application.descriptor.VersionMunger.init(VersionMunger.java:278)
        at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:44)
        at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:34)
        at weblogic.servlet.internal.WebAppReader2.<init>(WebAppReader2.java:41)
        at weblogic.servlet.internal.WebAppDescriptor$MyWebAppDescriptor.createXMLStreamReader(WebAppDescriptor.java:243)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:369)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:720)
        at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:729)
        at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:134)
        at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:778)
        ... 19 more

>


YI (William) ZHU wrote
How about you put the jar file "xml-resolver-1.2.jar" in your webLogic classpath?
(keep this -Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory setting)

Or make sure CXF's jars in your classpath.

I agree that "Configuring the proxy" is not a good solution.

Hope this can help.

Yi Zhu


chengas123 wrote
Hi,
I was getting a "java.lang.NoSuchMethodError: javax.jws.WebService.portName()Ljava/lang/String;" error on WebLogic 9.2, but seemed to have solved it by following a post (http://forums.bea.com/thread.jspa?threadID=600009031) I found and adding -Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory to my WebLogic startup.
However, I'm now getting:
java.lang.RuntimeException: [was class java.net.ConnectException] Tried all: '1' addresses, but could not connect over HTTP to server: 'java.sun.com', port: '80'
My only guess is it's trying to validate a DTD or something and is being blocked by our corporate firewall.  I have no idea how to tell weblogic about our proxy.  Configuring the proxy would be a good short-term solution since it would allow development to move forward.  However, ultimately I'm probably going to need another solution since I'm not sure this would fly in our production environment.

Thanks,
Ben
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

YI (William) ZHU
In reply to this post by chengas123
stax-api jar file is in \{CXF-home}\lib

unpackage it, you will find the javax.xml.namespace.QName class.

delete it, and re-package the file.

try it.


chengas123 wrote
Hi,
I was getting a "java.lang.NoSuchMethodError: javax.jws.WebService.portName()Ljava/lang/String;" error on WebLogic 9.2, but seemed to have solved it by following a post (http://forums.bea.com/thread.jspa?threadID=600009031) I found and adding -Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory to my WebLogic startup.
However, I'm now getting:
java.lang.RuntimeException: [was class java.net.ConnectException] Tried all: '1' addresses, but could not connect over HTTP to server: 'java.sun.com', port: '80'
My only guess is it's trying to validate a DTD or something and is being blocked by our corporate firewall.  I have no idea how to tell weblogic about our proxy.  Configuring the proxy would be a good short-term solution since it would allow development to move forward.  However, ultimately I'm probably going to need another solution since I'm not sure this would fly in our production environment.

Thanks,
Ben
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

chengas123
I downloaded apache-cxf-2.0.4-incubator.tar.gz and could not find any file name stax-api.jar in the lib directory.


YI (William) ZHU wrote
stax-api jar file is in \{CXF-home}\lib

unpackage it, you will find the javax.xml.namespace.QName class.

delete it, and re-package the file.

try it.
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

YI (William) ZHU
actually, it's "stax-api-1.0.1.jar".
  (on CXF 2.0.2 and CXF 2.0.3)
   
 

chengas123 <[hidden email]> wrote:
 
I downloaded apache-cxf-2.0.4-incubator.tar.gz and could not find any file
name stax-api.jar in the lib directory.



YI (William) ZHU wrote:

>
> stax-api jar file is in \{CXF-home}\lib
>
> unpackage it, you will find the javax.xml.namespace.QName class.
>
> delete it, and re-package the file.
>
> try it.
>
>

--
View this message in context: http://www.nabble.com/CXF-on-WebLogic-9.2-tp15193763p15213356.html
Sent from the cxf-user mailing list archive at Nabble.com.



       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

chengas123
Haha.  I would have realized that was the same .jar
The only one included in 2.0.4 is stax-utils-20060502.jar


YI (William) ZHU wrote
actually, it's "stax-api-1.0.1.jar".
  (on CXF 2.0.2 and CXF 2.0.3)
   
 

chengas123 <benjamin.j.mccann@gmail.com> wrote:
 
I downloaded apache-cxf-2.0.4-incubator.tar.gz and could not find any file
name stax-api.jar in the lib directory.



YI (William) ZHU wrote:
>
> stax-api jar file is in \{CXF-home}\lib
>
> unpackage it, you will find the javax.xml.namespace.QName class.
>
> delete it, and re-package the file.
>
> try it.
>
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

YI (William) ZHU
on CXF2.0.4, it's "geronimo-stax-api_1.0_spec-1.0.jar".
   
 

chengas123 <[hidden email]> wrote:
 
Haha. I would have realized that was the same .jar
The only one included in 2.0.4 is stax-utils-20060502.jar



YI (William) ZHU wrote:

>
> actually, it's "stax-api-1.0.1.jar".
> (on CXF 2.0.2 and CXF 2.0.3)
>
>
>
> chengas123 wrote:
>
> I downloaded apache-cxf-2.0.4-incubator.tar.gz and could not find any file
> name stax-api.jar in the lib directory.
>
>
>
> YI (William) ZHU wrote:
>>
>> stax-api jar file is in \{CXF-home}\lib
>>
>> unpackage it, you will find the javax.xml.namespace.QName class.
>>
>> delete it, and re-package the file.
>>
>> try it.
>>
>
>

--
View this message in context: http://www.nabble.com/CXF-on-WebLogic-9.2-tp15193763p15213728.html
Sent from the cxf-user mailing list archive at Nabble.com.



       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

Ian Roberts
In reply to this post by chengas123
chengas123 wrote:
> I downloaded apache-cxf-2.0.4-incubator.tar.gz and could not find any file
> name stax-api.jar in the lib directory.

2.0.4 ships geronimo-stax-api_1.0_spec-1.0.jar instead, but this doesn't
include the QName class so probably doesn't help you.

Ian

--
Ian Roberts               | Department of Computer Science
[hidden email]  | University of Sheffield, UK
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

chengas123
Thank you for your help.  I finally got WebLogic to start.  I'm not sure what exactly I did to fix it, but part of it was definitely clearing the weblogic cache.

Thanks again,
Ben


ianroberts wrote
chengas123 wrote:
> I downloaded apache-cxf-2.0.4-incubator.tar.gz and could not find any file
> name stax-api.jar in the lib directory.

2.0.4 ships geronimo-stax-api_1.0_spec-1.0.jar instead, but this doesn't
include the QName class so probably doesn't help you.

Ian

--
Ian Roberts               | Department of Computer Science
i.roberts@dcs.shef.ac.uk  | University of Sheffield, UK
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

Daniel Kulp
Administrator
In reply to this post by YI (William) ZHU

FYI:  for 2.0.4, we specifically switched to the geronimo version as it
does NOT have the QName class in it like the stax-api version that we
used in 2.0.3 does.     Thus, the problem should be reduced.

Dan


On Thursday 31 January 2008, William Zhu wrote:

> on CXF2.0.4, it's "geronimo-stax-api_1.0_spec-1.0.jar".
>
>
>
> chengas123 <[hidden email]> wrote:
>
> Haha. I would have realized that was the same .jar
> The only one included in 2.0.4 is stax-utils-20060502.jar
>
> YI (William) ZHU wrote:
> > actually, it's "stax-api-1.0.1.jar".
> > (on CXF 2.0.2 and CXF 2.0.3)
> >
> >
> >
> > chengas123 wrote:
> >
> > I downloaded apache-cxf-2.0.4-incubator.tar.gz and could not find
> > any file name stax-api.jar in the lib directory.
> >
> > YI (William) ZHU wrote:
> >> stax-api jar file is in \{CXF-home}\lib
> >>
> >> unpackage it, you will find the javax.xml.namespace.QName class.
> >>
> >> delete it, and re-package the file.
> >>
> >> try it.



--
J. Daniel Kulp
Principal Engineer, IONA
[hidden email]
http://www.dankulp.com/blog
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

Barry Fitzgerald
Hello,

I've had a similar problem before and I think you can fix it with a
prefer-web-inf-classes
element in your weblogic.xml. See here:
http://e-docs.bea.com/wls/docs92/webapp/weblogic_xml.html

To set this on a server wide basis see here:
http://e-docs.bea.com/wls/docs92/programming/classloading.html

Hope this helps,

Barry


On Jan 31, 2008 9:07 PM, Daniel Kulp <[hidden email]> wrote:

>
> FYI:  for 2.0.4, we specifically switched to the geronimo version as it
> does NOT have the QName class in it like the stax-api version that we
> used in 2.0.3 does.     Thus, the problem should be reduced.
>
> Dan
>
>
> On Thursday 31 January 2008, William Zhu wrote:
> > on CXF2.0.4, it's "geronimo-stax-api_1.0_spec-1.0.jar".
> >
> >
> >
> > chengas123 <[hidden email]> wrote:
> >
> > Haha. I would have realized that was the same .jar
> > The only one included in 2.0.4 is stax-utils-20060502.jar
> >
> > YI (William) ZHU wrote:
> > > actually, it's "stax-api-1.0.1.jar".
> > > (on CXF 2.0.2 and CXF 2.0.3)
> > >
> > >
> > >
> > > chengas123 wrote:
> > >
> > > I downloaded apache-cxf-2.0.4-incubator.tar.gz and could not find
> > > any file name stax-api.jar in the lib directory.
> > >
> > > YI (William) ZHU wrote:
> > >> stax-api jar file is in \{CXF-home}\lib
> > >>
> > >> unpackage it, you will find the javax.xml.namespace.QName class.
> > >>
> > >> delete it, and re-package the file.
> > >>
> > >> try it.
>
>
>
> --
> J. Daniel Kulp
> Principal Engineer, IONA
> [hidden email]
> http://www.dankulp.com/blog
>
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

chengas123
Hi,
I'm afraid I'm getting the QName issue again.  I have no idea as to what was different in the very short span of time I was not getting the error.  I do have the prefer-web-inf-classes set in my weblogic.xml file and I am using 2.0.4.  Any other ideas on how I could track down the source of the issues?

Thanks,
Ben


Barry Fitzgerald wrote
Hello,

I've had a similar problem before and I think you can fix it with a
prefer-web-inf-classes
element in your weblogic.xml. See here:
http://e-docs.bea.com/wls/docs92/webapp/weblogic_xml.html

To set this on a server wide basis see here:
http://e-docs.bea.com/wls/docs92/programming/classloading.html

Hope this helps,

Barry
Daniel Kulp wrote

On Jan 31, 2008 9:07 PM, Daniel Kulp <dkulp@apache.org> wrote:

>
> FYI:  for 2.0.4, we specifically switched to the geronimo version as it
> does NOT have the QName class in it like the stax-api version that we
> used in 2.0.3 does.     Thus, the problem should be reduced.
>
> Dan
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

Daniel Kulp
Administrator

It may be the xml-apis.jar.   I'm not sure why we have it in lib.  It
shouldn't be needed.   I'll try excluding it and seeing if things still
build.

Dan


On Thursday 07 February 2008, chengas123 wrote:

> Hi,
> I'm afraid I'm getting the QName issue again.  I have no idea as to
> what was different in the very short span of time I was not getting
> the error.  I do have the prefer-web-inf-classes set in my
> weblogic.xml file and I am using 2.0.4.  Any other ideas on how I
> could track down the source of the issues?
>
> Thanks,
> Ben
>
> Barry Fitzgerald wrote:
> > Hello,
> >
> > I've had a similar problem before and I think you can fix it with a
> > prefer-web-inf-classes
> > element in your weblogic.xml. See here:
> > http://e-docs.bea.com/wls/docs92/webapp/weblogic_xml.html
> >
> > To set this on a server wide basis see here:
> > http://e-docs.bea.com/wls/docs92/programming/classloading.html
> >
> > Hope this helps,
> >
> > Barry
>
> Daniel Kulp wrote:
> > On Jan 31, 2008 9:07 PM, Daniel Kulp <[hidden email]> wrote:
> >> FYI:  for 2.0.4, we specifically switched to the geronimo version
> >> as it does NOT have the QName class in it like the stax-api version
> >> that we used in 2.0.3 does.     Thus, the problem should be
> >> reduced.
> >>
> >> Dan



--
J. Daniel Kulp
Principal Engineer, IONA
[hidden email]
http://www.dankulp.com/blog
Reply | Threaded
Open this post in threaded view
|

Re: CXF on WebLogic 9.2

chengas123
Thanks for your suggestions.  I tracked down the problem and it turns out that geronimo-ws-metadeta_2.0_spec-1.1.1.jar was being put on the WebLogic classpath twice, which was causing the error.  

Thanks again,
Ben


dkulp wrote
It may be the xml-apis.jar.   I'm not sure why we have it in lib.  It
shouldn't be needed.   I'll try excluding it and seeing if things still
build.

Dan


On Thursday 07 February 2008, chengas123 wrote:
> Hi,
> I'm afraid I'm getting the QName issue again.  I have no idea as to
> what was different in the very short span of time I was not getting
> the error.  I do have the prefer-web-inf-classes set in my
> weblogic.xml file and I am using 2.0.4.  Any other ideas on how I
> could track down the source of the issues?
>
> Thanks,
> Ben
>
> Barry Fitzgerald wrote:
> > Hello,
> >
> > I've had a similar problem before and I think you can fix it with a
> > prefer-web-inf-classes
> > element in your weblogic.xml. See here:
> > http://e-docs.bea.com/wls/docs92/webapp/weblogic_xml.html
> >
> > To set this on a server wide basis see here:
> > http://e-docs.bea.com/wls/docs92/programming/classloading.html
> >
> > Hope this helps,
> >
> > Barry
>
> Daniel Kulp wrote:
> > On Jan 31, 2008 9:07 PM, Daniel Kulp <dkulp@apache.org> wrote:
> >> FYI:  for 2.0.4, we specifically switched to the geronimo version
> >> as it does NOT have the QName class in it like the stax-api version
> >> that we used in 2.0.3 does.     Thus, the problem should be
> >> reduced.
> >>
> >> Dan



--
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog