• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

WebLogic 9.0 deploy time error

 
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I have created a war file portal.war and i have created .ear out of this. The Jdk I am using is 1.5.

Now, when I try to deploy in WLS_9.0 beta, it gives me the error:
<Jun 2, 2005 4:49:32 PM GMT+05:30> <Error> <HTTP> <BEA-101064> <[WebAppModule(pe
oplesoft.ear:/PORTAL)] Error parsing descriptor in Web appplication "C:\bea_wls9
0\weblogic90b\samples\domains\wl_server\.\examplesServer\stage\peoplesoft.ear\pe
oplesoft.ear\PORTAL.war"
weblogic.application.ModuleException: Unmarshaller failed
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.ja
va:726)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:255)

at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
leListenerInvoker.java:81)
at weblogic.application.internal.flow.ModuleCallbackWrapper.prepare(Modu
leCallbackWrapper.java:113)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
oymentCallbackFlow.java:331)
Truncated. see log file for complete stacktrace
weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j
2ee.descriptor.MimeMappingBeanImpl@1c36a4b(/MimeMappings[ram])"
at weblogic.descriptor.internal.AbstractDescriptorBean._checkNoDuplicate
(AbstractDescriptorBean.java:701)
at weblogic.j2ee.descriptor.WebAppBeanImpl.setMimeMappings(WebAppBeanImp
l.java:1548)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
Truncated. see log file for complete stacktrace
>
<Jun 2, 2005 4:49:32 PM GMT+05:30> <Warning> <Deployer> <BEA-149004> <Failures w
ere detected while initiating distribute task for application peoplesoft.ear.>
<Jun 2, 2005 4:49:33 PM GMT+05:30> <Error> <J2EE Deployment SPI> <BEA-260062> <F
ailed distribute operation: weblogic.descriptor.BeanAlreadyExistsException: Bean
already exists: "weblogic.j2ee.descriptor.MimeMappingBeanImpl@1c36a4b(/MimeMapp
ings[ram])">
<Jun 2, 2005 4:50:19 PM GMT+05:30> <Error> <HTTP> <BEA-101064> <[WebAppModule(pe
oplesoft.ear:/PORTAL)] Error parsing descriptor in Web appplication "C:\bea_wls9
0\weblogic90b\samples\domains\wl_server\.\examplesServer\stage\peoplesoft.ear\pe
oplesoft.ear\PORTAL.war"
weblogic.application.ModuleException: Unmarshaller failed
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.ja
va:726)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:255)

at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
leListenerInvoker.java:81)
at weblogic.application.internal.flow.ModuleCallbackWrapper.prepare(Modu
leCallbackWrapper.java:113)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
oymentCallbackFlow.java:331)
Truncated. see log file for complete stacktrace
weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j
2ee.descriptor.MimeMappingBeanImpl@313495(/MimeMappings[ram])"
at weblogic.descriptor.internal.AbstractDescriptorBean._checkNoDuplicate
(AbstractDescriptorBean.java:701)
at weblogic.j2ee.descriptor.WebAppBeanImpl.setMimeMappings(WebAppBeanImp
l.java:1548)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
Truncated. see log file for complete stacktrace
>
<Jun 2, 2005 4:50:19 PM GMT+05:30> <Warning> <Deployer> <BEA-149004> <Failures w
ere detected while initiating activate task for application peoplesoft.ear.>



Thanks,
Guru
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got a similar problems when using weblogic-application.xml
then I notice that I forgot to put
<!DOCTYPE weblogic-application PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic Application 8.1.0//EN'
'http://www.bea.com/servers/wls810/dtd/weblogic-application_2_0.dtd'>
at the beginning of my weblogic-application.xml file
maybe you should verify that all your .xml bea files are correct
cheers
Julien
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Gurumurthy Ramamurthy wrote:Guys,

I have created a war file portal.war and i have created .ear out of this. The Jdk I am using is 1.5.

Now, when I try to deploy in WLS_9.0 beta, it gives me the error:
<Jun 2, 2005 4:49:32 PM GMT+05:30> <Error> <HTTP> <BEA-101064> <[WebAppModule(pe
oplesoft.ear:/PORTAL)] Error parsing descriptor in Web appplication "C:\bea_wls9
0\weblogic90b\samples\domains\wl_server\.\examplesServer\stage\peoplesoft.ear\pe
oplesoft.ear\PORTAL.war"
weblogic.application.ModuleException: Unmarshaller failed
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.ja
va:726)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:255)

