Specifications of deployment and lifecycle of JMX beans in a JEE server

Hello,
one colleague of mine is developping a service that uses an MBean to mimick a singleton (the MBean is not used for instrumentation or administration, it just holds a pool of shared non-standard resources) within a Glassfish server.
I fought this idea (as I found a static utility would be both straightforward and easy to implement), but I took it, from this forum in particular, that it is a recommended way to use an MBean to serve as a shared resource holder. Point taken (I'm not concerned with clustering yet, I mean it's OK if the singleton is not cluster-wide)
The problem is, my colleague warns that he witnesses "strange deployment behavior" with regard to the MBEan: in particular, it seems that the MBean is not unregistered upon EAR undeployment, and not redeployed upon EAR re-deployment. In particular updates to the MBean code (currently packaged within the EAR) require a server restart to take effect.
From what I understand, the MBean is registered in a JVM-wide registry (the MBean server), and its classs and instances have a different lifecycle from the EAR, which has (some sort of, obviously more complex in the details) class-loader scope.
I admit I'm making that up, from various observation -> my main problem is that I can't find an appserver-agnostic specification of the MBean lifecycle in a JEE environement. The EJB3 specification do not mention JMX (but as I understand it EJB3 alters none of the way JMX works).
There seems however to be a J2EE-specific way of handling MBean - presumably because the hot-deployment-without-JVM-restart expands the MBean lifecycle beyond the EAR lifecycle.
Could you point me to authoritative references on JMX used in JEE servers. In particular specification of the lifecycle and deployment is extremely welcome.
I'm sorry for asking pointers: my own web searches turn up non-specifying docs.
And if I search on JMX and Glassfish together, I find articles on either:
- how Glassfish uses JMX to implement a lot of stuff, but not how Glassfish implements "JMX lifecycle" (if that expression even means something).
- how to extend Glassfish's adminsitration capabilites writing custom MBeans
Thanks in advance,
J.

