Deploy ear file on weblogic 10g

I encoded a project in java ee. using java ee version 6. When I try to deploy my ear file in weblogic 10g, I get the following error:

How can i achieve this? How can I deploy the file correctly?

Unable to access the selected application. AppMerge thread progression exception AppMerge thread progression exception [J2EE: 160161] Error parsing application descriptors for 1BB.ear: weblogic.descriptor.DescriptorException: Unmarshaller failed to execute weblogic.descriptor.internal.MarshallerFactory $ 1.createDescriptor. Marshaller 152) in weblogic.descriptor.BasicDescriptorManager.createDescriptor (BasicDescriptorManager.java:306) in weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader (AbstractDescriptorLoader2.java:788criptreorcriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptesorrecriptcriptreor ) in weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan (AbstractDescriptorLoader2.java:759) in weblogic.application.descriptor.AbstractDescriptorLoader2 .loadDescriptorBean (AbstractDescriptorLoader2.java:768) in weblogic.application.ApplicationDescriptor.getWeblogicApplicationDescriptor (ApplicationDescriptor.javahaps39) in weblogic.application.compiler.CompilerCtx.setApplicationDescriptor (Compilerctx.px.px.pps.pps.ps.pps.ps. setDDs (AppcUtils.java:142) in weblogic.application.compiler.flow.DescriptorParsingFlow.compile (DescriptorParsingFlow.java:57) in weblogic.application.compiler.FlowDriver $ FlowStateChange.next (FlowDriver.java:69) in weblogic.application .utils.StateMachineDriver.nextState (StateMachineDriver.java:37) at weblogic.application.compiler.FlowDriver.nextState (FlowDriver.java:36) at weblogic.application.compiler.FlowDriver $ CompilerFlowDriver.compile (FlowDriver.java: weblogic.application.compiler.ReadOnlyEarMerger.merge (ReadOnlyEarMerger.java:49) at weblogic.application.compiler.flow.AppMergerFlow.mergeInput (AppMergerFlow.java:94) in weblogic.appli cation.compiler.flow.AppMergerFlow.compile (AppMergerFlow.java:47) in weblogic.application.compiler.FlowDriver $ FlowStateChange.next (FlowDriver.java:69) in weblogic.application.utils.StateMachineDriver.nextState (StateMachineDri 37) at weblogic.application.compiler.FlowDriver.nextState (FlowDriver.java:36) at weblogic.application.compiler.FlowDriver $ CompilerFlowDriver.compile (FlowDriver.java:96) at weblogic.application.compiler.AppMerge.runBody (AppMerge .java: 157) in weblogic.utils.compiler.Tool.run (Tool.java:158) in weblogic.utils.compiler.Tool.run (Tool.java:115) in weblogic.application.compiler.AppMerge.merge ( AppMerge.java:169) in weblogic.deploy.api.internal.utils.AppMerger.merge (AppMerger.java:88) in weblogic.deploy.api.internal.utils.AppMerger.getMergedApp (AppMerger.java:63) in weblogic .deploy.api.model.internal.WebLogicDeployableObjectFactoryImpl.createDeployableObject (WebLogicDeployableObjectFactoryImpl.java:181) in weblogic.d eploy.api.model.internal.WebLogicDeployableObjectFactoryImpl.createLazyDeployableObject (WebLogicDeployableObjectFactoryImpl.java:156) in weblogic.deploy.api.tools.SessionHelper.inspect (SessionHelper.. console Flow $ 2. : 461) at sun.reflect.GeneratedMethodAccessor1036.invoke (Unknown source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) in java.lang.reflect.Method.invoke (Method.javaracle97) apache.beehive.netui.pageflow.FlowController.invokeActionMethod (FlowController.java:870) at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward (FlowController.java:809) at org.apache.beehive.netui.pageflow. FlowController.internalExecute (FlowController.java: 478) at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute (PageFlowController.java:306) at org.apache.beehive.netui.pageflow.FlowController.execute (FlowController.javahaps36) at org.apache.beehive .netui.pageflow.internal.FlowControllerAction.execute (FlowControllerAction.java:52) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProcessor.java-00-0031) in org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.aage $ 201 (PageFlowRequestProcessor.java:97) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor $ ActionRunner.execute (PageFlowRequestProcessor.java:2044) at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionerINT WrapActionInterceptorChain.continueChain (ActionInterceptors.java:64) at org.apache.beehive.netui.pageflow.interceptor.action.ActionInterceptor.wrapAction (ActionInterceptor.java:184) at org.apache.beehive.netui.pageflow.interceptor.action. internal.ActionInte rceptors $ WrapActionInterceptorChain.invoke (ActionInterceptors.java:50) at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors $ WrapActionInterceptorChain.continueChain (ActionInterceptors.java:58) on org.apache.bee. pageflow.interceptor.action.internal.ActionInterceptors.wrapAction (ActionInterceptors.java:87) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform (PageFlowRequestProcessor.java:2116) at com.bea.consolePerstage.consolePrefestal. processActionPerform (ConsolePageFlowRequestProcessor.java:255) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:236) at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal (PageFloworgquava .apache.beehive.netui.pageflow.PageFlowRequestProcessor.process (PageFlowRequestProcessor.java:853) at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.proces s (AutoRegisterActionServlet.java:631) at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process (PageFlowActionServlet.java:158) at com.bea.console.internal.ConsoleActionServlet.process (ConsoleActionServlet.java25 .apache.struts.action.ActionServlet.doGet (ActionServlet.javarige14) on com.bea.console.internal.ConsoleActionServlet.doGet (ConsoleActionServlet.java:133) on org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLook (PageFlowUtils.java:1199) at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction (ScopedContentCommonSupport.java:686) at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.processActionConternalal ( com.bea.portlet.adapter.scopedcontent.PageFlowStubImpl.processAction (PageFlowStubImpl.java:106) at com.bea.portlet.adapter.NetuiActionHandler.raiseScopedAction (NetuiActionHandler.java:111) at com.bea.netuixservlets.contlets.cont conten t.NetuiContent.raiseScopedAction (NetuiContent.java:181) at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction (NetuiContent.java:167) at com.bea.netuix.servlets.controls.content.NetuiContent. handlePostbackData (NetuiContent.java:225) at com.bea.netuix.nf.ControlLifecycle $ 2.visit (ControlLifecycle.java:180) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java:324) at com. bea.netuix. java: 334) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.javahaps34) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.javahaps34) at com.bea.netuix.nf .ControlTreeWalker.walkRecursive (ControlTreeWalker.javahaps34) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTr eeWalker.javahaps34) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.javahaps34) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.javahaps34) at com.bea.netuix .nf. ) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.javahaps34) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.javahaps34) at com.bea.netuix.nf.ControlTreeWalker. walkRecursive (ControlTreeWalker.javahaps34) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.javahaps34) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.javahaps34) at com.bea .netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.javahaps34) at com.bea.netuix.nf.ControlTreeWalker.wal kRecursive (ControlTreeWalker.javahaps34) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.javahaps34) at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.javahaps34) at com.bea .netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.javahaps34) at com.bea.netuix.nf.ControlTreeWalker.walk (ControlTreeWalker.java:130) at com.bea.netuix.nf.Lifecycle.processLifecycles (Lifecycle.java : 395) on com.bea.netuix.nf.Lifecycle.processLifecycles (Lifecycle.javaId61) on com.bea.netuix.nf.Lifecycle.processLifecycles (Lifecycle.java opin52) at com.bea.netuix.nf. Lifecycle.runInbound (Lifecycle.java:184) at com.bea.netuix.nf.Lifecycle.run (Lifecycle.java:159) at com.bea.netuix.servlets.manager.UIServlet.runLifecycle (UIServlet.javahaps88) at com.bea.netuix.servlets.manager.UIServlet.doPost (UIServlet.java:258) at com.bea.netuix.servlets.manager.UIServlet.service (UIServlet.java:199) at com.bea.netuix.servlets .manager. SingleFileServlet.service (SingleFileServlet.java:251) in javax.servlet.http.HttpServlet.service (HttpServlet.java:820) on com.bea.console.utils.MBeanUtilsInitSingleFileServlet.service (MBeanUjilsilsititervitServletInitletInitletInitletInitletInitletInitletInitletitle .AsyncInitServlet.service (AsyncInitServlet.java:130) on weblogic.servlet.internal.StubSecurityHelper $ ServletServiceAction.run (StubSecurityHelper.java:227) in weblogic.servlet.internal.StubSecurityHelperhel.veleoke.ve servlet.internal.ServletStubImpl.execute (ServletStubImpl.java:292) in weblogic.servlet.internal.TailFilter.doFilter (TailFilter.java:26) in weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.logava) .servlet.internal.RequestEventsFilter.doFilter (RequestEventsFilter.java:27) in weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:42) in weblogic.servlet.internal.WebAppServletContext $ Servletvocation ction.run (WebAppServletContext.javahaps496) in weblogic.security.acl.internal.AuthenticatedSubject.doAs (AuthenticatedSubject.java:321) in weblogic.security.service.SecurityManager.runAs (Unknown source) in weblogic.servlet.internal. WebAppServletContext.securedExecute (WebAppServletContext.java:2180) in weblogic.servlet.internal.WebAppServletContext.execute (WebAppServletContext.java:2086) in weblogic.servlet.internal.ServletRequestImpl.jun.vunvv Serv .execute (ExecuteThread.java:201) in weblogic.work.ExecuteThread.run (ExecuteThread.java:173) Raised: com.bea.xml.XmlException: could not load the java type corresponding to e = weblogic-application @ http: / /xmlns.oracle.com/weblogic/weblogic-application at com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType (UnmarshalResult.javahaps61) at com.bea.staxb.runtime.internal.UnmarshalResu lt. 307) at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument (UnmarshalResult.java:158) at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal (UnmarshallerImpl.java:65) at webloginverndesdesor .MarshallerFactory $ 1.createDescriptor (MarshallerFactory.java:141) ... another 119.

