SNMP- WLS81SP1 ejb*RuntimeTable not working

We have several EJB's as part of EAR file.
When SNMP Agent is enabled we are able to query every Runtime Table
except EJB***Runtime Tables.
For example:
java snmpwalk -c public@lbs localhost .1.3.6.1.4.1.140.625.190.1
(JDBCPoolRuntime)
gives appropriate results.
But
java snmpwalk -c public@lbs 144.111.12.126 .1.3.6.1.4.1.140.625.170.1
(EJBStatelessHomeRuntime) returns with no output.
Every runtime table related to EJB gives no results.
Is this a bug with 81SP1? This used to work fine with 6.1SP4
Thanks In Advance,
Kumar.

Satya,
When I use Weblogic.Admin to query MBeans, I get "No MBeans found" for
all the stateless session beans and MDB's that are part of my ear file.
I am able to invoke these stateless session beans and MDB's are
processing messages.
Also I am able to see my web application that are part of same EAR
file when I query on type WebAppComponentRuntime.
Why are EJBMessageDrivenRuntime and EJBStatelessHomeRuntime not visible
that are part of same ear?
Thanks,
Kumar.
Satya Ghattu wrote:
Kumar,
I just tried for EJBPoolRuntime and it worked with out any problem.
Could you make sure that you have EJBStatalessHomeRuntime mbeans in your
server. You can do that through
java weblogic.Admin -username xxx -password xxx -url t3://localhost:7001
get -type EJBStatelessHomeRuntime -pretty
Thanks,
-satya
C:\satya\managed\managed1>java snmpwalk -c public@myserver localhost
.1.3.6.1.4.1.140.625.161.1.5 (EJBPoolRuntime)
Object ID:
.1.3.6.1.4.1.140.625.161.1.5.32.52.56.102.48.99.57.54.49.56.54.57.53.52.97.100.99.50.100.53.56.51.54.99.102.49.52.53.99
.57.54.48.100
STRING:
EJBPoolRuntime:myserver__appsdir_ejb_basic_beanManaged_jar_ejb_basic_beanManaged_beanManaged
Kumar Mettu wrote:
We have several EJB's as part of EAR file.
When SNMP Agent is enabled we are able to query every Runtime Table
except EJB***Runtime Tables.
For example:
java snmpwalk -c public@lbs localhost .1.3.6.1.4.1.140.625.190.1
(JDBCPoolRuntime)
gives appropriate results.
But
java snmpwalk -c public@lbs 144.111.12.126 .1.3.6.1.4.1.140.625.170.1
(EJBStatelessHomeRuntime) returns with no output.
Every runtime table related to EJB gives no results.
Is this a bug with 81SP1? This used to work fine with 6.1SP4
Thanks In Advance,
Kumar.

