Hello,

I have to  test a   Ent - Java Bean  using cactus. I have the following 
classes in the directory structure.
And I do NOTwant to use ANT but manually make a   "xxx. jar"    or a " 
xxx.war  " file and deploy it 
thru console manually.

If I do that, the jar file is not getting deployed Itb throws exception 
as:

java.lang.NullPointerException
                 at 
weblogic.management.internal.MBeanProxy.getAttribute(MBeanProxy.java:253)
                 at 
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:187)
                 at $Proxy60.isDeployed(Unknown Source)
                 at 
weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:744)
                 at 
weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
                 at java.lang.reflect.Method.invoke(Native Method)
                 at 
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
                 at 
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
                 at 
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
                 at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
                 at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
                 at 
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
                 at 
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
                 at $Proxy5.update(Unknown Source)
                 at 
weblogic.management.console.webapp._domain.__upload_app._jspService(__upload_app.java:149)
                 at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
                 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
                 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
                 at 
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:241)
                 at 
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
                 at 
weblogic.management.console.actions.ForwardAction.perform(ForwardAction.java:35)
                 at 
weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
                 at 
weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
                 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
                 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
                 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
                 at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
                 at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
                 at 
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
                 at 
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)



MY DIRECTORY STRUCTURE STTRUCTURE IS AS BELOW
-------------------------------------------------------------------------------------------------------------------------------------------------
d:\mysample\  META-INF\    EJB-JAR.XML
d:\mysample\  META-INF\   weblogic-ejb-jar.xml
d:\mysample\   META-INF\  manifest.mf

d:\mysample\ WEB-INF \ classes\examples\ejb\basic\statelessSession\ " all 
class files "  (of a BEAN ) 
 d:\mysample\ WEB-INF \ classes\examples\ejb\basic\statelessSession\  " 
TestXXxXX . class " files
                       NOTE : examples\ejb\basic\statelessSession\   IS 
THE PACKAGE NAME


 d:\mysample\ WEB-INF\classes\  CACTUS . PROPERTIES 
 d:\mysample\ WEB-INF\classes\   LOG_SERVER .PROPERTIES 

d:\mysample\ WEB-INF\lib\  *. jars  (aspectjrt, cactus,log4j, junit)

-------------------------------------------------------------------------------------------------------------------------------------------------
PL. tell me if this directory structure is  correct   or   is three some 
error in it . 
 There  are    no steps reg. how the directory structure should be for   " 
deploying 
beans in  Weblogic"













Reply via email to