[JBoss Seam] - Why cannot I run more than one concurrent conversation SFSB
by gus888
Hi all,
I am very frustrated by my conversation problem. I don't know where is wrong in my project settings. It seems that my environment only allows one conversation exist concurrently. For example, after I click @Begin to create a conversation SFSB, then when I try to click @Begin to start another conversation SFSB, I ALWAYS get an exception, which asks me to use @Begin(join=true), but they are two different conversation SFSBs. Following are my codes:
First, I use a conversation SFSB to find study list:<h:commandButton value="List Study" action="#{studyList.findStudy}"/>
|
|
| @Stateful
| @Scope(CONVERSATION)
| @Name("studyList")
| public class StudyListAction implements StudyList {
|
| ...
| @Create
| @Begin
| public init() {
| ...
| }
|
| @Begin(join=true)
| public String findStudy {
| ...
| }
|
| ...
| }
Then I try to create a new study at "Create Study":<h:commandLink value="Create Study" action="#{studyEditor.createInstance}"/>
|
|
| @Stateful
| @Scope(CONVERSATION)
| @Name("studyEditor")
| public class StudyEditorBean implements StudyEditor {
|
| ...
|
| @Begin
| public String createInstance {
| ...
| }
|
|
| ...
| }
At this moment, I always get the following exception:21:53:43,203 FATAL [application] javax.ejb.EJBTransactionRolledbackException: begin method invoked from a long running conversation, try using @Begin(join=true) on method: createInstance
| javax.faces.el.EvaluationException: javax.ejb.EJBTransactionRolledbackException: begin method invoked from a long running conversation, try using @Begin(join=true) on method: createInstance
| at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
| at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
| at javax.faces.component.UICommand.broadcast(UICommand.java:383)
| at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
| at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:57)
| at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:45)
| at com.icesoft.faces.webapp.http.core.IDVerifier.service(IDVerifier.java:25)
| at com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:52)
| at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
| at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
| at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
| at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
| at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:109)
| at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
| at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
| at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
| at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:98)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
| at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
| at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
| at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
| at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:54)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
| 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:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
| ...........
Any help will be very very appreciated. Thank you soooo much in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089699#4089699
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089699
18 years, 6 months
[JBossWS] - Provider com.sun.xml.ws.spi.ProviderImpl not found
by Fantagir
Hi!
I have a simple client of a web service implemented in java using eclipse with a plugging for JBossWS. In this client I use the library javax.xml.ws.*
But when I run it the next problem appears:
javax.xml.ws.WebServiceException: Provider com.sun.xml.ws.spi.ProviderImpl not found
I put the libraries jaxws-api.jar and jaxb-api.jar in the build path of the project.
Can you tell me what can I do?
My client code is the next one:
import java.net.URL;
import javax.xml.namespace.QName;
/*import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;*/
import javax.xml.ws.Service;
import util.DatePalabra;
import com.lasalle.util.resources.CollectionProperties;
public class MainDevPalabra {
public static void main( String[] args ) throws Exception {
if( args.length < 1 )
{
System.out.println( "Usage: Palabra name" );
System.exit( 0 );
}
String argument = args[ 0 ];
DatePalabra dp = new DatePalabra();
//CollectionProperties propietats = new CollectionProperties();
String urlstr = CollectionProperties.getPropiedad("serviceD.url");
String nameServiceStr = CollectionProperties.getPropiedad("serviceD.name");
String namespaceServiceStr = CollectionProperties.getPropiedad("serviceD.namespace");
System.out.println( "Contacting webservice at " + urlstr );
URL url = new URL(urlstr);
//se indican el namespace en el que se encuentra el servicio y su nombre
//(esto se puede ver en el WSDL)
QName qname = new QName(namespaceServiceStr,
nameServiceStr);
Service service = Service.create(url, qname);
IContar age = ( IContar) service.getPort( IContar.class );
System.out.println( "age.age(" + argument + ")" );
dp = (DatePalabra) age.darCuenta(argument);
System.out.println( "output longitud:" + dp.getLongitud() );
System.out.println( "output palabra:" + dp.getPalabra() );
}
}
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089696#4089696
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089696
18 years, 6 months
[JBoss Seam] - Maven, Seam, TestNG - IntegrationTests
by motte79
what libraries are needed to get the integrationtest running ?
I added all jars contained in 'lib' of the current cvs into test
of my parent-project. this did not work ...
thats my testcase
| public class BarInputManagerTest
| extends SeamTest
| {
|
| @Test
| public void testSplit () throws Exception {
| new ComponentTest () {
|
| @Override
| protected void testComponents() throws Exception {
| System.out.println("Beginning test");
|
| String input = "+label1-label2 label3 + label4 - label5";
| setValue("#{bar.input}", input);
| assert getValue("#{bar.input}").equals(input);
|
| List<String> values = (List<String>) getValue("#{barInputManager.split}");
| List<String> myValues = Arrays.asList(new String [] {
| "+label1","-label2","label3","+label4","-label5"
| });
| assert values.equals(myValues);
| }
|
| }.run();
| }
|
| }
|
however, it fails with
| Tests run: 2, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 6.515 sec <<< FAILURE!
|
| Results :
|
| Failed tests:
| init(com.emarsys.monitor.BarInputManagerTest)
|
| Tests run: 4, Failures: 1, Errors: 0, Skipped: 1
|
| [INFO] ------------------------------------------------------------------------
| [ERROR] BUILD FAILURE
| [INFO] ------------------------------------------------------------------------
| [INFO] There are test failures.
| [INFO] ------------------------------------------------------------------------
| [INFO] Trace
| org.apache.maven.BuildFailureException: There are test failures.
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
| at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
| at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
| at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
| at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
| at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
| at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
| Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
| at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:421)
| at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
| ... 16 more
| [INFO] ------------------------------------------------------------------------
| [INFO] Total time: 29 seconds
| [INFO] Finished at: Fri Sep 28 14:41:59 CEST 2007
| [INFO] Final Memory: 7M/20M
| [INFO] ------------------------------------------------------------------------
|
|
it seems that the init() method does not finish correctly ... but there is unfortunately no accurate description why it fails .....
has anybody experience doing test with maven, seam and testng ?
i did a quickhack to add all the jars to my repository ..
| for i in `ls *.jar`; do echo $i; mvn install:install-file -Dfile=$i -DartifactId=$i -DgroupId=org.jboss.seam -Dversion=2.0.0.SNAPSHOT -Dpackaging=jar -DgeneratePom=true; done;
|
| rm -f tmp.txt; for i in `ls *.jar`; do echo "<dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>$i</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>" >> tmp.txt; done;
|
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>activation.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>antlr.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>antlr-runtime.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>asm-attrs.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>asm.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>cglib.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>commons-beanutils.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>commons-collections.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>commons-digester.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>commons-logging.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>core.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>dom4j.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>drools-compiler.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>drools-core.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>ejb-api.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>el-api.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>groovy-all.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>gwt-servlet.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>hibernate-annotations.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>hibernate-commons-annotations.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>hibernate.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>hibernate-search.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>hibernate-validator.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>itext.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>janino.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>javassist.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jaxws-api.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-aop.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-cache.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-common-core.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-container.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-dependency.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-deployers.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-el.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-embedded-api.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-jmx.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-kernel.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-logging-spi.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam-debug.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam-gen.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam-ioc.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam-mail.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam-pdf.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam-remoting.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam-ui.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-system.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jbossxb.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jbpm-jpdl.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jcaptcha-all.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jcommon.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jfreechart.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jgroups.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jms.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jsf-api.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jsf-facelets.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jsf-impl.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jsp-api.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jsr250-api.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jstl.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jta.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>log4j.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>lucene-core.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>mail.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>meldware-mailapi.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>meldware-mailjmx.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>mvel14.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>persistence-api.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>portlet-api.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>quartz.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>richfaces-api-3.1.1-20070924.010402-14.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>richfaces-impl-3.1.1-20070924.010402-14.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>richfaces-ui-3.1.1-20070924.010402-11.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>saaj-api.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>servlet-api.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>spring.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>testng.jar</artifactId>
| <version>2.0.0.SNAPSHOT</version>
| <scope>test</scope>
| </dependency>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089695#4089695
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089695
18 years, 6 months
[Security & JAAS/JBoss] - JBoss 4.0.5: [JAASRealm] No ClassLoaders found for: ...
by tfromm
Hi,
I've got a problem in configuring a JAAS LoginModule inside a .war.
In Tomcat standalone I have configured the realm inside context.xml like this working example:
| <Realm
| className="org.apache.catalina.realm.JAASRealm"
| appName="PortalRealm"
| userClassNames="com.liferay.portal.security.jaas.PortalPrincipal"
| roleClassNames="com.liferay.portal.security.jaas.PortalRole"
| debug="99"
| useContextClassLoader="false"
| />
|
A system property java.security.auth.login.config is used to direct to the jaas.config, which holds the configuration.
| PortalRealm {
| com.liferay.portal.kernel.security.jaas.PortalLoginModule required;
| };
|
Inside JBoss I tried to configure the same stuff inside login-config.xml:
| <application-policy name = "PortalRealm">
| <authentication>
| <login-module code ="com.liferay.portal.security.jaas.PortalLoginModule"
| flag = "required">
| <module-option name="userClassNames">com.liferay.portal.security.jaas.PortalPrincipal</module-option>
| <module-option name="roleClassNames">com.liferay.portal.security.jaas.PortalRole</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
And the security domain is defined inside jboss-web.xml:
<security-domain>java:/jaas/PortalRealm</security-domain>
But I always get:
12:41:45,233 WARN [JAASRealm] Login exception authenticating username "xxx"
javax.security.auth.login.LoginException: No ClassLoaders found for: com.liferay.portal.security.jaas.PortalLoginModule
...
Any ideas how to solve this problem?
Thanks in advance,
tf
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089692#4089692
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089692
18 years, 6 months
[JBoss Seam] - Re: EntityQuery bug
by pete.muir@jboss.org
For the second issue (JBSEAM-1916) you should do something like this
@Name("mdrCases")
| public class MdrCasesQuery extends EntityQuery {
|
| private boolean allCases;
|
| public void executeSearch() {
| String ejbql = "from MdrCase c".concat(allCases? "": " where (c.endingTreatmentDate is null)");
| super.setEjbql(ejbql);
| }
| }
<h:commandButton action="#{mdrCases.executeSearch}" value="Search" />
Why? Well parsing the ejbql is a reasonably expensive operation so to save some cycles you have to explicitly tell the Query that the ejbql has changed. This reserves the refresh method for updating the result based on changed restrictions/changed data.
I'm going to document this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089689#4089689
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089689
18 years, 6 months