Re: [jboss-user] [EJB 3.0 Development] - Wrong JNDI context returned from EJB
by Richard Opalka
Richard Opalka [http://community.jboss.org/people/richard.opalka%40jboss.com] replied to the discussion
"Wrong JNDI context returned from EJB"
To view the discussion, visit: http://community.jboss.org/message/537334#537334
--------------------------------------------------------------
The situation is little bit more complicated.
*First of all I need to verify if the following usecase is valid.*
There's a *EJB3Bean* web service bean
with the following DD. It defines *boolean1* env entry.
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>EJB3Bean</ejb-name>
<ejb-class>org.jboss.test.ws.jaxws.ejb3Integration.injection.webservice.EJB3Bean</ejb-class>
* <env-entry>
<env-entry-name>boolean1</env-entry-name>
<env-entry-type>java.lang.Boolean</env-entry-type>
<env-entry-value>true</env-entry-value>
</env-entry>*
</session>
</enterprise-beans>
</ejb-jar>
There's a handler associated with this EJB3Bean
@WebService
*@HandlerChain(file = "jaxws-handler.xml")
*@Stateless
public class EJB3Bean extends AbstractEndpointImpl
{
public String echo(String msg)
{
return super.echo(msg) + ":EJB3Bean";
}
}
The content of jaxws-handler.xml is:
<handler-chains>
<handler-chain>
<handler>
<handler-name>TestHandler</handler-name>
* <handler-class>org.jboss.test.ws.jaxws.ejb3Integration.injection.shared.handlers.TestHandler</handler-class>
* </handler>
</handler-chain>
</handler-chains>
This TestHandler tries to access both EJB3Bean and it's env-entry
public final class TestHandler extends GenericSOAPHandler {
* @Resource private Boolean boolean1;
@EJB private BeanIface bean1;*
...
}**
Using global JNDI I'm able to fix @EJB injection.
*Question for EJB3 team:*
Do you think this JAX-WS handler should see env-entry of EJB3Bean?
That would mean required access to EJB3Bean specific JNDI context (the reason why we're using it instead of global JNDI).
I'll double check JAX-WS and EE6 specification for clarification, but would like to know your opinion ;)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/537334#537334]
Start a new discussion in EJB 3.0 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
Re: [jboss-user] [Spring Integration] - Webapp deployment problem
by Adrien Ruffie
Adrien Ruffie [http://community.jboss.org/people/adryen31200] replied to the discussion
"Webapp deployment problem"
To view the discussion, visit: http://community.jboss.org/message/537327#537327
--------------------------------------------------------------
No ok, I have found the problem :-)
Sorry Ales I have just include this new dependency:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>3.1.0.GA</version>
</dependency>
Because the old version of hiberbante-validator in common/lib don't have the following method:
org.hibernate.AnnotationException: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager)
But thank to this 3.1.0.GA version in my webapp, the problem was solved :-), I begin to better understand the JBoss philosophy :-P
Now a new problem is occured:
11:10:08,435 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 2m:16s:760ms
11:11:19,657 ERROR [[DragonServlet]] "Servlet.service()" pour la servlet DragonServlet a g�n�r� une exception
java.lang.IllegalArgumentException: Can only process HttpServletRequest
at org.springframework.security.intercept.web.FilterInvocation.<init>(FilterInvocation.java:53)
at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:160)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
I investigate that :-)
Thank Ales
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/537327#537327]
Start a new discussion in Spring Integration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
[jBPM] - jBPM integration
by koen hermans
koen hermans [http://community.jboss.org/people/koen.hermans] created the discussion
"jBPM integration"
To view the discussion, visit: http://community.jboss.org/message/537326#537326
--------------------------------------------------------------
hi,
I'm doing my internship at a document management company. My assignement is to integrate jBPM with their own system.
I've never worked before with jBPM, so I've first learned the basics of jBPM. Now I know the basics, I'm looking for possibilities to integrate it. They've told me I had to try to find a solution to work only with the services and not with hibernate. I know it's possible if you work on your local pc, I've made examples with just working with the services, but as far as I know this isn't possible when you use it on your network, accessing data from jBPM remotely. Than you need hibernate. Am I correct?
Further, I have to make an abstraction layer. I'm not really the programmer-type, so can anyone help me with give me some information on making an abstraction layer for jBPM?
grtz
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/537326#537326]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years