at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
leListenerInvoker.java:81)
at weblogic.application.internal.flow.ModuleCallbackWrapper.prepare(Modu
leCallbackWrapper.java:113)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
oymentCallbackFlow.java:331)
Truncated. see log file for complete stacktrace
weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j
2ee.descriptor.MimeMappingBeanImpl@1c36a4b(/MimeMappings[ram])"
at weblogic.descriptor.internal.AbstractDescriptorBean._checkNoDuplicate
(AbstractDescriptorBean.java:701)
at weblogic.j2ee.descriptor.WebAppBeanImpl.setMimeMappings(WebAppBeanImp
l.java:1548)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
Truncated. see log file for complete stacktrace
>
<Jun 2, 2005 4:49:32 PM GMT+05:30> <Warning> <Deployer> <BEA-149004> <Failures w
ere detected while initiating distribute task for application peoplesoft.ear.>
<Jun 2, 2005 4:49:33 PM GMT+05:30> <Error> <J2EE Deployment SPI> <BEA-260062> <F
ailed distribute operation: weblogic.descriptor.BeanAlreadyExistsException: Bean
already exists: "weblogic.j2ee.descriptor.MimeMappingBeanImpl@1c36a4b(/MimeMapp
ings[ram])">
<Jun 2, 2005 4:50:19 PM GMT+05:30> <Error> <HTTP> <BEA-101064> <[WebAppModule(pe
oplesoft.ear:/PORTAL)] Error parsing descriptor in Web appplication "C:\bea_wls9
0\weblogic90b\samples\domains\wl_server\.\examplesServer\stage\peoplesoft.ear\pe
oplesoft.ear\PORTAL.war"
weblogic.application.ModuleException: Unmarshaller failed
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.ja
va:726)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:255)

at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
leListenerInvoker.java:81)
at weblogic.application.internal.flow.ModuleCallbackWrapper.prepare(Modu
leCallbackWrapper.java:113)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
oymentCallbackFlow.java:331)
Truncated. see log file for complete stacktrace
weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j
2ee.descriptor.MimeMappingBeanImpl@313495(/MimeMappings[ram])"
at weblogic.descriptor.internal.AbstractDescriptorBean._checkNoDuplicate
(AbstractDescriptorBean.java:701)
at weblogic.j2ee.descriptor.WebAppBeanImpl.setMimeMappings(WebAppBeanImp
l.java:1548)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
Truncated. see log file for complete stacktrace
>
<Jun 2, 2005 4:50:19 PM GMT+05:30> <Warning> <Deployer> <BEA-149004> <Failures w
ere detected while initiating activate task for application peoplesoft.ear.>



Thanks,
Guru





I just found this error weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.MimeMappingBeanImpl@1c36a4b(/MimeMappings[ram])"
It occurs because there are duplicate elements in "weblogic.xml", as example

<web-app>
<display-name>HPTPACWEB</display-name>
<mime-mapping>
<extension>jar</extension>
<mime-type>application/x-java-archive</mime-type>

</mime-mapping>
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jar</extension>
<mime-type>application/x-java-archive</mime-type>

</mime-mapping>
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
</web-app>
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I've had a similar deployment error along the lines of "Bean already exists" with WLS 10.3.2.

Caused By: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.ModuleBeanImpl@6ebd942a(/Modules[ERPHWF_EJB.jar])"
at weblogic.descriptor.internal.ReferenceManager.registerBean(ReferenceManager.java:227)
at weblogic.j2ee.descriptor.ApplicationBeanImpl.setModules(ApplicationBeanImpl.java:427)
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:597)

This is appearing in auto-generated deployment descriptors down in:
<project>\.metadata\.plugins\org.eclipse.core.resources\.projects\<appname>\beadep\<domainname>\<appname>\META-INF\application.xml

There is a duplicate entry being generated in there, eg.:

<?xml version="1.0" encoding="UTF-8"?>
<application id="Application_ID" version="5" xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">;
<module>
<ejb>APPNAME_EJB.jar</ejb>
</module>
<module>
<web>
<web-uri>APPNAMEWebServices.war</web-uri>
<context-root>APPNAMEWebServices</context-root>
</web>
</module>
<module>
<ejb>APPNAME_EJB.jar</ejb>
</module>
<module>
<web>
<web-uri>APPNAMEWebServices.war</web-uri>
<context-root>APPNAMEWebServices</context-root>
</web>
</module>

</application>

Since this is a generated class (by OEPE in Eclipse?) there is no easy way to remove the duplicate.
Anyone seen this problem before? Anyhow know how to solve this?

Cheers,
Paul.
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be its a bug ? Try asking the folks at Oracle about it. File a bog with them if they acknowledge
 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic