Need help regarding deployment of an ear file using Weblogic
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ronak_parekh
Posted On:   Wednesday, August 14, 2002 04:23 PM

I have put my files in this format: myapp/META-INF/application.xml myapp/myejb.jar myapp/myejb.war myapp/webapp/WEB-INF/classes/mywebclass files myapp/webapp/WEB-INF/weblogic.xml myapp/webapp/WEB-INF/web.xml myapp/myejb/META-INF/ejb-jar.xml myapp/myejb/META-INF/weblogic-ejb-jar.xml myapp/myejb/..*.class my application.xml looks like: <?xml version="1.0"?> Software Application software.war software.war software.jar my web.xml looks like:    More>>

I have put my files in this format:

myapp/META-INF/application.xml
myapp/myejb.jar
myapp/myejb.war
myapp/webapp/WEB-INF/classes/mywebclass files
myapp/webapp/WEB-INF/weblogic.xml
myapp/webapp/WEB-INF/web.xml

myapp/myejb/META-INF/ejb-jar.xml
myapp/myejb/META-INF/weblogic-ejb-jar.xml
myapp/myejb/..*.class

my application.xml looks like:



<?xml version="1.0"?>










Software Application





software.war

software.war








software.jar







my web.xml looks like:

<?xml version="1.0" ?>










Reference EJB resources in Weblogic Resources


GangsterEJB

Gangster

com.software.builder.business_component.GangsterHome

com.software.builder.business_component.Gangster

com.software.builder.business_component.GangsterBean










index.jsp








my weblogic.xml looks like:


"http://www.bea.com/servers/wls700/dtd/weblogic-web-jar.dtd">





Web Application to test








GangsterEJB

GangsterEJB









my ejb-jar.xml looks like:



<?xml version="1.0" encoding="UTF-8"?>



"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd">





Business Component CMP 2.0






Gangster Entity Bean

GangsterEJB


com.software.builder.business_component.GangsterHome

com.software.builder.business_component.Gangster

com.software.builder.business_component.GangsterBean


Container

False

2.x

gangster


java.lang.Integer

iD


iD

name

nickname

badness











Required



GangsterEJB

*






my weblogic-ejb-jar.xml looks like:



<?xml version="1.0"?>



"-//BEA Systems, Inc.//DTD Weblogic 7.0.0 EJB//EN"
"http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd" >








GangsterEJB








Weblogic_CMP_RDBMS

7.0



META-INF/weblogic-cmp-rdbms.xml







Weblogic_CMP_RDBMS

7.0








GangsterEJB







When I deply the app.ear file consisting of:


software.war

software.jar

application.xml


I get the following error:


java.lang.NullPointerException

at
weblogic.management.console.utils.MBeans.getMBeanClassFor(MBeans.java:1138)

at weblogic.management.console.actions.internal.ActionUtils.getAreaFor(ActionUtils.java:154)
at
weblogic.management.console.actions.mbean.MBeanDescriptorFramesetAction.perform(MBeanDescriptorFramesetAction.java:133)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
--------------- nested within: ------------------
weblogic.utils.NestedRuntimeException - with nested exception:
[java.lang.NullPointerException]
at weblogic.management.console.utils.MBeans.getMBeanClassFor(MBeans.java:1140)
at weblogic.management.console.actions.internal.ActionUtils.getAreaFor(ActionUtils.java:154)
at weblogic.management.console.actions.mbean.MBeanDescriptorFramesetAction.perform(MBeanDescriptorFramesetAction.java:133)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
--------------- nested within: ------------------
weblogic.management.console.actions.ActionException - with nested exception:
[weblogic.utils.NestedRuntimeException - with nested exception:
[java.lang.NullPointerException]]
at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:38)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:190)
at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

I do not understand the reason for these errors.

Ronak

   <<Less

Re: Need help regarding deployment of an ear file using Weblogic

Posted By:   jolly_prasad  
Posted On:   Thursday, August 29, 2002 12:29 AM

First try to find out which module of your application is creating a problem.

e.g
step1--deploy your ejb seperately

step2--deploy ur war file

if it gets deployed successfully then aftre undeploying both again deploy the entire ear file.

also i think weblogic 7 has a tool to assemble the application.Try opening the application from there.u should be able to trace it if there is some problem in the descriptor before deployment

all the best
About | Sitemap | Contact