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.
Similar Messages
-
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,
JohnWas 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,
JohnOh 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-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.
RajivRob,
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 -
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". -
t:jscookmenu is not working in Jboss portlet.
hi..
i am facing a problem in <t:jscookmenu>, that is , i am using the JBoss portlet 2.4 and my aim is to provide a top menu in the default index page.i tried with <t:jscookmenu> , but it is throwing error(scroll down for error code), but <t:outputtext> are all working good.
error code:
ERROR [CommandFilter] Exception in command invocation
org.apache.jasper.JasperException: org.jboss.portlet.JBossRenderRequest
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.java:87)
at sun.reflect.GeneratedMethodAccessor304.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:108)
at org.apache.myfaces.context.portlet.PortletExternalContextImpl.dispatch(PortletExternalContextImpl.java:164)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:195)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:323)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:298)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:380)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:167)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:407)
at org.jboss.portal.portlet.container.PortletContainer.invokeRender(PortletContainer.java:519)
at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:440)
at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:143)
at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:242)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:85)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:101)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:49)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:50)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.portlet.aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:59)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:45)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.portlet.aspects.portlet.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:55)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:76)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:124)
at sun.reflect.GeneratedMethodAccessor295.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:104)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at org.jboss.portal.portlet.impl.spi.AbstractRequestContext.include(AbstractRequestContext.java:193)
at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:68)
at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:84)
at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:74)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.portlet.aspects.portlet.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:50)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:65)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:61)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
at org.jboss.portal.portlet.container.PortletContainerInvoker.invoke(PortletContainerInvoker.java:114)
at sun.reflect.GeneratedMethodAccessor294.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy61.invoke(Unknown Source)
at org.jboss.portal.portlet.state.producer.StatefulPortletInvoker.invoke(StatefulPortletInvoker.java:249)
at sun.reflect.GeneratedMethodAccessor293.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy63.invoke(Unknown Source)
at org.jboss.portal.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:139)
at org.jboss.portal.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:155)
at sun.reflect.GeneratedMethodAccessor292.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy65.invoke(Unknown Source)
at org.jboss.portal.portlet.test.TestPortletInvoker$1.dispatch(TestPortletInvoker.java:63)
at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:242)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:85)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:93)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:83)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
at org.jboss.portal.portlet.test.TestPortletInvoker.invoke(TestPortletInvoker.java:123)
at sun.reflect.GeneratedMethodAccessor286.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy47.invoke(Unknown Source)
at org.jboss.portal.core.impl.model.instance.InstanceImpl.invoke(InstanceImpl.java:273)
at org.jboss.portal.core.command.RenderWindowCommand.execute(RenderWindowCommand.java:108)
at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:91)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:171)
at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:80)
at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91)
at org.jboss.portal.core.command.CommandContext.chain(CommandContext.java:148)
at org.jboss.portal.core.command.MarkupCommand.renderPortletWindow(MarkupCommand.java:463)
at org.jboss.portal.core.command.RenderPageCommand.renderFragments(RenderPageCommand.java:76)
at org.jboss.portal.core.command.MarkupCommand.execute(MarkupCommand.java:340)
at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:91)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:171)
at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:80)
at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91)
at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:78)
at org.jboss.portal.core.CoreController.handle(CoreController.java:126)
at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
at $Proxy139.handle(Unknown Source)
at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:79)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:64)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:74)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:174)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:92)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:275)
at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
16:44:16,476 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException: org.jboss.portlet.JBossRenderRequest
at org.apache.myfaces.component.html.util.AddResource.addAdditionalHeaderInfoToRender(AddResource.java:376)
at org.apache.myfaces.component.html.util.AddResource.addJavaScriptToHeader(AddResource.java:126)
at org.apache.myfaces.component.html.util.AddResource.addJavaScriptToHeader(AddResource.java:116)
at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.addResourcesToHeader(HtmlJSCookMenuRenderer.java:309)
at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeEnd(HtmlJSCookMenuRenderer.java:267)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:712)
at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:616)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:539)
at org.apache.jsp.WEB_002dINF.jsp.message_jsp._jspx_meth_t_jscookMenu_0(message_jsp.java:185)
at org.apache.jsp.WEB_002dINF.jsp.message_jsp._jspx_meth_f_view_0(message_jsp.java:131)
at org.apache.jsp.WEB_002dINF.jsp.message_jsp._jspService(message_jsp.java:97)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.java:87)
at sun.reflect.GeneratedMethodAccessor304.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:108)
at org.apache.myfaces.context.portlet.PortletExternalContextImpl.dispatch(PortletExternalContextImpl.java:164)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:195)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:323)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:298)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:380)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:167)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:407)
at org.jboss.portal.portlet.container.PortletContainer.invokeRender(PortletContainer.java:519)
at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:440)
at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:143)
at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:242)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:85)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:101)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:49)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:50)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.portlet.aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:59)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:45)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.portlet.aspects.portlet.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:55)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:76)
at orhi,
We are calling SBWP transaaction as a transaction Iview from EP. We are able to see the tasks in the Inbox and could able to work on the same. But it does not really do anything to the tasks at the R/3.(Ideally, the tasks should be completed).
If you run in R/3 same transaction using logon pad, the tasks are getting completed. -
[HELP] [BPEL 11g] Customized BPEL worklist app could not work on JBoss
Dear all,
We are developing the customized Human Worklist app based on BPEL HW API 11g.
The application (some jsp pages) works fine in JDeveloper 11g. However, after deploy to JBoss, it always prompt with "NoClassDefFoundError" exception, although we have already add following 7 jar files into Classpath:
${jdeveloper.home}\Middleware\wlserver_10.3\server\lib\weblogic.jar
${jdeveloper.home}\Middleware\jdeveloper\modules\oracle.jrf_11.1.1\jrf.jar
${jdeveloper.home}\Middleware\jdeveloper\modules\oracle.webservices_11.1.1\wsclient.jar
${bea.home}/AS11gR1SOA/soa/modules/oracle.soa.fabric_11.1.1/bpm-infra.jar
${bea.home}/AS11gR1SOA/soa/modules/oracle.soa.workflow_11.1.1/bpm-services.jar
xml.jar
xmlparserv2.jar
Then we manually copy many other jars (nearly 100) under Weblogic server, but it still prompt lacking of some jar file with "NoClassDefFoundError" exception.
So, does BPEL 11g support deploy HW app outside weblogic, like JBoss? If so, what we need to set at JBoss side to run our app?
Thanks a lot.Not sure it is available yet as I have not seen any doc for 11g.
here is the 10g instructions which may provide some pointers.
http://download-east.oracle.com/docs/cd/B31017_01/web.1013/b25947/deployment_topics012.htm
cheers
James -
Simple Web App NOT working with JBoss on IDEA IntelliJ
Hi Experts:
I am using TOMCAT_4.0.3 (bundled with JBOSS_3.0.0) and using IntelliJ-IDEA as my IDE environment.
On one of my machine I created a WEB-APP kithany.war. It was working fine on this machine.
Later when I copied this kithany.war to other machine and put under server/default/deploy directory and then ran Jboss on which I get following error - wonder why?
13:32:34,078 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/kithany.war/
13:32:34,156 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=/kithany, warUrl=file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/kithany.war/
13:32:34,281 ERROR [MainDeployer] could not start deployment: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/kithany.war/
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
java.lang.NullPointerException
at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:321)
at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:238)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
13:32:34,281 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@6417805a{ url=file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/kithany.war/, deployedLastModified=0 }
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
WHat is wrong on this...? Any related information on above is appreciated.
THANKS!Hello, manojkithany!
Did you find out what was wrong? I am experiencing this problem with the jboss http-invoker.sar and the jmx-console.war...
Both machines have the same environment. I found this exception with jobss3.04-tomcat bundle as well as with jobss3.06-tomcat bundle.
~~~snip
2003-04-01 17:10:04,122 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying http-invoker.sar
2003-04-01 17:10:04,122 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/home/tmt/kroh/jcom/app/jcom/dep
loy/http-invoker.sar/
2003-04-01 17:10:04,122 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/home/tmt/kroh/jcom/app/jcom/dep
loy/http-invoker.sar/invoker.war/
2003-04-01 17:10:04,125 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] webContext: null
2003-04-01 17:10:04,125 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] warURL: file:/home/tmt/kroh/jcom/app/jcom/dep
loy/http-invoker.sar/invoker.war/
2003-04-01 17:10:04,125 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] webAppParser: org.jboss.web.AbstractWebContai
ner$DescriptorParser@1c8efd1
2003-04-01 17:10:04,173 INFO [org.jboss.web.catalina.EmbeddedCatalinaService41] deploy, ctxPath=/invoker, warUrl=file:/home/t
mt/kroh/jcom/app/jcom/deploy/http-invoker.sar/invoker.war/
2003-04-01 17:10:04,220 DEBUG [org.apache.commons.digester.Digester] register('-//Sun Microsystems, Inc.//DTD JSP Tag Library
1.1//EN', 'jar:file:/home/tmt/kroh/www/jboss-3.0.6_tomcat-4.1.18/tomcat-4.1.x/common/lib/servlet.jar!/javax/servlet/jsp/resour
ces/web-jsptaglibrary_1_1.dtd'
2003-04-01 17:10:04,221 DEBUG [org.apache.commons.digester.Digester] register('-//Sun Microsystems, Inc.//DTD JSP Tag Library
1.2//EN', 'jar:file:/home/tmt/kroh/www/jboss-3.0.6_tomcat-4.1.18/tomcat-4.1.x/common/lib/servlet.jar!/javax/servlet/jsp/resour
ces/web-jsptaglibrary_1_2.dtd'
2003-04-01 17:10:04,224 DEBUG [org.apache.commons.digester.Digester] addRuleSet() with no namespace URI
2003-04-01 17:10:04,224 DEBUG [org.apache.commons.digester.Digester] register('-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN', 'jar:file:/home/tmt/kroh/www/jboss-3.0.6_tomcat-4.1.18/tomcat-4.1.x/common/lib/servlet.jar!/javax/servlet/resources/
web-app_2_2.dtd'
2003-04-01 17:10:04,225 DEBUG [org.apache.commons.digester.Digester] register('-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN', 'jar:file:/home/tmt/kroh/www/jboss-3.0.6_tomcat-4.1.18/tomcat-4.1.x/common/lib/servlet.jar!/javax/servlet/resources/
web-app_2_3.dtd'
2003-04-01 17:10:04,236 DEBUG [org.apache.commons.digester.Digester] addRuleSet() with no namespace URI
2003-04-01 17:10:04,242 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] AbstractWebContainer.parseWebAppDescriptors,
Begin
2003-04-01 17:10:04,243 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] Creating ENC using ClassLoader: java.net.Fact
oryURLClassLoader@df0438
### concatenation, always the same ###
2003-04-01 11:09:07,737 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] ..org.jboss.mx.loading.UnifiedClassLoader3@15
db13f{ url=file:/home/tmt/kroh/jcom/app/jcom/deploy/http-invoker.sar/invoker.war/ }
2003-04-01 11:09:07,737 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] ..java.net.URLClassLoader@6e1408
2003-04-01 11:09:07,737 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] ..sun.misc.Launcher$AppClassLoader@7a78d3
2003-04-01 11:09:07,737 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] ..sun.misc.Launcher$ExtClassLoader@929206
2003-04-01 11:09:07,738 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] Linked java:comp/UserTransaction to JNDI name
: UserTransaction
2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] addEnvEntries
2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkResourceEnvRefs
2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkResourceRefs
2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkEjbRefs
2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkEjbLocalRefs
2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkSecurityDomain
2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] Linking security/securityMgr to JNDI name: ja
va:/jaas/http-invoker
2003-04-01 11:09:07,741 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] AbstractWebContainer.parseWebAppDescriptors,
End
##### remark: from here it starts to deviate from normal behavior ####
2003-04-01 11:09:07,744 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
2003-04-01 11:09:07,746 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2003-04-01 11:09:07,746 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2003-04-01 11:09:07,751 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scann
er.URLDeploymentScanner$DeployedURL@ba617c43{ url=file:/home/tmt/kroh/jcom/app/jcom/deploy/http-invoker.sar/, deployedLastModi
fied=0 }
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
~~~snap
Olaf -
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. -
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 AMthere 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(CMP) A Working Sample
Can any of u please help me to get a Sample Code / Steps to create a BMP bean , generate its Deployed Jar , and Finally deploy it in Oracle 9i App. Server .
I was using Visual Age Earlier , now Switched Over to JDeveloper .
Thanks .
nullthere are couple of demoscripts on buiding CMP entity beans on the technet.
check out http://technet.oracle.com/products/jdev/htdocs/cmpdemo2/cmpdemo2.html http://technet.oracle.com/products/jdev/htdocs/fullcmpdemo/cmpdemo.html
raghu -
@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>
−
<exception classname="java.lang.NullPointerException">
<message>null</message>
−
<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 -
Web Services Client is not working fine on JBOSS 4.0.4.GA
Dear Team,
we had JBOSS AS 4.0.3 and web services was build on EJB which was working fine. we new have to migrate it to JBOSS 4.0.4.GA Application Server....
we have generated wsdl, webservices.xml and jaxrpc-mapping.xml file from wstools.exe of JBOSS AS 4.0.4.GA and we are able to see the web services wsdl on web browser.... but when we execute the same client which was earlier running for JBOSS 4.0.3 it throws error saying
javax.xml.rpc.ServiceException :modeler error : uniqueness constraint voilation, duplicate member found "type" to javastructureType "userDetails"
rgrds,
~JPlease provide the following information:
- Help > About BEA Workshop studio - build #
- Window > Preferences > Java - Installed JREs - what is your default JRE selection?
- Run > Run... _ J2EE Server > JBoss 4.0 - Have you customized any of the default values. Ex: Arguments, Classpath ...
- What kind of application are you trying to debug Struts/JSF?
- Can you try to reproduce the problem with the bundled samples workshop-struts-tour/bookstore (run the app and modify one of the configuration file).
- Do you see the same behavior with Sun JDK?
- Finally, copy-paste the first line from the "Console View"
Message was edited by:
ram.v -
Hi all,
Im using EJB 3.0 with Jboss 4.2. I deployed my ejb jar file and its client application (a war file) with EAR file.
In my war I have servlet and Im trying to access my session bean through its local interface.
Im following a example from 'O Rielly Enterprise Javabeans 3.0 5th edition'. I m tired so much with this application, finally thought to post my problem here.
1. remote interface (from TravelAgent.jar)
package com.titan;
import javax.ejb.Remote;
import com.titan.domain.Cabin;
@Remote
public interface TravelAgentRemote {
public void createCabin(Cabin cabin);
public Cabin findCabin(int id);
public void sayHello();
}2. Local interface (from TravelAgent.jar)
package com.titan;
import javax.ejb.Local;
import com.titan.domain.Cabin;
@Local
public interface TravelAgentLocal {
public void createCabin(Cabin cabin);
public Cabin findCabin(int id);
public void sayHi();
}3. Session bean (from TravelAgent.jar)
package com.titan;
import javax.ejb.Stateless;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceContextType;
import com.titan.domain.Cabin;
@Stateless
public class TravelAgentBean implements TravelAgentLocal, TravelAgentRemote{
@PersistenceContext
private EntityManager manager;
//public static final String RemoteJNDIName = Tr
//private EntityManagerFactory factory = Persistence.createEntityManagerFactory("titan");
@Override
public void createCabin(Cabin cabin) {
manager.persist(cabin);
@Override
public Cabin findCabin(int id) {
return manager.find(Cabin.class, id);
//return null;
@Override
public void sayHello() {
System.out.println("Hello EJB");
@Override
public void sayHi() {
System.out.println("Hello EJB");
}4. pesistence.xml (from jar's META-INF)
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
<persistence-unit name="titan">
<jta-data-source>java:comp/env/jdbc/sample</jta-data-source>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
<!-->property name="hibernate.hbm2ddl.auto" value="create-drop"/-->
</properties>
</persistence-unit>
</persistence>5. Entity class
package com.titan.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="cabin")
public class Cabin implements Serializable{
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
@Column(name="id")
private Integer id;
//other fields and setters and getters
}=========================================
this is my servlet in war file.
package test;
import java.io.IOException;
import java.io.PrintWriter;
import javax.ejb.EJB;
import com.titan.TravelAgentBean;
import com.titan.TravelAgentLocal;
import com.titan.TravelAgentRemote;
public class TestServlet extends HttpServlet{
@EJB
TravelAgentLocal travelAgentLocal;
//@EJB TravelAgentBean travelAgentBean;
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
PrintWriter out = resp.getWriter();
travelAgentLocal.sayHi();
}this is my mssql-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/sample</jndi-name>
<use-java-context>false</use-java-context>
<connection-url>jdbc:jtds:sqlserver://myip;databaseName=test;</connection-url>
<driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
<user-name>sa</user-name>
<password>bdcadmin</password>
<min-pool-size>10</min-pool-size>
<max-pool-size>20</max-pool-size>
<blocking-timeout-millis>5000</blocking-timeout-millis>
</local-tx-datasource>
</datasources>I have set war's web.xml and jboss-web.xml properly.
But in servlet it generates a NullPointerException. Ill post Exception and generated log here.
ObjectName: persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
State: NOTYETINSTALLED
I Depend On:
jboss.jca:name=comp/env/jdbc/sample,service=DataSourceBinding
ObjectName: persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
State: NOTYETINSTALLED
I Depend On:
jboss.jca:name=comp/env/jdbc/sample,service=DataSourceBinding
ObjectName: persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
State: NOTYETINSTALLED
I Depend On:
jboss.jca:name=comp/env/jdbc/sample,service=DataSourceBinding
Depends On Me:
jboss.j2ee:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,name=TravelAgentBean,service=EJB3
ObjectName: jboss.j2ee:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,name=TravelAgentBean,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:name=comp/env/jdbc/sample,service=DataSourceBinding
State: NOTYETINSTALLED
Depends On Me:
persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS
State: NOTYETINSTALLED
Depends On Me:
jboss.ejb:service=EJBTimerService,persistencePolicy=database
jboss:service=KeyGeneratorFactory,type=HiLo
jboss.mq:service=StateManager
jboss.mq:service=PersistenceManager
11:42:14,238 ERROR [[TestServlet]] Servlet.service() for servlet TestServlet threw exception
java.lang.NullPointerException
at java.lang.Thread.run(Unknown Source)
12:02:11,946 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/sample' from JNDI name 'jdbc/sample'
12:02:12,055 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/sample' to JNDI name 'jdbc/sample'I cannot understand what is the above part from the exception. I think its a important description about bean deployment. It seems like there is a problem when reading it.
Please If anyone knows please help me.
These Ejb books teach us by giving source code and saying the way how it is developed or deployed, but I think when we get in to real job this way is not helpfull.
ONE GOOD EXAMPLE IS REALLY ENOUGH. But unable to find such a example.
regards,
Dil.well one problem I see is that you removed the "hsqldb-ds.xml" file, which contains the DefaultDS datasource. One of the JBoss services depends on this datasource. You can find the declaration for this MBean in deploy/uuid-key-generator.sar/META-INF/jboss-service.xml. Change the "Datasource JNDI name" to your MySQL datasource name.
However, I don't think this is the real problem you are having. It seems like the persistence unit is not being deployed properly, so somewhere in the log output there should be another exception that says why the persistence unit is failing. Most likely a typo in the XML.
edit: hmm, failed to see the other thread on this topic... OP: please don't double post, it only leads to confusion! -
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.
StefanHi 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
Maybe you are looking for
-
Passing "Value Objects" from one JSP to next (2)
Someone posted a response from BEA which has since disappeared, it was no different from what I was doing and it I still can't get it to store the information in the Value Object. I get values (true/false) from
-
Boot Camp/Windows XP crashes when trying to play games
I'm at a complete loss. I've installed Windows XP with Boot Camp and everything starts up fine. All I want to use XP for is some light gameing. I've done this a few times with with different games. I get the same problem every time. At some point whi
-
Help Sometimes when im doing stuff like browsing the intenrte i get a windwos saying You Nede to restart your computer this is my 4th time this has happened please help!!! M y computer is a macbook pro 2011 edition
-
Firefox won't allow me to down load adobe flash player
Don't know where to find the window to allow firefox to download adobe flash player
-
Multiple Purchase Requisition generate in the same date WHY ?
Hi All, In MD04 Tcode for one Material No , I can see multiple PR getting generated for the same Date !! I would like to know based on what settings same date is appearing ?? and also please tell how to combine all this PR into one PR !!! Please guid