here is my weblogic-application.xml file:

<?xml version="1.0" encoding="UTF-8"?> <weblogic-application xmlns="http://xmlns.oracle.com/weblogic/weblogic-application" 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/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.0/weblogic-application.xsd"/> 
+4
source share
3 answers

Try adding 3 files to the EAR:

1) META-INF \ application.xml

 <?xml version="1.0" encoding="ASCII"?> <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5"> <display-name>My App</display-name> <module> <ejb>appEJB.jar</ejb> </module> <module> <web> <web-uri>app.war</web-uri> <context-root>app</context-root> </web> </module> </application> 

2) META-INF \ weblogic-application.xml

 <?xml version="1.0" encoding="UTF-8"?> <wls:weblogic-application xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-application" 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/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.0/weblogic-application.xsd"> <!--weblogic-version:10.3.2--> <wls:application-param> <wls:param-name>webapp.encoding.default</wls:param-name> <wls:param-value>UTF-8</wls:param-value> </wls:application-param> </wls:weblogic-application> 

3) META-INF \ MANIFEST.MF

 Manifest-Version: 1.0 Class-Path: Weblogic-Application-Version: 1.0 
0
source

This error is possible in two cases:

  • The web.xml file is corrupt.
  • Any configuration is missing from the web.xml file.
  • The web application tag may not be correctly defined, depending on your project.

In my case, the error occurs on the first point.

0
source

Try saving web.xml @WebContent instead of WEB-INF (if so). This solved my problem.

0
source

All Articles