The location of the registration code is thus the key to all this. e.g If you register manually in some startup class, you can unload/load the required versions of the MBean code.That's what we do (using a RegistryServlet and init()/destroy() callbacks).
Sketchy description from what I understand of the developer's code: the init() indeed looks up the MBean and unregisters it if it exists, then registers it anew. Sometimes, the unregistering will fail (I haven't witnessed that), which triggered this topic.
We have to investigate it further (with more rigorous archiving and analysis of the error logs). I'll post updates if any.
If the MBeans are configured to be registered by the server itself (common) then the server would need to be restarted for the changes to be picked.OK. I have no idea how to configure where the MBeans are registered, time now to confess I have used JMX only in trivial cases so far.
It is my sincere hope that you won't need to use the techniques of chapter 8 of [this specification|http://java.sun.com/javase/6/docs/technotes/guides/jmx/JMX_1_4_specification.pdf] .
Indeed!
Probably my lack of JMX knowledge, but I have no idea what the "Mlet service" is in my scenario, and I suspect I won't want to know :o)
Overall this suggests that using JMX introduces unforeseen complexities, that may be overkill in our scenario (but I'm biased as I defended a couple of other alternatives).
Thanks for your help so far; I'm still looking for some document that would clarify how the JEE server, or how Glassfish specifically, handles MBean lifecycle.

Similar Messages

  • Issue with Deploying and calling a BPEL process on ALBPM enterprise server

    Hi,
    I am trying to put in place a POC using Aqualogic BEA products (using ALBPM 5.7, Enterprise Server 5.7, ALSB 2.6, Weblogic App server 9.2). My goal is to put in place a simple BPEL process (using ALBPM) which would call a webservice exposed through ALSB. This BPEL process is initiated by a wrapper BPMN process calling the BPEL process through fuego code.
    Though we are able to do the above on a standalone ALBPM studio, When we try to deploy the exported BPM project on the enterprise server and access it through the hiper workspace portal we are getting the following error in the BPM Process Administrator Log of the Engine.
    A component failed while executing activity '/Process#Default-1.0/Global' (BP-method Global). Details: The task could not be successfully executed. Reason: 'fuego.connector.ConnectorException: The configuration name [ProcessService] and type [Web Service] is not defined. Detail:The connector must be configured in the appropiate context. '. Caused by: The configuration name [ProcessService] and type [Web Service] is not defined. Detail:The connector must be configured in the appropiate context. fuego.lang.ComponentExecutionException: The task could not be successfully executed. Reason: 'fuego.connector.ConnectorException: The configuration name [ProcessService] and type [Web Service] is not defined. Detail:The connector must be configured in the appropiate context. '. at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:916) at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1068) at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:389) at fuego.server.execution.GlobalTaskExecution.invoke(GlobalTaskExecution.java:106) at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:481) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:655) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:616) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:442) at fuego.server.execution.GlobalTaskExecution.executeGlobalCIL(GlobalTaskExecution.java:164) at fuego.server.execution.GlobalTaskExecution.executeGlobalCIL(GlobalTaskExecution.java:142) at fuego.server.execution.Global.execute(Global.java:81) at fuego.server.AbstractProcessBean$38.execute(AbstractProcessBean.java:2496) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:290) at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:462) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:540) at fuego.transaction.TransactionAction.start(TransactionAction.java:213) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:117) at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66) at fuego.server.AbstractProcessBean.runGlobalActivity(AbstractProcessBean.java:2491) at fuego.ejbengine.EJBProcessControlAdapter.runGlobalActivity(EJBProcessControlAdapter.java:386) at fuego.ejbengine.EJBProcessControlAdapter_hu750h_EOImpl.runGlobalActivity(EJBProcessControlAdapter_hu750h_EOImpl.java:2877) at fuego.ejbengine.EJBProcessControlAdapter_hu750h_EOImpl_WLSkel.invoke(Unknown Source) at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:335) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252) at fuego.ejbengine.EJBProcessControlAdapter_hu750h_EOImpl_921_WLStub.runGlobalActivity(Unknown Source) 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 fuego.papi.impl.AbstractProcessControlHandler.invokeInternal(AbstractProcessControlHandler.java:48) at fuego.papi.impl.j2ee.EJBProcessControlHandler.doInvoke(EJBProcessControlHandler.java:111) at fuego.papi.impl.j2ee.EJBProcessControlHandler.invoke(EJBProcessControlHandler.java:66) at $Proxy77.runGlobalActivity(Unknown Source) 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 fuego.lang.JavaClass.invokeMethod(JavaClass.java:1478) at fuego.lang.JavaObject.invoke(JavaObject.java:185) at fuego.papi.impl.j2ee.EJBExecution.next(EJBExecution.java:200) at fuego.portal.wapi.InteractiveExecution.process(InteractiveExecution.java:157) at fuego.portal.wapi.WebInteractiveExecution.process(WebInteractiveExecution.java:54) at fuego.portal.wapi.InteractiveExecution.process(InteractiveExecution.java:200) at fuego.portal.servlet.ExecutionDispatcher.runGlobalActivity(ExecutionDispatcher.java:659) at fuego.portal.servlet.ExecutionDispatcher.processRequest(ExecutionDispatcher.java:144) at fuego.portal.servlet.ExecutionDispatcher.doPost(ExecutionDispatcher.java:105) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at fuego.portal.servlet.AuthenticatedWamServlet.service(AuthenticatedWamServlet.java:1049) at fuego.portal.servlet.SingleThreadPerSession.service(SingleThreadPerSession.java:73) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at fuego.servlet.multipart.BaseMultipartFilter.doFilter(BaseMultipartFilter.java:57) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3243) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2003) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) Caused by: fuego.connector.ConnectorException: The configuration name [ProcessService] and type [Web Service] is not defined. Detail:The connector must be configured in the appropiate context. at fuego.connector.ConnectorException.connectorNotFound(ConnectorException.java:55) at fuego.connector.ConnectorService.getConnectorInterface(ConnectorService.java:586) at fuego.connector.ConnectorTransaction.getConnectorInterface(ConnectorTransaction.java:618) at fuego.connector.ConnectorTransaction.getResource(ConnectorTransaction.java:254) at fuego.soaptype.WSConfiguration.getInstance(WSConfiguration.java:55) at fuego.soaptype.Endpoint.create(Endpoint.java:42) at fuego.soaptype.WebServiceInstantiator.instantiate(WebServiceInstantiator.java:58) at fuego.component.Component.instantiateDynamic(Component.java:123) at CapGemini.Process.Default_1_0.Instance.CIL_callBPEL(Instance.java:241) at CapGemini.Process.Default_1_0.Instance.CIL_callBPEL(Instance.java:307) 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 fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:907) ... 64 more
    Two things here that might help to understand the problem better :
    1) As I understand the error is due to some issue while calling the BPEL process from the Fuego code.
    The Fuego code which call's the BPEL from the BPMN process is as follows :
    helloResponse as String = "someoutput"
    helloRequest as String = "someinput"
    sessionid as String
    // Starting a Session.
    // In case you are testing this in the Studio,
    // the password must be the same as the user
    startSession BPELWSDL.ProcessServiceListenerWSDL.ProcessService
    using user = "test",
    password = "test"
    returning sessionid = result
    // createTest is the name of the operation
    // in the exposed process.
    // In this case the process "ExposedProcess"
    // has a web service operation
    // called "createTest" that is a "Process Creation" type
    // and uses the Begin activity's argument set
    callHello BPELWSDL.ProcessServiceListenerWSDL.ProcessService
    using sessionId = sessionid,
    arg1 = helloRequest
    returning helloResponse = result
    // Closing the session
    discardSession BPELWSDL.ProcessServiceListenerWSDL.ProcessService
    using sessionId = sessionid
    display "The BPEL's response : " + helloResponse
    2) Further, I had catalogued the BPEL's wsdl to the location http://localhost:9000/fuegoServices/ws/ProcessServiceListener?WSDL while running the same in Studio, but while deploying on the enterprise server , I made this point to http://localhost:7001/fuegoServices/ws/ProcessServiceListener?WSDL Is this correct ?
    Any thought on this issue would be appreciated.
    Regards
    Deepak

    Hi Deepak,
    We are also facing a similar problem, while accessing an external webservice from a BPM process.
    Were you able to resolve this issue.
    If so, Could you please let us know the procedure that you followed to resolve the issue.
    Thanks in Advance,
    Krishnaveni.

  • JMX Connectivity with the Adminstration Server - Weblogic 9.x

    When using the java naming provider url in Managed Server startup script, or in server start tab when using node manager, or loading it from properties file (for deployment) we see below JMX Warning message in Managed Server startup log saying JMX connectivity exception with Admin Server. This is BUG in Weblogic 9.x release and there is CR open on this issue.
    <May 19, 2009 10:35:25 AM EDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.149.181.55:20001
    for protocols iiop, t3, ldap, http.>
    <May 19, 2009 10:35:25 AM EDT> <Notice> <WebLogicServer> <BEA-000330> <Started WebLogic Managed Server "ManagedServer1_1
    " for domain "wls923_domain1" running in Production Mode>
    <May 19, 2009 10:35:25 AM EDT> <Notice> <Log Management> <BEA-170027> <The server initialized the domain log broadcaster
    successfully. Log messages will now be broadcasted to the domain log.>
    <May 19, 2009 10:35:25 AM EDT> <Warning> <JMX> <BEA-149509> <Unable to establish JMX Connectivity with the Adminstration
    Server AdminServer at service:jmx:t3://AdminServer:20000/jndi/weblogic.management.mbeanservers.domainruntime.
    java.io.IOException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'weblogic.management.m
    beanservers'
    at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:151)
    at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:79)
    at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:326)
    at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:247)
    at weblogic.management.mbeanservers.runtime.internal.RegisterWithDomainRuntimeService.getDomainMBeanServerConnec
    tion(RegisterWithDomainRuntimeService.java:199)
    Truncated. see log file for complete stacktrace
    javax.naming.NameNotFoundException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'weblog
    ic.management.mbeanservers'; remaining name 'domainruntime'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:171)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    Truncated. see log file for complete stacktrace
    >
    <May 19, 2009 10:35:26 AM EDT> <Notice> <Cluster> <BEA-000102> <Joining cluster Cluster1 on 239.192.23.2:7001>
    - - Tarun

    When using the java naming provider url in Managed Server startup script, or in server start tab when using node manager, or loading it from properties file (for deployment) we see below JMX Warning message in Managed Server startup log saying JMX connectivity exception with Admin Server. This is BUG in Weblogic 9.x release and there is CR open on this issue.
    <May 19, 2009 10:35:25 AM EDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.149.181.55:20001
    for protocols iiop, t3, ldap, http.>
    <May 19, 2009 10:35:25 AM EDT> <Notice> <WebLogicServer> <BEA-000330> <Started WebLogic Managed Server "ManagedServer1_1
    " for domain "wls923_domain1" running in Production Mode>
    <May 19, 2009 10:35:25 AM EDT> <Notice> <Log Management> <BEA-170027> <The server initialized the domain log broadcaster
    successfully. Log messages will now be broadcasted to the domain log.>
    <May 19, 2009 10:35:25 AM EDT> <Warning> <JMX> <BEA-149509> <Unable to establish JMX Connectivity with the Adminstration
    Server AdminServer at service:jmx:t3://AdminServer:20000/jndi/weblogic.management.mbeanservers.domainruntime.
    java.io.IOException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'weblogic.management.m
    beanservers'
    at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:151)
    at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:79)
    at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:326)
    at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:247)
    at weblogic.management.mbeanservers.runtime.internal.RegisterWithDomainRuntimeService.getDomainMBeanServerConnec
    tion(RegisterWithDomainRuntimeService.java:199)
    Truncated. see log file for complete stacktrace
    javax.naming.NameNotFoundException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'weblog
    ic.management.mbeanservers'; remaining name 'domainruntime'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:171)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    Truncated. see log file for complete stacktrace
    >
    <May 19, 2009 10:35:26 AM EDT> <Notice> <Cluster> <BEA-000102> <Joining cluster Cluster1 on 239.192.23.2:7001>
    - - Tarun

  • Lifecycle of a bean

    I am trying to understand the lifecycle of a bean to ensure any bean code I write does not get any threading problems. Let me explain.
    In my code I will use
    <jsp:usebean id="foo" class="MyClass" scope="page">
    I believe the server will maintain a PageContext object that will hold a pool of already instantiated MyClass objects. Will the PageContext getAttribute() method return a different object for each jsp that requires a bean of MyClass or will the server always return the same bean (as the scope has been set to page)? If the server returns the same bean the code must be re-entrant and I must not store state in the bean.
    How does this change for the other types of scope, "request", "session" and "application"?
    Thanks for any help.
    Paul

    I'll explain in relative terms. First off, the only time you would need to consider threading problems is when you use objects stored in the application scope. The only types of objects that should be stored in the application scope are objects that can be easily shared between requests, between threads, and between users. An exapmle of such objects would be something like a connection pool. This is considered the broadest scope. Below that is session scope.
    A session belongs to a particluar user. You should only store things here that belong to a particular user and will not comprimise the integrity of requests. Things like user name, or user specific hit-counters are appropriate. Object stored here are available only to request from a particular user so there are no threading issues.
    A step under session is request scope.Objects here are available only to the current request. This sheilds them from other threads which service concurrent requests. Under this you have page scope which is your narrowest scope. Objects here are available only within the context of the current page within the service method of the page. Since all actions in a JSP page are performed from within a single method (jsp_service) all variables declared here are shielded from thread issues.
    I hope this helps explain things some.
    Regards,
    Cliff

  • Error while deployment of  CMP 2.0 bean on weblogic 11g

    Hi,
    I am not able to deploy my CMP 2.0 bean on Weblogic 11g. There are two JVM available in weblogic 11g.
    1) Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
    2) Oracle JRockit(R) (build R28.1.1-14-139783-1.6.0_22-20101206-0241-windows-ia32, compiled mode)
    When we are using "Oracle JRockit(R) (build R28.1.1-14-139783-1.6.0_22-20101206-0241-windows-ia32, compiled mode)" And deploying the CMP bean then we got the Error as below:
    D:\Oracle\Middleware\wlserver_10.3\server\bin>java weblogic.appc -verbose C:\temp\Jproject.ear\DefinitionWizardBean.jar
    Created working directory: C:\DOCUME~1\cxp\LOCALS~1\Temp\1\appcgen_1309496813354_DefinitionWizardBean.jar
    <01-Jul-2011 06:06:57 o'clock BST> <Warning> <Munger> <BEA-2156203> <A version attribute was not found in element persis
    tence in the deployment descriptor in C:\temp\Jproject.ear\DefinitionWizardBean.jar/META-INF/weblogic-ejb-jar.xml. A vers
    ion attribute is required, but this version of the Weblogic Server will assume that the JEE5 is used. Future versions of
    the Weblogic Server will reject descriptors that do not specify the JEE version.>
    java.lang.NoClassDefFoundError: EntityBean
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
    at weblogic.ejb.container.deployer.BeanInfoImpl.loadClass(BeanInfoImpl.java:510)
    at weblogic.ejb.container.deployer.BeanInfoImpl.<init>(BeanInfoImpl.java:242)
    at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.<init>(ClientDrivenBeanInfoImpl.java:156)
    at weblogic.ejb.container.deployer.EntityBeanInfoImpl.<init>(EntityBeanInfoImpl.java:115)
    at weblogic.ejb.container.deployer.BeanInfoImpl.createBeanInfoImpl(BeanInfoImpl.java:695)
    at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:558)
    at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:236)
    at weblogic.ejb.container.ejbc.EJBCompiler.getStandAloneDeploymentInfo(EJBCompiler.java:1185)
    at weblogic.ejb.container.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:156)
    at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:439)
    at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)
    at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:316)
    at weblogic.application.compiler.EJBModule.compile(EJBModule.java:128)
    at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18)
    at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:36)
    at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:29)
    at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)
    at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)
    at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    at weblogic.application.compiler.Appc.runBody(Appc.java:203)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.application.compiler.Appc.main(Appc.java:262)
    at weblogic.appc.main(appc.java:14)
    EntityBean
    But I use JVM " Java(TM) SE Runtime Environment (build 1.6.0_22-b04) " and deploying CMP bean then i got error as below:
    D:\Oracle\Middleware\wlserver_10.3\server\bin>d:\Oracle\Middleware\jdk160_21\bin\java weblogic.appc -verbose C:\temp\Tr
    ading.ear\DefinitionWizardBean.jar
    Created working directory: C:\DOCUME~1\cxp\LOCALS~1\Temp\1\appcgen_1309496852057_DefinitionWizardBean.jar
    <01-Jul-2011 06:07:35 o'clock BST> <Warning> <Munger> <BEA-2156203> <A version attribute was not found in element persis
    tence in the deployment descriptor in C:\temp\Jproject.ear\DefinitionWizardBean.jar/META-INF/weblogic-ejb-jar.xml. A vers
    ion attribute is required, but this version of the Weblogic Server will assume that the JEE5 is used. Future versions of
    the Weblogic Server will reject descriptors that do not specify the JEE version.>
    java.lang.ClassNotFoundException: EntityBean
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
    at weblogic.ejb.container.deployer.BeanInfoImpl.loadClass(BeanInfoImpl.java:510)
    at weblogic.ejb.container.deployer.BeanInfoImpl.<init>(BeanInfoImpl.java:242)
    at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.<init>(ClientDrivenBeanInfoImpl.java:156)
    at weblogic.ejb.container.deployer.EntityBeanInfoImpl.<init>(EntityBeanInfoImpl.java:115)
    at weblogic.ejb.container.deployer.BeanInfoImpl.createBeanInfoImpl(BeanInfoImpl.java:695)
    at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:558)
    at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:236)
    at weblogic.ejb.container.ejbc.EJBCompiler.getStandAloneDeploymentInfo(EJBCompiler.java:1185)
    at weblogic.ejb.container.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:156)
    at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:439)
    at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)
    at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:316)
    at weblogic.application.compiler.EJBModule.compile(EJBModule.java:128)
    at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18)
    at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:36)
    at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:29)
    at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)
    at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)
    at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    at weblogic.application.compiler.Appc.runBody(Appc.java:203)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.application.compiler.Appc.main(Appc.java:262)
    at weblogic.appc.main(appc.java:14)
    EntityBean
    Please assist me regarding above error
    Thanks,
    Amritesh
    Edited by: 869636 on 01-Jul-2011 00:49

    What is the jee version you have on that server? are the environment variables correctly set?

  • Deploying a WebApp using JMX

              IHAC who has the following problem while deploying a webapp in 6.1. I am including
              her description of the problem.
              Thanks in advance.
              i'm still playing around with deploying to the 6.1 beta wl server using the api
              calls. Although the
              following code executes, it makes the server crash when attempting to add the
              target MBean to the WebAppComponent...
              TargetMBean targetMBean = (TargetMBean)home.getMBean(managedSrv,
              "Server", domain);
              ApplicationMBean appMBean = (ApplicationMBean) home.findOrCreateAdminMBean(
              appNm, "Application", domain);
              appMBean.setPath(path);
              WebAppComponentMBean webappBean =
              (WebAppComponentMBean)home.createAdminMBean
              ( webAppNm,"WebAppComponent", domain, ppMBean);
              webappBean.setURI(warFile);
              if (targetMBean.isRegistered()){
              System.out.println("target is registered. Type is: " + targetMBean.getType());
              webappBean.addTarget(targetMBean);
              .. when the call to webappBean.addTarget(targetMBean) is made, the server console
              shows this error...
              java.lang.NullPointerException
              at java.io.File.<init>(File.java:180)
              at weblogic.management.mbeans.custom.Application.findInputStream(Application.java:1708)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:587)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:319)
              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:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy9.findInputStream(Unknown Source)
              at weblogic.management.mbeans.custom.Application.findInputStream(Application.java:1701)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:587)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:319)
              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:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy42.findInputStream(Unknown Source)
              at weblogic.management.configuration.ApplicationMBean_CachingStub.findInputStream(ApplicationMBean_CachingStub.java:694)
              at weblogic.j2ee.Application.retrieveEar(Application.java:425)
              at weblogic.j2ee.Application.<init>(Application.java:119)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:110)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
              at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:587)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:319)
              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:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy40.addWebDeployment(Unknown Source)
              at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1066)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:587)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:319)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:443)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:321)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:944)
              at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:931)
              at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:916)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:591)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:319)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown
              Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:266)
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:233)
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              javax.management.MBeanException
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:323)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:944)
              at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:931)
              at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:916)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:591)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:319)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown
              Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:266)
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:233)
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              This code attempts to deploy a war from a remote directory.
              The code in the war file is mostly the security web app sample in the wl examples
              directory roled into a war archive. this war deploys and runs ok using the console
              ("manually").
              If all the code is allowed run - crashing the server - then, after restarting
              the server
              (if the console was running), the deployment entries are in the config.xml and
              the
              'mirrored' copy of the war file shows up in the .wlnotdelete directory - from
              which it runs successfully.
              i'd appreciate any insight on what might be going on or whether the code is correct
              useage
              for deployment.
              

              IHAC who has the following problem while deploying a webapp in 6.1. I am including
              her description of the problem.
              Thanks in advance.
              i'm still playing around with deploying to the 6.1 beta wl server using the api
              calls. Although the
              following code executes, it makes the server crash when attempting to add the
              target MBean to the WebAppComponent...
              TargetMBean targetMBean = (TargetMBean)home.getMBean(managedSrv,
              "Server", domain);
              ApplicationMBean appMBean = (ApplicationMBean) home.findOrCreateAdminMBean(
              appNm, "Application", domain);
              appMBean.setPath(path);
              WebAppComponentMBean webappBean =
              (WebAppComponentMBean)home.createAdminMBean
              ( webAppNm,"WebAppComponent", domain, ppMBean);
              webappBean.setURI(warFile);
              if (targetMBean.isRegistered()){
              System.out.println("target is registered. Type is: " + targetMBean.getType());
              webappBean.addTarget(targetMBean);
              .. when the call to webappBean.addTarget(targetMBean) is made, the server console
              shows this error...
              java.lang.NullPointerException
              at java.io.File.<init>(File.java:180)
              at weblogic.management.mbeans.custom.Application.findInputStream(Application.java:1708)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:587)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:319)
              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:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy9.findInputStream(Unknown Source)
              at weblogic.management.mbeans.custom.Application.findInputStream(Application.java:1701)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:587)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:319)
              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:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy42.findInputStream(Unknown Source)
              at weblogic.management.configuration.ApplicationMBean_CachingStub.findInputStream(ApplicationMBean_CachingStub.java:694)
              at weblogic.j2ee.Application.retrieveEar(Application.java:425)
              at weblogic.j2ee.Application.<init>(Application.java:119)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:110)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
              at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:587)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:319)
              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:437)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy40.addWebDeployment(Unknown Source)
              at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1066)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:587)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:319)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:443)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:321)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:944)
              at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:931)
              at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:916)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:591)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:319)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown
              Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:266)
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:233)
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              javax.management.MBeanException
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:323)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:944)
              at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:931)
              at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:916)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:591)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:319)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown
              Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:266)
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:233)
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              This code attempts to deploy a war from a remote directory.
              The code in the war file is mostly the security web app sample in the wl examples
              directory roled into a war archive. this war deploys and runs ok using the console
              ("manually").
              If all the code is allowed run - crashing the server - then, after restarting
              the server
              (if the console was running), the deployment entries are in the config.xml and
              the
              'mirrored' copy of the war file shows up in the .wlnotdelete directory - from
              which it runs successfully.
              i'd appreciate any insight on what might be going on or whether the code is correct
              useage
              for deployment.
              

  • Newbie: orion-application.xml in both deployment and applications dirs

    Okay,
    I am using OAS 10.1.2.2 and have deployed an OC4J instance with a web application. The web application that I deployed (from a .war file) was installed normally but for some reason I have an orion-application.xml file in both the +/application-deployments/webappname/+ and the +/applications/webappname/META-INF/+ directories. They look almost identical with the differences noted below:
    applications directory version:
    This file has a complete definition for the jazn provider but is missing a reference to the principals.xml file.
    jazn section looks like this:
         <jazn provider="LDAP" location="ldap://ldap.server.edu:389">
              <property name="ldap.user" value="cn=username" />
              <property name="ldap.password" value="!password" />
              <property name="ldap.cache.session.enable" value="false"/>
              <property name="ldap.cache.realm.enable" value="false"/>
              <property name="ldap.cache.policy.enable" value="false"/>
              <property name="jaas.username.simple" value="true" />
              <jazn-web-app auth-method="SSO"/>
         </jazn>
    application-deployments directory version:
    It points to a principals.xml file and gives a generic definition for the jazn provider (specifies provider="LDAP" and a default-realm but no location attribute in the jazn tag).
    jazn section looks like this:
         <jazn provider="LDAP" default-realm="whidbey1">
              <jazn-web-app auth-method="SSO"/>
              <property name="jaas.username.simple" value="true" />
         </jazn>
    I assume the one defined in the +/applications/webappname/META-INF+ is the proper one since it has all the detailed OID connection information. However, are both needed? If so, why? If not, which one is being used and why would there be two of them?
    I've checked all the documentation and have found several references to it being installed in one or the other place but not both.
    Any help you can provide would be much appreciated.

    Hi,
    The difference between these files is this:
    The one in the applications/ tree is the one that comes packaged in your ear file. This is a way to package your deployment preferences. At deployment time, enterprise manager extracts this file to configure your deployment.
    The one in the application-deployments directory is the one that is actually in use.
    LDAP connection from OC4J containers is specified on the container level, because this is container-level security. This means that using the enterprise manager, you configure your container to connect to the LDAP (enterprise manager, tab administration, item Identity Management). In the orion-application.xml, you no longer need the details because they are stored on container level. So these are removed when deploying your application, leaving only what you see.
    The configuration parameters you specify can be added as container startup parameters using -Dparam=value.
    Regards,
    Jeroen van Veldhuizen

  • Error deploying entity bean on web logic server

    i am trying to deploy a container managed persistence entity bean on web logic server when i run the command ejbc which generates the final jar file ready to deploy having its stub and skeleton it gives me the error that the return type of create(int) method should have a type of bean home interface while in accordance with ejb1.1 specicication it should be the type of primary key and a null value should be returned.
    plz let me know where i am doing it wrong.

    thanks for ur quick response sir i am using this services provided by sun microsystem first time and
    am really thankful to Sun Microsystem for this great deal of help to the new commers but sir my problem is still there.
    following is the method which i have written in the code
         public InvoicePK ejbCreate(int id)
              this.id=id;
              return null;
    and here it is the error generated by the server deployment tool.
    [9.2.8] In EJB Invoice, the return type for the create method create(int) must be the bean's remote interface type.
    [9.2.8] In EJB Invoice, the findByPrimaryKey method must return the Entity bean's remote interface type.
    [9.2.8] In EJB Invoice, the return type for the method findByPrimaryKey(com.swi.InvoicePK) must be the entity bean's remote interface type (for a single-object finder) or a collection thereof (for a mult-object finder).
    the detail of files created by me are as follows.
    1. Invoice (Entity Bean)
    2. InvoicePK (Primary Key file)
    3. MyRemoteInterface (remote interface for entity bean)
    4. MyHomeInterface (home interface for entity bean)
    plz let me know where i am doing wrong and oblige.

  • EJB Deploy and XMLDocument

    Hi,
    when I try to deploy a session bean (stateless) on Oracle8i 8.1.7 using jDeveloper 3.2.2 i have the following message:
    error: loadJava has failed to load some classes; Please check trace file!
    *** Errors occurred while deploying the EJB to 8i JVM ***
    *** Deployment completed ***
    The instruction that generate error is
    dbf = DocumentBuilderFactory.newInstance
    Can you help me?
    Thank you.
    Marco
    Session Bean:
    public class PresenzeEJBBean implements SessionBean
    public PresenzeEJBBean()
    public void ejbCreate() throws CreateException
    // TODO: Add custom implementation.
    public void ejbActivate()
    public void ejbPassivate()
    public void ejbRemove()
    public void setSessionContext(SessionContext ctx)
    public java.lang.String getPresenze(String p_user, String p_data_ini, String p_data_end) throws SQLException,RemoteException
    java.lang.String ls_ret
    // Documento XML
    org.w3c.dom.Document l_XMLDocument = null;
    // Nodo
    org.w3c.dom.Node lRootNode = null;
    DocumentBuilderFactory dbf;
    dbf = DocumentBuilderFactory.newInstance
    return ls_ret;

    You can't in 7.0. All the EJBs are loaded in the same classloader.
    -- Rob
    Manikyala wrote:
    Hi,
    I have ejb jars inside an ear. I want to deploye and undeploy individually each ejb from the ear. How to do it in weblogic7.0.
    Thanks
    Manikyala

  • Read the version of deployed EAR modules via JMX (WLS 10.0)

    Hello
    We are deploying some EAR components into a WLS 10.0. Now we want to monitor the version number of the deployed EARs via a JMX client. The version number is provided in the manifest of the EAR (Implementation-Version).
    I read through some JMX related documents by BEA and searched the web, but I could not find any information on how to read the version.
    Does anybody know how to do that or where to look in order to get the version numbers of the deployed components via JMX? Do I have to write my own MBean offering this version attribute?
    Every hint is welcomed!
    Thanks
    Toni
    Edited by: user10451156 on Oct 21, 2008 10:53 AM

    Hi, Toni.
    The input must be a externally provided version number, if you have no access to write manifest entries, or to the deployment process.
    If this version number is already set in the ear file, you can use this process inside your custom mbean (an elaboration of Benoit's suggestion)
    1 look up the application component from JMX
    * http://edocs.bea.com/wls/docs100/wlsmbeanref/mbeans/AppDeploymentMBean.html
    2 obtain the path of the ear file
    3 open a JarURLConnection to this ear
    * http://java.sun.com/javase/6/docs/api/java/net/JarURLConnection.html
    4 read the implementation version, which was already provided.
    * http://java.sun.com/javase/6/docs/api/java/util/jar/Attributes.Name.html#IMPLEMENTATION_VERSION
    Sadly, this won't pop-up on the WLS console, you'd have to write or use a custom extension to do that.
    * https://wls-console-extensions.projects.dev2dev.bea.com/
    I hope this helps.
    -Adrian

  • Deployment and .ear files

    I have two questions; one may relate to the other.
    First, I would like to know the best way to deploy Session beans which have dependencies on other EJBs, be they Entity Beans or other Session Beans. The dependency is limited to the implementation class, not the interfaces. I have tried just putting all my EJBs in the classpath in startWebLogic.sh, but I get the "bean cannot be redeployed while the server is running" warning. Is there another way?
    Second, I have read of .ear files, which seem to be a good way of dealing with many EJBs/JSPs en masse(I'm working with ~100 EJBs and ~2000 JSPs). However, I haven't found anything on exactly what they are, how to use them, or how to generate them.
    If anyone has these answers, or can point me to a good site on the matter, I'd appreciate it.
    Thanks, --Tom Seufert

    Hi Tom,
    The "best" way to generate EAR files is to use an IDE that has built-in
    tools to do it -OR- to use ANT (kind of an xml-based gnu-make-like utility
    for Java).
    Most dev groups that I've seen start by using .sh/.cmd (i.e. batch) files to
    generate the JAR/WAR/EAR files. ANT allows you to do things like
    dependency-based builds, to avoid re-generating parts that are not
    necessary. That was very handy with WL 5.1 when EJBC could take several
    minutes (even running locally with a fast compiler like JIKES). (I have
    only used ANT a tiny bit, but Jesse Tilly who frequents this newsgroup is an
    expert with it.)
    The EAR is just a means to bundle different parts of your application
    together. For example, your EJBs will be bundled into a JAR, and your JSPs
    will be bundled into a WAR, and you can put both into an EAR. WL6.0 will
    accept an EAR file for deployment, will auto-deploy, and will even re-deploy
    it if the EAR changes!
    The easiest way to build a JAR or WAR or EAR file within a batch or build
    file is to use the JAR command. If you have a directory structure that is
    exactly how the JAR file will be layed out, then I believe the command is
    "jar -cfm0 my.jar *" or "jar -cfm0 my.jar .".
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    +1.617.623.5782
    WebLogic Consulting Available
    "Tom Seufert" <[email protected]> wrote in message
    news:[email protected]...
    >
    >
    I have two questions; one may relate to the other.
    First, I would like to know the best way to deploy Session beans whichhave dependencies on other EJBs, be they Entity Beans or other Session
    Beans. The dependency is limited to the implementation class, not the
    interfaces. I have tried just putting all my EJBs in the classpath in
    startWebLogic.sh, but I get the "bean cannot be redeployed while the server
    is running" warning. Is there another way?
    >
    Second, I have read of .ear files, which seem to be a good way of dealingwith many EJBs/JSPs en masse(I'm working with ~100 EJBs and ~2000 JSPs).
    However, I haven't found anything on exactly what they are, how to use them,
    or how to generate them.
    >
    If anyone has these answers, or can point me to a good site on the matter,I'd appreciate it.
    >
    Thanks, --Tom Seufert

  • How to deploy and run JDev 3.1 App using physical 3-tier Architecure

    We have developed a business application in JDev using 3-tier approach. There is a business component project and a separate client application project in our workspace.
    Now we want to deploy these projects on separate machines to take full advantage of physical 3-tier architecture. We want to go for thin clients to minimize deployment and maintainance issues. Please post your valueable comments or guidelines.

    Your physical three tier options for deploying a Java thin-client using JDeveloper 3.1 against Oracle 8.1.7 is just one, deploying your application module as a Visibroker using our Visibroker CORBA support. In this scenario, your thin-client DAC application (together with the thin-client BC4J library) talk to the application module over IIOP.
    If you were running JDev 3.2.2, you would have the additional three options available:[list]
    [*]Deploy your application module as an EJB session bean in Oracle8i 8.1.7. In this scenario, your thin-client DAC application talks to the application module running inside the database over RMI-over-IIOP (as prescribed by EJB).
    [*]Deploy your application module as a CORBA server in Oracle8i 8.1.7. In this scenario, your thin-client DAC application talks to the application module running inside the database over Oracle's session-based IIOP.
    [*]Deploy your application module as an EJB session bean in WebLogics. RMI-over-IIOP is the thin-client-to-middle-tier protocol.
    [list]

  • How to deploy and run ejb

    I am new to jboss.How to deploy ejb in jboss and what is the configuration structure for jboss.
    Thanks in advance,
    Bala

    Once you have a ejb jar, copy it to $JBOSS_HOME/server/default/deploy, and it will be automatically deployed and started. You can then access the bean from stand alone java applications, servlet/jsp, aplication client, etc.

  • Deployment and IIOP connection

    Hi All
    I've been trying to deploy a very simple set of EJBs to Oracle 9IAS but i can't set up the IIOP connection in JDeveloper to deploy my beans - i keep getting Unknown Service error thrown by Connection exeception
    I specify username and password for my database, host id is the name of the machine running Apache and Oracle 9ias(Oracle 8.1.6 database resides on a different machine), SID for my database and port is 2481
    Can anyone help me out here or give me a link to the page that contains information on how to set up IIOP connection???
    Thanks in advance

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mario Korf ([email protected]):
    ======================================
    How To: CORBA Hello World
    ======================================
    This How To topic steps through how to create, deploy, and run a simple "Hello World" CORBA server object using JDeveloper. This topic is organized by the following tasks:
    Creating a CORBA project
    Creating a CORBA interface
    Adding a method to the interface
    Generating CORBA server classes
    Renaming the example server class
    Implementing server methods
    Adding more methods
    Deploying a the CORBA Server
    Creating a CORBA client
    Testing the CORBA server
    <HR></BLOCKQUOTE>
    null

  • Deployment and modelsupport.seq

    I use a customized process model in my design.  I'm building the deployment, and I tell the deployment to get the process model and put it into a certain \user folder.  This model, like the default sequential model, references ModelSupport.seq, ModelSupport2.dll, reportgen_xml.seq.  I did not modify these files at all.  Do I have to somehow point to these files in the deployment.  All of those files are already installed on the target machine.

    Hello Mr. Bean,
    By default, NI's process models store code module path as a relative path.  So, the path to the ModelSupport2.dll is stored as ModelSupport2.dll instead of C:\Program Files\National Instruments\TestStand 4.0\Components\NI\Models\TestStandModels\ModelSupport2.dll.  TestStand finds this file by appending the relative path name to all of the search directories until it finds a file.  If your target computer has the default search directory of C:\Program Files\National Instruments\TestStand 4.0\Components\NI\ enabled to search through all sub-directories (which it should), then your custom process model should not have a problem locating ModelSupport2.dll and all of the other model support components.
    You can also deploy your search directories by including <TestStand>\cfg\TestExec.ini in your workspace (and then in your deployment), as your search directories are stored in TestExec.ini.
    Also, "TestStand 4.0" can be replaced with "TestStand <version>" for the above paths.  I hope this helps!
    Best Regards,
    Software Engineer
    Jett R

Maybe you are looking for

  • Mid-2009 13" Macbook Pro HD Upgrade...

    Hello- Been looking around here and found many suggestions but wanted to specifically ask before purchasing, so... Mid-2009, Macbook Pro, 13".  Want to upgrade the HD to 1TB.  Suggestions on RPM's 5400 vs. 7200?  Also... when I check my current hard

  • VPN users can't connect to a Site-To-Site branch office

    I have an asa 5510 that allows people to VPN into it. they get a private IP address of 10.1.4.x when they connect. All of my sites (subnets) that are on my MPLS network were always accessible from a vpn connection. these include the subnets 192.168.0

  • How to Receive ALEAUD as acknowledgment in ccBPM  ?

    Hi I'm trying to Receive ALEAUD IDOC  as Acknowledgement in ccBPM . I refered to the concepts from the blog (/people/mitesh.parekh/blog/2008/12/01/receiving-aleaud-as-acknowledgment-in-ccbpm)where i have the Message ID which entered into BPM but not

  • Calculating Bandwidth

    How to calculate total bandwidth utilization of a circuit if i have In and Out data rate? Is there any formula?

  • How can I reinstall Office 2003, factory installed on my Sat P10-504?

    Hi, Somehow I have removed Microsoft Office 2003 and all of it's contents which were factory installed on my Satellite P10-504. Does anyone know how i can reinstall Microsoft Office 2003 Suite? I have 2 product recovery disks and 1 tools and utilitie