Similar Messages

  • Ejb-link not working when i access ejb in different ear

    Hi All
    I am here trying to access ejb's which is in different ear, I am providing ejb-link inside web.xml of war file deployed inside deffirent ear file.
    I am using wls8.1sp5. I tried different combination with elb-link name , but its not working . <ejb-ref>
    <ejb-ref-name>ejb/AuditService</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.onstar.audit.ejb.AuditServiceHome</home>
    <remote>com.onstar.audit.ejb.AuditService</remote>
    <ejb-link>ccarenewal.jar#AuditService</ejb-link>
    </ejb-ref>
    <ejb-ref>
         <ejb-ref-name>ejb/AccountService</ejb-ref-name>
         <ejb-ref-type>Session</ejb-ref-type>
         <home>com.onstar.account.ejb.AccountServiceHome</home>
         <remote>com.onstar.account.ejb.AccountService</remote>
         <ejb-link>ccarenewal.jar#AccountService</ejb-link>
         </ejb-ref>
    Exception:weblogic.management.ApplicationException: activate failed for sbwo Module: sbwo Error: weblogic.management.DeploymentException: Could not setup environment - with nested exception: [weblogic.deployment.EnvironmentException: [J2EE:160101]Error: The ejb-link 'ccarenewal.jar#AuditService' declared in the ejb-ref or ejb-local-ref 'ejb/AuditService' in the application module 'accountadj.war' could not be resolved. The target EJB for the ejb-ref could not be found. Please ensure the link is correct.] weblogic.deployment.EnvironmentException: [J2EE:160101]Error: The ejb-link 'ccarenewal.jar#AuditService' declared in the ejb-ref or ejb-local-ref 'ejb/AuditService' in the application module 'accountadj.war' could not be resolved. The target EJB for the ejb-ref could not be found. Please ensure the link is correct. at weblogic.deployment.EnvironmentBuilder.addEJBLinkRef(EnvironmentBuilder.java:658) at weblogic.deployment.EnvironmentBuilder.addEJBReferences(EnvironmentBuilder.java:467) at weblogic.servlet.internal.CompEnv.init(CompEnv.java:123) at weblogic.servlet.internal.WebAppServletContext.activate
    I will appreciate any help.
    Rajiv

    Rob,
    Thanks for your reply.
    Below is all deployment descriptor entries i have(ejb-jar.xml, weblogic-ejb-jar.xml, web.xml, weblogic.xml)
    please correct me if i have wrong entries any where.
    ejb-jar.xml
    ejb-ref>
    <description />
    <ejb-ref-name>ejb/AccountService</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.onstar.account.ejb.AccountServiceHome</home>
    <remote>com.onstar.account.ejb.AccountService</remote>
    <ejb-link>AccountService</ejb-link>
    </ejb-ref>
    weblogic-ejb-jar.xml
    <ejb-reference-description>
    <ejb-ref-name>ejb/AccountService</ejb-ref-name>
    <jndi-name>cca/AccountService</jndi-name>
    </ejb-reference-description>
    web.xml
    <ejb-ref>
    <ejb-ref-name>ejb/AccountService</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.onstar.account.ejb.AccountServiceHome</home>
    <remote>com.onstar.account.ejb.AccountService</remote>
    <ejb-link>ccarenewal.jar#AccountService</ejb-link>
    </ejb-ref>
    weblogic.xml
    <ejb-reference-description>
    <ejb-ref-name>ejb/AccountService</ejb-ref-name>
    <jndi-name>cca/AccountService</jndi-name>
    </ejb-reference-description>
    I appreciate your help.
    Thanks
    Rajiv

  • Re: EJB Control not working with methods that contain arguments

    John,
    I'm not qualified to answer your EJB control question, but before you
    become too disillusioned with page flows I'd like to mention that the
    request scoped data form and and the return-to="page" issues you
    mentioned have been addressed for the next service pack. We've
    introduced the ability to specify a page flow scoped form bean which
    lives for the life of the page flow, and we've clarified the return-to
    values to include both "currentPage" and "previousPage" which should
    clarify the expected behavior.
    I hope you give it a try.
    Thomas
    John Hundley wrote:
    Oh well guess you guys gave up on this one. Thats ok, I have utilized a workaround
    that forgoes your non working controls just like I have workarounds for your dataforms
    that do not maintain their data between pages, your retrun to page that does not
    work etc.... At this rate I should have just used struts and JBoss.
    "John Hundley" <[email protected]> wrote:
    oop's attached the wrong one here is the right one.
    "John Hundley" <[email protected]> wrote:
    Ok I have attached one of my beans.
    "Anurag" <[email protected]> wrote:
    John,
    For a stateless session bean, the ejbCreate() method is called for
    every
    individual method call. This is because the bean instance is returned
    to the
    pool after every method call, it does not hold any state.
    I am still surprised about the behaviour you are seeing.
    Can you just attach your stateless session bean. You need not sendthe
    dependent files, since we only want to sniff the call made to the stateless
    EJB method, and are not concerned with the implementation.
    Regards,
    Anurag
    "John Hundley" <[email protected]> wrote in message
    news:[email protected]...
    Anurag,
    I am using the GA release. My control looks identicle toTraderEJBControl.jcx
    except of course it is extending a different home and bean interface.The
    bean
    itself does not exacly match the traderbean but it does look very
    similar
    to MusicBean.java
    in the tutorialsApp. One thing that has me a bit confused is the
    fact
    the
    create()
    method is being called every time I make a method call on the control.Shouldn't
    the bean only be created once at the first method call and persistfor the
    life
    of the session?
    John
    "Anurag" <[email protected]> wrote:
    John,
    Have you tried running the ejbControl/TraderEJBClient.jws in SamplesApp.
    It
    does involve calling methods on the stateless EJB TraderEJB through
    an
    EJB
    control, which accept parameters and run fine.
    Could you also confirm that you are using the 8.1 GA release, andnot
    the
    beta.
    Regards,
    Anurag
    "John Hundley" <[email protected]> wrote in message
    news:[email protected]...
    Raj,
    I cannot attach them here. I am not sure how you would test them
    anyway
    as I
    would have to send you my Oracle schema and you would have to
    set
    up
    a
    database
    instance. There is no way I can do that. If you could please
    send
    me an
    e-mail
    I can attach the relevant files in reply and you could take a
    look
    at them
    and
    see if you see any obvious problems.
    Thanks,
    John
    "Raj Alagumalai" <[email protected]> wrote:
    John,
    Can you attach the ejb jar, the jcx and the jws files that you
    have
    created.
    I will test and get back to you.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "John Hundley" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I have created an EJB control on a stateless session bean.
    For
    some
    reason when
    I attempt to call a method on my control that takes any number
    of
    arguments I
    get a java.lang.IllegalArgumentException yet if I call a method
    that
    takes
    no
    arguments everything works fine. I used the debugger to walk
    through
    the
    code
    and have discovered that every time I call any method on the
    control
    the
    create()
    method gets called, this is exactly where the error is occurring.It is
    almost
    like the control is trying to pass my method args to the create()
    method
    instead
    of the method I am calling. I have tested all of the methods
    in
    the
    ejb
    by manually
    coding everything (getInitialContext ejb.create etc) in a .jsp
    and
    calling
    all
    of the methods within that .jsp. There they all work fine
    so
    I
    am
    pretty
    sure
    the control is doing something funky. Any ideas as to what
    is
    going
    on
    and how
    I can fix it?
    Thanks,
    John

    Was this issue ever resolved ? We are running into the same problem.
    The last response is "I'm not qualified to answer your EJB control question."
    Can this be escalated to someone who can please ?
    Regards
    Shahriar

  • EJB Control not working with methods that contain arguments

    Hi,
    I have created an EJB control on a stateless session bean. For some reason when
    I attempt to call a method on my control that takes any number of arguments I
    get a java.lang.IllegalArgumentException yet if I call a method that takes no
    arguments everything works fine. I used the debugger to walk through the code
    and have discovered that every time I call any method on the control the create()
    method gets called, this is exactly where the error is occurring. It is almost
    like the control is trying to pass my method args to the create() method instead
    of the method I am calling. I have tested all of the methods in the ejb by manually
    coding everything (getInitialContext ejb.create etc) in a .jsp and calling all
    of the methods within that .jsp. There they all work fine so I am pretty sure
    the control is doing something funky. Any ideas as to what is going on and how
    I can fix it?
    Thanks,
    John

    Oh well guess you guys gave up on this one. Thats ok, I have utilized a workaround
    that forgoes your non working controls just like I have workarounds for your dataforms
    that do not maintain their data between pages, your retrun to page that does not
    work etc.... At this rate I should have just used struts and JBoss.
    "John Hundley" <[email protected]> wrote:
    >
    >
    >
    oop's attached the wrong one here is the right one.
    "John Hundley" <[email protected]> wrote:
    Ok I have attached one of my beans.
    "Anurag" <[email protected]> wrote:
    John,
    For a stateless session bean, the ejbCreate() method is called for
    every
    individual method call. This is because the bean instance is returned
    to the
    pool after every method call, it does not hold any state.
    I am still surprised about the behaviour you are seeing.
    Can you just attach your stateless session bean. You need not sendthe
    dependent files, since we only want to sniff the call made to the stateless
    EJB method, and are not concerned with the implementation.
    Regards,
    Anurag
    "John Hundley" <[email protected]> wrote in message
    news:[email protected]...
    Anurag,
    I am using the GA release. My control looks identicle toTraderEJBControl.jcx
    except of course it is extending a different home and bean interface.The
    bean
    itself does not exacly match the traderbean but it does look very
    similar
    to MusicBean.java
    in the tutorialsApp. One thing that has me a bit confused is the
    fact
    the
    create()
    method is being called every time I make a method call on the control.Shouldn't
    the bean only be created once at the first method call and persistfor the
    life
    of the session?
    John
    "Anurag" <[email protected]> wrote:
    John,
    Have you tried running the ejbControl/TraderEJBClient.jws in SamplesApp.
    It
    does involve calling methods on the stateless EJB TraderEJB through
    an
    EJB
    control, which accept parameters and run fine.
    Could you also confirm that you are using the 8.1 GA release, andnot
    the
    beta.
    Regards,
    Anurag
    "John Hundley" <[email protected]> wrote in message
    news:[email protected]...
    Raj,
    I cannot attach them here. I am not sure how you would test them
    anyway
    as I
    would have to send you my Oracle schema and you would have to
    set
    up
    a
    database
    instance. There is no way I can do that. If you could please
    send
    me an
    e-mail
    I can attach the relevant files in reply and you could take a
    look
    at them
    and
    see if you see any obvious problems.
    Thanks,
    John
    "Raj Alagumalai" <[email protected]> wrote:
    John,
    Can you attach the ejb jar, the jcx and the jws files that you
    have
    created.
    I will test and get back to you.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "John Hundley" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I have created an EJB control on a stateless session bean.
    For
    some
    reason when
    I attempt to call a method on my control that takes any number
    of
    arguments I
    get a java.lang.IllegalArgumentException yet if I call a method
    that
    takes
    no
    arguments everything works fine. I used the debugger to walk
    through
    the
    code
    and have discovered that every time I call any method on the
    control
    the
    create()
    method gets called, this is exactly where the error is occurring.It is
    almost
    like the control is trying to pass my method args to the create()
    method
    instead
    of the method I am calling. I have tested all of the methods
    in
    the
    ejb
    by manually
    coding everything (getInitialContext ejb.create etc) in a .jsp
    and
    calling
    all
    of the methods within that .jsp. There they all work fine
    so
    I
    am
    pretty
    sure
    the control is doing something funky. Any ideas as to what
    is
    going
    on
    and how
    I can fix it?
    Thanks,
    John

  • EJB injection not working for a Jersey class

    I have a standard EJB3.0 bean defined as follows:
    @Stateless
    @Local(CustomerService.class)
    public class CustomerBean implements CustomerService
    I can successfully reference that EJB using dependency injection from a servlet with the following code:
    public class CustomerServlet extends HttpServlet {
    @EJB(beanName="CustomerBean")
    private CustomerService customerService;
    public void doGet(...) {
    CustomerVO customer = customerService.getCustomerById(id);
    However the same code will not work from a Jersey RESTful service class
    @Path("/{customer}")
    public class CustomerREST {
    @EJB(beanName="CustomerBean")
    private CustomerService customerService;
    @GET
    @Produces("text/plain")
    public String getCustomer(@PathParam("customer") String customerId) {
    CustomerVO customer = customerService.getCustomerById(customerId);
    The Jersey RESTful service class will get executed but throws a NullPointerException because the customerService entity is null.
    The CustomerServlet and the CustomerREST classes are both in the same WebApp, inside an EAR with the EJB.
    They are even in the same package!
    I would appreciate any help.

    Congratulations. You've hit the major limitation of JEE-based dependency injection. You can only inject resources into servlets, filters, listeners, and tag handlers. This is why people eventually move to Spring if they really need dependency injection in non-JEE components.
    You can read the WebLogic manual pages related to this at [http://download.oracle.com/docs/cd/E12840_01/wls/docs103/pdf/webapp.pdf] . Read chapter 8, "WebLogic Annotation for Web Components".

  • SNMP in Cat os not working

    SNMP is enabled in Cat os sup-720 in 8.4(5). No response for the SNMP server poll and no traps are forwarded to SNMP server. Any one experienced this kind of issue can throw some light on this.
    Find the configuration and ‘sh snmp’ output
    set snmp community read-only ********
    set snmp community read-write ********
    set snmp community read-write ********
    set snmp trap enable module
    set snmp trap enable chassis
    set snmp trap enable bridge
    set snmp trap enable vtp
    set snmp trap enable vlancreate
    set snmp trap enable vlandelete
    set snmp trap enable auth
    set snmp trap enable entityfru
    set snmp trap enable ippermit
    set snmp trap enable sysinfolog
    set snmp trap enable vmps
    set snmp trap enable entity
    set snmp trap enable config
    set snmp trap enable stpx inconsistency
    set snmp trap enable stpx loopinconsistency
    set snmp trap enable stpx rootinconsistency
    set snmp trap enable syslog
    set snmp trap enable system
    set snmp trap enable envfan
    set snmp trap enable envshutdown
    set snmp trap enable envpower
    set snmp trap enable envtemp
    set snmp trap enable envstate
    set snmp trap enable flashinsert
    set snmp trap enable flashremove
    set snmp trap enable callhomesmtp
    set snmp trap enable macnotification
    set snmp trap enable macthreshold
    set snmp trap enable macmove
    set snmp trap enable linkerrlow
    set snmp trap enable linkerrhigh
    set snmp trap enable l2tunnel
    set snmp trap enable redundancy
    Console> (enable) sh snmp
    SNMP: Enabled
    RMON: Disabled
    Extended RMON Netflow Enabled : None.
    Memory usage limit for new RMON entries: 85 percent
    EngineId: 00:00:00:09:00:13:5f:20:03:00:00:00
    Chassis Alias:
    Traps Enabled: auth,autoshutdown,callhomesmtp,chassis,config,entity,entityfru,
    envfan,envpower,envshutdown,envstate,envtemp,flashinsert,flashremove,
    inconsistency,ippermit,l2tunnel,linkerrhigh,linkerrlow,loopinconsistency,
    macmove,macnotification,macthreshold,module,newroot,port,redundancy,
    rootinconsistency,syslog,sysinfolog,system,topochange,vlancreate,vlandelete,
    vmps,vtp
    Port Traps Enabled: 1/1-2,2/1-24
    Module inlinepower traps enabled: None
    Community-Access Community-String
    read-only XXXXX
    read-write XXXXX
    read-write-all XXXXX
    Additional- Access-
    Community-String Access-Type Number View
    Trap and Inform receivers:
    Address Community String Port Owner Version Type Index
    Console> (enable)

    Thank you for the thought. You are right we have equivalent command “set snmp targetaddr” but it didn’t work. My priority is not to receive trap I should be able to read the MIB’s by polling with the community string. Which in my case is not happening? Is there any limitation? My SNMP server says ‘please set the community string in the host’ where in I have enabled snmp service and configured string.

  • JavaEE5 tutorial  ejb example  not working!

    I have downloaded latest javaee5 tutorial example and i downloaded latest netbeans 6.9 and tried to run ejb cart example but i am getting
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
    at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
    Caused by: java.lang.NoClassDefFoundError: cart/util/BookException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at org.glassfish.appclient.client.acc.FacadeLaunchable.getMainClass(FacadeLaunchable.java:256)
    at org.glassfish.appclient.client.acc.AppClientContainer.setClient(AppClientContainer.java:317)
    at org.glassfish.appclient.client.acc.AppClientContainerBuilder.createContainer(AppClientContainerBuilder.java:174)
    at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:161)
    at org.glassfish.appclient.client.AppClientFacade.createContainerForAppClientArchiveOrDir(AppClientFacade.java:458)
    at org.glassfish.appclient.client.AppClientFacade.createContainer(AppClientFacade.java:420)
    at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:256)
    at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContainerAgent.java:75)
    FATAL ERROR in native method: processing of -javaagent failed
    ... 6 more
    Caused by: java.lang.ClassNotFoundException: cart.util.BookException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at org.glassfish.appclient.client.acc.ACCClassLoader.findClass(ACCClassLoader.java:211)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    ... 16 more
    Exception in thread "main" Java Result: 1
    please help
    Edited by: vinaysb on Sep 1, 2010 3:29 AM

    there is not much help to give. Java already says what the problem is: the cart/util/BookException class is not on the application's classpath. That can indicate a missing library or bad deployment settings. Hard to say what it exactly is.
    All I can say is: learn how a JEE application is properly packaged and deployed and with that knowledge try and figure out where the mistake is.

  • @EJB not working when used in Cactus ServletTestCase

    Hi All,
    I am running my tests using Cactus ServletTestCase servlet and testing my EJB from there. I deploy my EAR application (my test servlet is in WAR, EJB in EAR modul)
    When I run the test, I got NPE as the @EJB is not working and EJB ref is not initialized. Strange thing is, the @EJB is working fine from any other servlet or POJO in WAR.
    Test result:
    <webresult>
    &#8722;
    <exception classname="java.lang.NullPointerException">
    <message>null</message>
    &#8722;
    <stacktrace>
    java.lang.NullPointerException
         at test.fenix.legalsubject.TestLegalSubjectController.testConvert(TestLegalSubjectController.java:56)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at junit.framework.TestCase.runTest(TestCase.java:164)
         at junit.framework.TestCase.runBare(TestCase.java:130)
         at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:155)
         at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:120)
         at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:94)
         at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:218)
         at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java:1)
         at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:102)
         at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:218)
         at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java:1)
         at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:73)
         at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:218)
         at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java:1)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
         at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
         at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    </stacktrace>
    </exception>
    </webresult>
    my test class:
    public class TestLegalSubjectController extends ServletTestCase {
         * Class under test
         static final Logger log = Logger
                   .getLogger(TestLegalSubjectController.class);
         * TODO nemuzu to rozchodit
         @EJB
         public LegalSubjectController legalSubject;
    local interface:
    @Local
    public interface LegalSubjectController extends ControllerFilter {
    public LegalSubjectWizardData getByID(Long ID);
    public void createLegalSubject(LegalSubjectWizardData legalSubjectWizardData);
    public LegalSubject findByName(String name);
    EJB implementation
    @Stateless
    public class LegalSubjectControllerBean implements LegalSubjectController, LegalSubjectControllerRemote {
    private static final Logger log = Logger.getLogger(LegalSubjectControllerBean.class);
    I am stucked with this one, dont want to use the EJB2 way with JNDI look up. Any suggestions much appreciated!

    Was anyone ever able to figure out a solution for this issue? I'm having the exact same problem right now and this is the only reference to it I've been able to find online.
    Thanks!
    -Blake

  • EJB 3 CMP not working in JBoss

    hi,
    i created a simple CMP Entity Bean with mySQL and works fine with OC4J but when delpoy to JBoss 4.0.4RC1, it doesn't work.
    What I realised is that when a JDeveloper create a CMP Entity Bean from a Table it uses @Resource annotaion while I saw all the JBoss samples using @Persistance annotation.
    I changed my CMP to use @persistence annotation and created a persistence.xml file; for somereason it is not working neither in JBoss nor does it work in OC4J.
    Now, if i continue using @Resource annotation, where can I set the datasource so that the @Resource annotation uses my datasource when I deploy it to JBoss?
    or is there any other way to get it working?
    p/s: my datasource is working fine. i created a simple slsb and used
    DataSource ds =
    (DataSource)context.lookup(
    "java:jdbc/mysqlDS");
    and it works fine both in OC4J and JBoss
    any help is appreciated.
    thanks

    Ok, i got this working in JBoss.
    1) Replaced @Resource annotation with @Peristence annotation
    @PersistenceContext(unitName="mysql")
    2) Created persistence.xml in META-INF directory
    <persistence>
    <persistence-unit name="mysql">
    <jta-data-source>java:/jdbc/mysqlDS</jta-data-source>
    <!-- <properties>
    <property name="hibernate.hbm2ddl.auto"
    value="create-drop"/>
    </properties> -->
    </persistence-unit>
    </persistence>
    that is it.
    It means that whether we create EJB 3 on toplink EJB 3 or hibernate EJB 3, we should be able to run it on any of these as long as we stick with the standard annotations. JBoss Hibernate EJB has many additional annotations.
    Now, the only thing that is not working is my Firebird DataSource in JBoss. If anyone has done it please let me know .. thanks.

  • The cisco snmp oids do not work, I can't get cpu or memory data.

    Hello. I want to monitor the cpu and memory usages on my cisco devices using snmp. I found the snmp oids related to cpu in the following page :
    http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094a94.shtml
    I just copy the table here:
    But the oids in the table do not work on my devices. For example, I have a cisco 3550 switch with the ip 192.168.1.211, version 12.2(25)when I want to get the informations about the oids up in the table, I got these results:
    It shows that the oids cisco given up in the table are not existed in my 3550 switch's MIB. More weird is that when i add a number "1" to
    the end of the oid cisco given, I can get some meaningless data for some unkonwn item names like "entreprises.x.x".
    For most mib items, the snmp oids work well on my switch. For example, the following graph shows the interface out rate of the swtich:
    I think the essence is when I executed the following command:
    in all the output results, there's not any item relevant with "cpu" or "memory", but most other items are ok, such as interfaces, as shown below:
    IF-MIB::ifDescr.47 = STRING: FastEthernet0/39
    IF-MIB::ifDescr.48 = STRING: FastEthernet0/40
    IF-MIB::ifDescr.49 = STRING: GigabitEthernet0/1
    IF-MIB::ifDescr.50 = STRING: GigabitEthernet0/2
    IF-MIB::ifDescr.51 = STRING: Null0
    IF-MIB::ifDescr.52 = STRING: Vlan1
    IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
    IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
    IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
    IF-MIB::ifType.4 = INTEGER: ethernetCsmacd(6)
    IF-MIB::ifType.5 = INTEGER: ethernetCsmacd(6)
    So why the cisco given oids won't work on my cisco switch, and how can I get the datas I want? Anyone has some advices? Thanks in advance!
    In case the pictures I inserted missing, I attach my problem in the doc.

    Have you looked at this previous discussion:
    Can't Activate FaceTime

  • CDI not working in Weblogic 12c Embedded EJB Container?

    Hi,
    we are trying to use embedded ejb container from weblogic 12c (12.1.2.0) for our junit tests.
    As our application is running in weblogic 12c, we would like to run our tests  in same environment.
    But we encountered two problems, which brings me to the conclusion that CDI is not working correctly in embedded ejb container.
    1. CDI Interceptor are not working
    2. CDI Objects (@Inject) are null
    I can provide an error message, which I think is thrown, when container tries to access the interceptor, because if I delete the interceptors the error message gets no longer thrown:
    Caused by: java.lang.UnsupportedOperationException: authenticatedLookup is unavailable for BasicNamingNode types
          at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:234)
          at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:463)
          at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:274)
          at weblogic.jndi.internal.ServerNamingNode_12120_WLStub.authenticatedLookup(UnknownSource)
          at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:483)
    We just want to know, if CDI is not working in embedded ejb container, so we can go ahead and look for another solution for our junit tests.
    Stefan

    Hi There,
    If you have access to Oracle Support Portal, please go through below Knowledge Articles which can provide more information on your requirement:
    Sample Application Using Timer API (CommonJ) to configure Timer Based tasks in Oracle WebLogic Cluster 10.3.X Cluster (Doc ID 1614886.1)
    Clustered EJB Timer - The minimum time for recurring execution of a timer (Doc ID 1931091.1)
    Let us know if it helps.
    Cheers,
    Naveen

  • Basic auth interop problem, servlet WS works, EJB WS not (Sun AS 8)

    After spending some time I managed to add HTTP basic auth to a simple web service. I have implemented two variants, an JAX-RPC servlet web service and an EJB web service.
    A (Sun) JAX-RPC client works pretty well against both web services. I do the required steps with the stub (set user/pwd) and things work. I do get the correct principal in the server side, fine.
    When I do NOT set the authentication properties at the stub, the servlet based WS responds something like HTTP error 403 (?) or so, which leads to "authentication required". The EJB based response is not that adequate, it's something like "internal server error, EJBLocalAccessException or so" but from the given message you could get the idea what's wrong.
    Anyway, I got the impression that this stuff
    return HTTP error to flag "auth required"
    is not happening for some reason in my EJB based web service. I found this problem in Sun AS 8 and I think it's the same problem when I test stuff with Oracle's OC4J ...
    Some client implementations have obviously problems to get the idea that user authentication is required. In other words, the clients cannot invoke the EJB WS. I tried it with Perl Soap::Lite, MS SOAP Toolkit 3.0 and MS .Net 1.1 stuff. All this clients work well (with authentication) when I consume the servlet based web service. But the EJB based web service is not working at all. I do get there just "not allowed" and the SOAP client runtime is not handing over any user credentials (because it's obviously not correctly asked for it by an appropriate AS response).
    Anyone else experienced this problems with EJB WS???
    Interesting question: why is the JAX-RPC client working? Is it sending the properties set at the stub in any case? Or do they "handle" the internal error coming from Sun AS explicitly or so? Strange, in a way. :-)
    Thanx for any help here!
    Merten

    I guess the reason was that I wrote
    <login-config>
    <auth-method>Basic</auth-method>
    </login-config>
    instead of required
    <login-config>
    <auth-method>BASIC</auth-method>
    </login-config>
    At deploy time, I got no error message. At usage time, I just got this AccessLocalException. That's not really nice ...
    Merten

  • @EJB not working for managed beans in adfc-config

    using adf 11.1.1.3
    We have an application that uses EJB (deployed on the same WLS as our application). We notice that when we create managed beans in the adfc-config and use the @EJB annotation to get an instance of the sessionbean, it is not working.
    The error we get is a simple nullPointerexception pointing to the EJB.
    When we register the bean in faces-config.xml instead of adfc-config.xml, we do get an instance of the EJB.
    I also get a nullpointerException when i add the managed bean to a taskflow instead of the adfc-config.
    This is an example of the bean:
    public class HomeTest {
        @EJB
        MyService service;
        public HomeTest() {
        public List getData(){
          return service.getSomedata();
    }When i register this bean in adfc-config i get a nullpointer on service.
    When i register the same bean in the faces-config, it is working.

    Frank,
    Thanks! I think i managed to implement the workaround:
    This is my bean that has been registered in the faces-config:
    public class BeanHelper {
        @EJB
        private MyEJB myEjB;
        public BeanHelper() {
            super();
        public MyEJB getMyEJB()
              return myEJB;
    }In my adfc managed bean i use
    MyEJB myEJB = (MyEJB)JSFUtils.get("#{BeanHelper.myEJB}");This is working fine.
    This way i no longer need to use a direct lookup and i don't need to know the exact path and so on for the EJB.
    Thanks Frank!
    Is there a way to let Oracle update the bug with this workaround so if other people find the bug, they know how to implement a workaround?

  • @EJB annotation in JSF managed beans not working

    Hi all,
    I've been trying to get the @EJB annotation to work in a JSF manged bean without success.
    The EJB interface is extremely simple:
    package model;
    import javax.ejb.Local;
    @Local
    public interface myEJBLocal {
    String getHelloWorld();
    void setHelloWorld(String helloWorld);
    and the bean code is simply:
    package model;
    import javax.ejb.Stateless;
    @Stateless
    public class myEJBBean implements myEJBLocal {
    public String helloWorld;
    public myEJBBean() {
    setHelloWorld("Hello World from myEJBBean!");
    public String getHelloWorld() {
    return helloWorld;
    public void setHelloWorld(String helloWorld) {
    this.helloWorld = helloWorld;
    When I try to use the above EJB in a managed bean, I only get a NullPointerException when oc4j tries to instantiate my managed bean. The managed bean looks like:
    package view.backing;
    import javax.ejb.EJB;
    import model.myEJBLocal;
    import model.myEJBBean;
    public class Hello {
    @EJB
    private static myEJBLocal myBean;
    private String helloWorld;
    private String helloWorldFromBean;
    public Hello() {
    helloWorld = "Hello from view.backing.Hello!";
    helloWorldFromBean = myBean.getHelloWorld();
    public String getHelloWorld() {
    return helloWorld;
    public void setHelloWorld(String helloWorld) {
    this.helloWorld = helloWorld;
    public String getHelloWorldFromBean() {
    return helloWorldFromBean;
    Am I missing something fundamentally here? Aren't you supposed to be able to use an EJB from a JSF managed bean?
    Thanks,
    Erik

    Well, the more I research this issue, the more confused I get. There have been a couple of threads discussing this already, and in this one Debu Panda states that:
    "Support of injection in JSF managed bean is part of JSF 1.1 and OC4J 10.1.3.1 does not support JSF 1.1"
    10.1.3.1 Looking up a session EJB with DI from the Web tier
    But if you look in the release notes for Oracle Application Server 10g R3, it is explicitly stated that JSF 1.1. is supported. So I'm not sure what to believe.
    I've also tried changing the version in web.xml as described here:
    http://forums.java.net/jive/thread.jspa?threadID=2117
    but that didn't help either.
    I've filed a SR on Metalink for this, but haven't got any response yet.
    Regards,
    Erik

  • @EJB annotation in entity bean does not work

    I just started with ejb3. I have created a couple of beans. One session bean that looks like this:
    @Stateless
    public class MySessionBean implements MySession
         @Resource(name="jdbc/mydb")
         private DataSource myDB;
    public void someMethod() {
    myDB.getConnection()
    This works great. The other bean is an entity bean, and there the resource injection doesn't work. It looks like this:
    @Entity
    public class MyEntityBean
    @Resource(name="jdbc/mydb")
         private DataSource myDB;
    public void someMethod() {
    myDB.getConnection()
    Is resource injection any different in an entity bean then in a session bean? Both beans belong to the same package and are in the same application, (ear). I have exactly the same problem with @EJB injection: it works fine in the session bean but not in the entity bean...
    Any help is appreciated...
    John

    <code>
    @Entity
    @Table(name = "assetfault")
    @NamedQueries( {@NamedQuery(name = ... )})
    public class Assetfault implements Serializable {
    @javax.ejb.EJB private com.novadent.data.assetmg.sessionbeans.AssetFacadeLocal aF;
    @javax.ejb.EJB private com.novadent.data.assetmg.sessionbeans.AssetfaultFacadeLocal afF;
    </code>
    importing javax.ejb.EJB ?

Maybe you are looking for

  • Unable to connect to Oracle database running on Windows machine from linux.

    Hi, I'm not able to connect to oracle database running on Windows machine from Linux machine. I'm geting the below mentioned error. I have given below the code I used to connect to database and database propertes.Do I need to use any specific driver?

  • Software Updates and Dealine

    Hi we installed the Citrix application lock on nearly all of our clients. So after a sucessfully logon the user is redireted to a central desktop. All messages related to sccm are not displayed to a user. We deployed updates and some users reported t

  • When I install Adobe CS2 Premium everything except Photoshop CS2 installs?

    I have my original Adobe CS 2 Premium Edition. I run set up as admin etc and put in my serial etc etc all that goes smoothly. Now I would select the components I want to install. Photoshop Cs2 and Illustrator CS2. So after the installation I see illu

  • Front row is gone, how do I reinstall from the CD?

    I lost Front Row a long time ago, so long ago that I don't remember why anymore. Spotlight does not bring it up. How can I reinstall Front Row again with the CDs?

  • Bad display UTF-8 czech character SPA 504 FW 7.4.8a

    I use some some czech character in phone config file: Example: <Default_Character_Encoding ua="na">UTF-8</Default_Character_Encoding> <!-- options: ISO-8859-1/UTF-8 --> <XML_Directory_Service_Name ua="na">Centrální adresář</XML_Directory_Service_Name