[jboss-user] [JBossWS] - Need help: SAXParseException: An invalid XML character (Unic
Hi, I encounter an exception by requesting my soap application. | Caused by: java.io.IOException: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1f) was found in the element content of the document | at org.jboss.wsf.common.DOMUtils.parse(DOMUtils.java:160) | at org.jboss.wsf.common.DOMUtils.parse(DOMUtils.java:141) | at org.jboss.ws.core.soap.SOAPElementWriter.writeElement(SOAPElementWriter.java:117) | ... 26 more i think , it is because some utf-8 chars in soap xml can not be handled correctly. I have tried -Dfile.encoding=utf-8 in jvm but it does not help. i use jbossws-native-3.0.2.GA + jbossAS4.2.2.GA+sun1.5 jdk How can i fix it ? Can someone help? Thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4170272#4170272 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4170272 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Newbie question : What does it mean...
Hi all, I have a Jboss WS which handles 50,000 SOAP requests everyday. Almost every 10,000 requests i got an Exception: ERROR org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS - SOAP request exception | org.jboss.ws.core.CommonSOAPFaultException: Read timed out | at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:93) | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:280) | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:195) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:447) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | 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.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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | 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:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | I know it is an Exception about Read Time, but , read what??? read request from client or something comes from server? What could it be? Lots of thanks in advance for any explanation/help View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166948#4166948 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166948 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: JBoss (web service app) huge memory usage
It is ISM of Solaris. Timesten runs in ISM and my JVM didnot close ISM by default !! What a lesson :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166679#4166679 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166679 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: JBoss (web service app) huge memory usage
hi, peter thank you for your reply. I think -d64 caused too much unnecessary memory, but I can not simplely get -d64 away, because i use Timesten and jboss need to load 64bit timesten lib by starting. and also , i start to suspect that Solaris didnot take my -Xss opt at all, there are 157 threads runing in system and my System stack size is 8M , plus the stupid -d64 , is that 5.5 memory usage resonable? it is realy wired View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166102#4166102 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166102 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: JBoss (web service app) huge memory usage
Hi, peter, thank you for your advice. yes you right, i should contact Sun or Oracle, why i did put the question here is because maybe someone here encoountered the same problem as mine and know how to solve it. And also, i am not sure it would be jvm problem so i wonder if i can tune JbossAS to reduce memory usage. Sofar, my webservice and Oracle Timesten db which takes more then 10G memory runs on the same productive server(16G+Solaris64bit) and i can not deploy undeploy app / shutdown start jboss for test. (unfortunately i do not have a sever with same equipment for test.) if i run my webservice (remote connect Timesten with client driver) on a 32bitSolaris with 4G memory, i didnot see any unormal memory usage. Today, i wonder if solaris really take my -Xss def and will install dtrace script on server to see how many memory each thread used. Yes, surely will ask Sun about this also . View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166235#4166235 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166235 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: JBoss (web service app) huge memory usage
hi,peter thank you for advice :). Creating a new jbossAs instance on our productive server for testing is not a good idea (i have only 16G phisical memory and timesten will take almost 12-14G) . If i do that my boss will yell at me :) i have seen the report from tomcat in webconsole, we have only 108 threads on http. Default 150 should be ok for our case. The problem is, no matter max heap size max perm size i set, 5.5G mem usage is far beyond the limit. By default Solalis stack size is 8M , and prstat -L can not list memory usage for each lwp, so i suspect solaris server jvm didnot take -xss (maybe it only take -XX:ThreadStackSize)... Gruss View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166268#4166268 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166268 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: JBoss (web service app) huge memory usage
by the way, your presentation is very helpful, thanks a lot :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166269#4166269 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166269 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - JBoss (web service app) huge memory usage
hi, all i have a ejb3 based webservice (jbossWS) on JbossAS 4.2.2GA which generate responses for about 10.000 requests everyday. Physical memory is 16G, 32Cpu, SunOS 5.10 (sparcv9) 64bit. My jvm opt is -Xms1024m -Xms1024m -Xss256k -d64 prstat shows that there are fixed 178 lwps but the avg. memory usage is 5.5G, it is huge! The service has runed more than one week, there is no outOfMemory crash, memory usage max. reached 5.8G. i tested my App with jProfiler on local server (identical server config), i didnot see any memory leak. So I am very confused :( can anyone help? Thanks in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4164407#4164407 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4164407 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: JBoss (web service app) huge memory usage
here is my memory pool: Total Memory Pools: 5 | | Pool: Code Cache (Non-heap memory) | | Peak Usage : init:2097152, used:19078080, committed:19136512, max:50331648 | Current Usage : init:2097152, used:19070336, committed:19136512, max:50331648 | | | |-| committed:18,25Mb | +-+ | |/| | max:48Mb | +-+ | |-| used:18,19Mb | | | Pool: PS Eden Space (Heap memory) | | Peak Usage : init:270532608, used:328335360, committed:328335360, max:349634560 | Current Usage : init:270532608, used:121320968, committed:297140224, max:328335360 | | | |--| committed:283,38Mb | +-+ | |/ | | max:313,12Mb | +-+ | || used:115,7Mb | | | Pool: PS Survivor Space (Heap memory) | | Peak Usage : init:45088768, used:45088424, committed:61734912, max:61734912 | Current Usage : init:45088768, used:14708968, committed:14745600, max:14745600 | | | |-| committed:14,06Mb | +-+ | |/| max:14,06Mb | +-+ | || used:14,03Mb | | | Pool: PS Old Gen (Heap memory) | | Peak Usage : init:717225984, used:364008224, committed:717225984, max:717225984 | Current Usage : init:717225984, used:217202688, committed:717225984, max:717225984 | | | |-| committed:684Mb | +-+ | |/ | max:684Mb | +-+ | || used:207,14Mb | | | Pool: PS Perm Gen (Non-heap memory) | | Peak Usage : init:25165824, used:75780424, committed:88080384, max:88080384 | Current Usage : init:25165824, used:75610008, committed:83886080, max:88080384 | | | |-| committed:80Mb | +-+ | | | | max:84Mb | +-+ | |---| used:72,11Mb View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4164491#4164491 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4164491 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: JBoss (web service app) huge memory usage
in Wiki i found followed statement: anonymous wrote : DO NOT USE -d64 (64-bit) if you do not use ABOVE the maximum 32 bit heap space (2-4 GB of heap). Using 64 bit addressing requires MORE memory to do the same amount of work and provides no advantage for applications that do not need this much memory. i used -d64 in jvm opt, is that reason? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4164498#4164498 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4164498 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Need help : JBossWS Security!
[EMAIL PROTECTED] wrote : helmutdoe wrote : Same Problem here ... | | | | $Proxy29 cannot be cast to org.jboss.ws.core.StubExt | | | | did someone solve this problem? | | Could you please post your client side code, including the imports? (you too xinhua). I suspect you might be mixing jaxrpc and jaxws classes. Hi, here is my import import java.io.File; | import java.net.URL; | import javax.xml.namespace.QName; | import javax.xml.ws.BindingProvider; | import javax.xml.ws.Service; | import org.jboss.ws.core.StubExt; | is that right, thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4161534#4161534 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4161534 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Need help : JBossWS Security!
Sorry, forgot to paste the codes | public static void main(String[] args) { | KSBService ksb = null; | try { | //SSL keystore | System.setProperty(javax.net.ssl.keyStore, c:\\ksbws.keystore); | System.setProperty(javax.net.ssl.trustStore, c:\\ksbws.keystore); | System.setProperty(javax.net.ssl.keyStorePassword, test); | System.setProperty(javax.net.ssl.trustStorePassword, test); | System.setProperty(javax.net.ssl.keyStoreType, jks); | System.setProperty(javax.net.ssl.trustStoreType, jks); | System.setProperty(org.jboss.security.ignoreHttpsHost,true); | | //Signature keystore | System.setProperty(org.jboss.ws.wsse.keyStore,c:\\ksbws_security.keystore); | System.setProperty(org.jboss.ws.wsse.trustStore,c:\\ksbws_security.keystore); | System.setProperty(org.jboss.ws.wsse.keyStorePassword, test); | System.setProperty(org.jboss.ws.wsse.trustStorePassword, test); | System.setProperty(org.jboss.ws.wsse.keyStoreType, jks); | System.setProperty(org.jboss.ws.wsse.trustStoreType, jks); | | Service service = Service.create(new URL(http://localhost:8180/KSBService/KSBServiceBean?wsdl;), | new QName(http://xxx.xxx.de/,KSBServiceBeanService;) ); | | | | | ksb= service.getPort(KSBService.class); | | URL securityURL = new File(META-INF/jboss-wsse-client.xml).toURL(); | URL securityConfig= new File(META-INF/standard-jaxws-client-config.xml).toURL(); | ((StubExt) port).setSecurityConfig(securityURL.toExternalForm()); | ((StubExt) port).setConfigName(Standard WSSecurity Client,securityConfig.toExternalForm()); | | | ((BindingProvider) port).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, kermit); | ((BindingProvider) port).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, thefrog); | | | | } catch (Exception e) { | | ... | and also, i am not very clear about mixing jaxrpc and jaxws classes. :? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4161556#4161556 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4161556 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Steps for implementing WS-Security in JBoss using Userna
i tried it in JBoss4.2.2GA+Jbossws-3.0.1-native-2.0.4.GA, Server works fine but still the client error: wsse:Security, which is missing. I use all the jar under /deploy/jbossws.sar/ as my runtime lib for my client program. And i also have copied standard-jaxws-client-config.xml from /deploy/jbossws.sar/META-INF into my own META-INF, and putted a new created jboss-wsse-client.xml in META-INF. i also putted bp.getRequestContext().put(StubExt.PROPERTY_AUTH_TYPE, StubExt.PROPERTY_AUTH_TYPE_WSSE) to prevent basic auth. but everytime i run my client, exception wsse:Security, which is missing start to fly. I checked the request , found that there is no S:head at all Please help me View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4148297#4148297 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4148297 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Need help : JBossWS Security!
ok, i see, maybe jboss-wsse-client.xml or standard-jaxws-client-config.xml not loaded ,so i copied the both xml into META-INF and also changed the client code like this: | | Service s = Service.create(url, qn); | Test port = s.getPort(Test.class); | | URL securityURL = new File(META-INF/jboss-wsse-client.xml).toURL(); | URL securityConfig= new File(META-INF/standard-jaxws-client-config.xml).toURL(); | ((StubExt) port).setSecurityConfig(securityURL.toExternalForm()); | ((StubExt) port).setConfigName(Standard WSSecurity Client,securityConfig.toExternalForm()); | | | ((BindingProvider) port).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, kermit); | ((BindingProvider) port).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, thefrog); | ((BindingProvider) port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, http://localhost:4040/miguoWS/TestBean;); but in soap monitor i found wsse: Security is still missing in request. (jboss4.2.1GA, jbossws-3.0.1-native-2.0.4.GA, jdk1.5 update 15) Really nobody can help me out here ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4148096#4148096 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4148096 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Need help : JBossWS Security!
Hi all, i want to use ssl and signature to protect my WS on Jboss4.2.2GA , ssl works perfectly but when i use client to send a request with signature, i always got an error. My codes, configurations and evn listed as followed: JBoss4.2.2GA jdk1.5 SSL keyStoretrustStore file: ksbws.keystore Signature keyStoretrustStore file: ksbws_security.keystore Server Side: | @Stateless | @SecurityDomain(JBossWS) | @RolesAllowed(friend) | @WebService(endpointInterface=de.xxx.xxx.KSBService) | @WebContext(contextRoot=/KSBService, | urlPattern=/*, | authMethod=BASIC, | transportGuarantee=CONFIDENTIAL, | secureWSDLAccess=false) | @EndpointConfig(configName = Standard WSSecurity Endpoint) | public class KSBServiceBean implements KSBService,KSBServiceRemote,KSBServiceLocal{ | | private static final Logger log = Logger.getLogger(KSBServiceBean.class); | | @EJB | KSBManagerLocal ksb; | | public sting validateLogin(Long userNo, String password) { | // doSomething | } | | } in META-INF/ i putted ksbws_security.keystore and jboss-wsse-server.xml here is my jboss-wsse-server.xml: | jboss-ws-security xmlns=http://www.jboss.com/ws-security/config; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://www.jboss.com/ws-security/config | http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd; | key-store-fileMETA-INF/ksbws_security.keystore/key-store-file | key-store-passwordtest/key-store-password | trust-store-fileMETA-INF/ksbws_security.keystore/trust-store-file | trust-store-passwordtest/trust-store-password | config | sign type=x509v3 alias=KSBWS_SECURITY / | requires | signature / | /requires | /config | /jboss-ws-security | Server side jar deployed without exception Client: codes | public static void main(String[] args) { | KSBService ksb = null; | try { | //SSL keystore | System.setProperty(javax.net.ssl.keyStore, c:\\ksbws.keystore); | System.setProperty(javax.net.ssl.trustStore, c:\\ksbws.keystore); | System.setProperty(javax.net.ssl.keyStorePassword, test); | System.setProperty(javax.net.ssl.trustStorePassword, test); | System.setProperty(javax.net.ssl.keyStoreType, jks); | System.setProperty(javax.net.ssl.trustStoreType, jks); | System.setProperty(org.jboss.security.ignoreHttpsHost,true); | | //Signature keystore | System.setProperty(org.jboss.ws.wsse.keyStore,c:\\ksbws_security.keystore); | System.setProperty(org.jboss.ws.wsse.trustStore,c:\\ksbws_security.keystore); | System.setProperty(org.jboss.ws.wsse.keyStorePassword, test); | System.setProperty(org.jboss.ws.wsse.trustStorePassword, test); | System.setProperty(org.jboss.ws.wsse.keyStoreType, jks); | System.setProperty(org.jboss.ws.wsse.trustStoreType, jks); | | Service service = Service.create(new URL(http://localhost:8180/KSBService/KSBServiceBean?wsdl;), | new QName(http://xxx.xxx.de/,KSBServiceBeanService;) ); | | | | | ksb= service.getPort(KSBService.class); | | ((StubExt) ksb).setConfigName(Standard WSSecurity Client); | | BindingProvider bp = (BindingProvider)ksb; | bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, kermit); | bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, thefrog); | | | } catch (Exception e) { | | ... | | | also, i putted jboss-wsse-client.xml in META-INF/ | jboss-ws-security xmlns=http://www.jboss.com/ws-security/config; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://www.jboss.com/ws-security/config | http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd; | config | sign type=x509v3 alias=KSBWS_SECURITY/ | requires | signature/ | /requires | /config | /jboss-ws-security | But when i run client , an Exception like this: | java.lang.ClassCastException: $Proxy23 cannot be cast to org.jboss.ws.core.StubExt | at dex...MultiThreadsTest.main(MultiThreadsTest.java:43) | Exception in thread Thread-1 com.sun.xml.ws.client.ClientTransportException: request requires HTTP authentication: Unauthorized | at
[jboss-user] [JBossWS] - Re: Need help : JBossWS Security!
ok, i think ((StubExt) ksb).setConfigName(Standard WSSecurity Client); is in a wrong place, now i put it under http auth block | . | BindingProvider bp = (BindingProvider)ksb; | bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, kermit); | bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, thefrog); | | ((StubExt) ksb).setConfigName(Standard WSSecurity Client); | . | HTTP authentication: Unauthorized exception by client is gone , but server side runs into trouble: | $ 11:30:01,343 ERROR [HandlerChainExecutor] Exception during handler processing | java.lang.NullPointerException | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:188) | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:183) | at org.jboss.ws.extensions.security.Util.findElement(Util.java:89) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:115) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | 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.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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | 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:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | 11:30:01,343 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | javax.xml.ws.WebServiceException: java.lang.NullPointerException | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at
[jboss-user] [JBossWS] - Re: Need help : JBossWS Security!
i updated the jbossWS-native in jboss4.2.2GA to jbossws-3.0.1-native-2.0.4.GA the severside exception is also changed:( | 12:45:06,234 ERROR [HandlerChainExecutor] Exception during handler processing | org.jboss.ws.core.CommonSOAPFaultException: This service requires wsse:Security, which is missing. | at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:100) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.decodeMessage(WSSecurityDispatcher.java:207) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:83) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:97) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:127) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:171) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | 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.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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | 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:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | 12:45:06,234 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: This service requires wsse:Security, which is missing. | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:97) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:127) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:171) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284) | at
[jboss-user] [JBoss Seam] - @DataModelSelection question
Hi,all I have a very simple test code for @DataModel @DataModelSelection,but it does not work...:(. The list is shown correctly, but everytime i click on a row, a ClassCastException comes :((( here is the code: | | @Name(siteeditorPB) | @Scope(ScopeType.CONVERSATION) | public class SiteEditorBean | { | | @Logger | private Log log; | | @In(create = true,value=siteeditor_glue) | SiteEditorGBean sglue; | | | @DataModel | ListPage pages; | | @DataModelSelection | Page page; | | @Factory(scope=ScopeType.CONVERSATION) | @Begin(join=true) | public ListPage getPages() | { | //load data from DB | return sglue.loadAllPages(); | } | | @Begin(join=true) | public void selectPage(){ | if(page!=null){ | log.info(- #0 selected, page.getName()); | } | } | | | | | } | xhtml | h:form | | rich:dataTable id=pages value=#{pages} var=page rows=10 width=100% | | a4j:support event=onRowClick action=#{siteeditorPB.selectPage} ignoreDupResponses=true / | | | rich:column | f:facet name=header | h:outputText value=ID/ | /f:facet | h:outputText value=#{page.id}/ | /rich:column | | | rich:column |f:facet name=header |h:outputText value=Name/ |/f:facet |h:outputText value=#{page.name}/ | /rich:column | | | /rich:dataTable | | /h:form | CCE exception: | 15:41:48,468 FATAL [application] /pages/group_header/god.xhtml @37,102 action=#{siteeditorPB.selectPage}: java.lang.ClassCastException: java.util.ArrayList | javax.faces.el.EvaluationException: /pages/group_header/god.xhtml @37,102 action=#{siteeditorPB.selectPage}: java.lang.ClassCastException: java.util.ArrayList | | at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73) | at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91) | at javax.faces.component.UICommand.broadcast(UICommand.java:383) | at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:62) | at org.ajax4jsf.component.UIDataAdaptor.broadcast(UIDataAdaptor.java:1198) | at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184) | at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162) | at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350) | 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 javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) | 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.MultipartFilter.doFilter(MultipartFilter.java:85) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | 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:45) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) | at
[jboss-user] [JBoss Seam] - Re: @DataModelSelection question
resolved code should be: | | . | @Factory(pages) | @Begin(join=true) | public ListPage getPages() | { | pages = sglue.loadAllPages(); | return pages; | | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4125563#4125563 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4125563 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @DataModelSelection question
thank you blabno, you are right :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4125573#4125573 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4125573 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - why seam conversational component created for serval time?
Hi all, I have a conversation scope seam component (not ejb), and in @Create function i retrieve recodes from datebase. But, i found that ,this @Create function will be called for three times everytime i open the page! :O I have no idea what happend, so strang. Please help me. thanks in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4111226#4111226 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111226 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: boring Login attemption --- authenticate() invocation pr
Yes,yes!!! Problem solved. Thank you very much, Petterson! :D View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4110761#4110761 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110761 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - boring Login attemption --- authenticate() invocation proble
Hi,all I use seam2.0.1.snapshoot, the authenticate() still be called twice when login fails, it is so bad. And futhermore, I found that everytime i invoke server side method through ajax engine, the authenticate() will also be invoked. It is very boring feature. How can i shut down such login attemption? anyone can help? thanks in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4110631#4110631 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110631 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @Startup and Seam interceptor
[EMAIL PROTECTED] wrote : So how does it not work? Does the interceptor run? Does it run and not set the values? nothing happened. @Startup is ignored also. Interceptor does not run. i put a @Create in this @Startup seam component, if my annotation @Kleber is there, @Create function doesnt run, the compoent wont be created by deployment. I donot know how to debug a @Startup Seam component :( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109383#4109383 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109383 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - @Startup and Seam interceptor
Hi everybody, it seems that Seam interceptor doesnot work with @Startup. I have an app scope Seam Component loaded by deployment, in this Seam Component i use my own annotaion (which used seam interceptor) to inject jndi resource, but it does not work. please help many thanks in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4108900#4108900 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108900 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @Startup and Seam interceptor
hi, yes, interceptor works fine with other component without @Startup At first, i have two annotations | @Target(TYPE) | @Documented | @Retention(RUNTIME) | @Interceptors(KleberInterceptor.class) | public @interface Kleber | { | | } | interceptor is supposed to check filed with @Jndi annotation and take the string from @jndi for jndi lookup | public class KleberInterceptor { | | @PostConstruct | public Object jndiLookup(InvocationContext invocation )throws Exception{ | Object target = invocation.getTarget(); | Field[] fields = target.getClass().getDeclaredFields(); | | try{ | InitialContext ctx = new InitialContext(); | for(Field field: fields){ | Jndi jndi = field.getAnnotation(Jndi.class); | if(jndi!=null){ | Object obj = ctx.lookup(jndi.value()); | field.setAccessible(true); | field.set(target, obj); | } | } | | }catch(Exception ex){ | ex.printStackTrace(); | } | | return invocation.proceed(); | } | |@AroundInvoke |otherMethods | | | } | I can not use @Kleber on a component which already has a @Startup, what i can do now ,is to write jndi lookup codes directly in @Startup component, and it works. is there any better way to inject jndi resouce in @Startup Seam component? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4108946#4108946 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108946 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - seam theme doesnot work in hotdeploy mode
Hello everybody, i copied theme file default.properties into WEB-INF/dev/, and add | | theme:theme-selector cookie-enabled=true | theme:available-themes | valuedefault/value | /theme:available-themes | /theme:theme-selector | in components.xml,but it does not work. Can anyone help? thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4107093#4107093 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107093 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam theme doesnot work in hotdeploy mode
ok,done View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4107132#4107132 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107132 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to integrate Ext with Seam using JSON
Hi, I suggest to use Ext.data.ArrayReader not Json. I use a4j:jsFuction to get collection from server... For example, after create a grid object : | Ext.onReady(a4j_loadRoleUsers); | here a4j_loadRoleUsers is a4j:jsFuction defined BEFORE your grid js declaration. Maybe there is a better way to do this,but ,at least it works :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4106316#4106316 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106316 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Need Help! encounter strange Exception:not used by any E
Hi, i use DAO pattern, all CRUD fuctions are supposed come from GenericDAO for example, in GenericDAO i defined findAll(), findById()then , i let EmailTemplate extends GenericDAO to get such frequently used functions and these crud functions are also INVOKED in my SLSB. If the reason of this exception is i did not defined any method in my DAO session Bean, please tell me what is the pupose of this Exception, against inheritance in EJB3 world? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4106440#4106440 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106440 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to integrate Ext with Seam using JSON
hi,damianharvey my trick is , first create grid object with a createGrid(data) function, then use js:function to get collection from server and transfer it into data,after that i use js:function oncomplete to call createGrid(data) to build the grid. yes, i know js:Function is a very cheep way, :) but so far i didnot see any problem with xhtml and ajax4jsf filters. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4106465#4106465 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106465 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Need Help! encounter strange Exception:not used by any EJBs
Hi, everybody, I hava a simple ejb3 app which use generic dao pattern to run on jbosss as 4.2.2GA. The structure of app is like this: | Emailtemplate | EmailtemplateDAO extends GenericDAOEmailtemplate, Long | EmailtemplateDAOImpl implements EmailtemplateDAO extends GenericDAOImplEmailtemplate, Long | then , in a SLSB (EmailTemplateManagerSB), i simply injected dao interface in it: | ... | @EJB | EmailtemplateDAO eDAO; | | | | i only use annotations for all ejbs without any setup in dd xml. When i deploy my app, i got a runtime exception: | 17:56:10,065 INFO [EJBContainer] STOPPED EJB: xx..comit.bussiness.services.EmailTemplateManagerSB ejbName: EmailTemplateManagerSB | 17:56:10,159 WARN [ServiceController] Problem starting service jboss.j2ee:ear=tut2.ear,jar=tut2.jar,name=EmailTemplateManagerSB,service=EJB3 | java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container EmailTemplateManagerSB: reference class: xx..comit.persistence.dao.EmailtemplateDAO ejbLink: not used by any EJBs | at org.jboss.injection.EjbEncInjector.inject(EjbEncInjector.java:88) | at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:566) | at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:154) | at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:102) | 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.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor3.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.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor9.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.server.Invocation.invoke(Invocation.java:86) | 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 $Proxy56.start(Unknown Source) | at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120) | at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:301) | at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:362) | at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor3.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.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at
[jboss-user] [JBoss Seam] - Re: Seam components Hotdeploy feature question
I got it. i forgot to put seam.properties in web-inf/classes :) Now all seam components run perfectly in war. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4105348#4105348 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105348 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam components Hotdeploy feature question
Hello everybody, so far i used seam hotdeploy to develope seam component in war, it is very nice feature! My question is , after developement finish, do i have to move all seam components from war into jar? Is it possible to move seam components from war-inf/dev directly to war-inf/classes? thanks in advance for any help and advice! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4105342#4105342 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105342 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to use Seam interceptor?
both from seam import org.jboss.seam.annotations.intercept.Interceptors; and import org.jboss.seam.annotations.intercept.AroundInvoke; is it right? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4105413#4105413 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105413 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to use Seam interceptor?
Hi pete, it seems that @Interceptors(JndiInterceptor.class) only works on TYPE not on FIELD and not on METHOD, is that true? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4105449#4105449 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105449 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to use Seam interceptor?
Hello everybody, i want to create an annotation @JndiInject(java:/) above an attribute for jndi lookup. I use java bean (no EJB3), so i created annotation like this: | @Target(FIELD) | @Documented | @Retention(RUNTIME) | @Interceptors(JndiInterceptor.class) | public @interface Jndi | { | String value(); | } | and i think interceptor class should be like this: | public class JndiInterceptor { | | @AroundInvoke | public Object jndiLookup(InvocationContext invocation )throws Exception{ | | return invocation.proceed(); | } | } | but it doesnt work,:...( can anyone help? many thanks in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4105396#4105396 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105396 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Component as Richfaces Binding bean???
hi, xhtml: | html xmlns=http://www.w3.org/1999/xhtml; | xmlns:ui=http://java.sun.com/jsf/facelets; | xmlns:h=http://java.sun.com/jsf/html; | xmlns:s=http://jboss.com/products/seam/taglib; | xmlns:f=http://java.sun.com/jsf/core; | xmlns:a4j=https://ajax4jsf.dev.java.net/ajax; | xmlns:rich=http://richfaces.ajax4jsf.org/rich; | | ui:composition template=../#{theme.template} | | | ui:define name=body | | rich:modalPanel id=Fenster minHeight=600 minWidth=600 zindex=2000 binding=#{window.panel} | f:facet name=header | h:outputText value=Neu Fenster / | /f:facet | f:facet name=controls | h:graphicImage value=../images/default/modal/close.png style=cursor:pointer onclick=Richfaces.hideModalPanel('Fenster') / | /f:facet | | /rich:modalPanel | | /ui:define | /ui:composition | /html | binding bean: | | @Name(window) | public class MsgMBean { | | @Logger Log log; | private UIModalPanel panel; | | public UIModalPanel getPanel() { | log.info(--- Panel kommt); | return panel; | } | | public void setPanel(UIModalPanel panel) { | this.panel = panel; | } | | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4104092#4104092 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4104092 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam Component as Richfaces Binding bean???
yes, JSF binding bean could be a Seam Component. How about Richfaces binding bean? from Seam 1.2.1GA ~ 2.0.0GA , if i tried to use a Seam compoent as richfaces binding bean, followed exception tells me no way: Caused by: java.lang.IllegalArgumentException: argument type mismatch | 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 javax.el.BeanELResolver.setValue(BeanELResolver.java:108) | at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:68) | at com.sun.faces.el.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:93) | at org.jboss.el.parser.AstPropertySuffix.setValue(AstPropertySuffix.java:73) | at org.jboss.el.parser.AstValue.setValue(AstValue.java:84) | at org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249) | at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:93) | ... 74 more | What a pity! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4103678#4103678 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103678 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Concurrent requests on SFSB
Hi, all from document i know: anonymous wrote : | Concurrent requests to session-scoped stateful session beans are always serialized by Seam. | How about App. Scope SFSB? I need an APP.Scope SFSB to store informations which is also supposed to be accessed by Session Scope / Conversation Scope SB, how can i do that ? Thanks in advance for any advice View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101397#4101397 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101397 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problem with Seam2.0.Beta1 a4j:poll
hi, i have a a4j:poll tag on my page which has a small time interval value. (smaller than session timeout). It runs perfectly in a tab. But if i logout from another tab. (close my session). In the first tab i got immediately a very BORING alert dialog : View state could't be restated. reload page? and errors | 16:32:08,058 ERROR [ExceptionFilter] exception root cause | java.lang.IllegalArgumentException: Stack must not be null | at org.jboss.seam.core.ConversationEntry.init(ConversationEntry.java:39) | at org.jboss.seam.core.ConversationEntries.createConversationEntry(ConversationEntries.java:53) | at org.jboss.seam.core.Manager.createConversationEntry(Manager.java:510) | at org.jboss.seam.core.Manager.beforeRedirect(Manager.java:651) | at org.jboss.seam.faces.FacesManager.beforeRedirect(FacesManager.java:63) | at org.jboss.seam.faces.FacesManager.appendConversationIdFromRedirectFilter(FacesManager.java:222) | at org.jboss.seam.web.RedirectFilter$1.sendRedirect(RedirectFilter.java:65) | at com.sun.faces.context.ExternalContextImpl.redirect(ExternalContextImpl.java:419) | at org.ajax4jsf.framework.ajax.AjaxViewHandler.restoreView(AjaxViewHandler.java:180) | at org.jboss.seam.jsf.SeamViewHandler.restoreView(SeamViewHandler.java:93) | at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316) | at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316) | but when i use SEAM 1.3.0Alpha , page was redirected to login page smoothly without such BORING alert and exception. how can i suppress this stupid dialog? Please help me :...( many thanks ! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4067029#4067029 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4067029 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Seam2.0.Beta1 a4j:poll
hi,wise_guybg thank you for your reply. Unfortunately, it doesnot help. Same boring dialog and same boring exception :...( ps: i think i have a right seam filter !-- Seam -- | | listener | listener-classorg.jboss.seam.servlet.SeamListener/listener-class | /listener | | servlet | servlet-nameSeam Resource Servlet/servlet-name | servlet-classorg.jboss.seam.servlet.ResourceServlet/servlet-class | /servlet | | servlet-mapping | servlet-nameSeam Resource Servlet/servlet-name | url-pattern/seam/resource/*/url-pattern | /servlet-mapping | | filter | filter-nameSeam Filter/filter-name | filter-classorg.jboss.seam.servlet.SeamFilter/filter-class | /filter | | filter-mapping | filter-nameSeam Filter/filter-name | url-pattern/*/url-pattern | /filter-mapping | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4067072#4067072 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4067072 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem restoring view after timeout
hi , have you resolved this problem? I have the same one by using a4j:poll:( please help many thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4067086#4067086 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4067086 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - seam (jsf) messages question
hi, is that possible to get facesMessages ojbect WHEN a page is rendered? i created a backing bean MsgBean and bind it with h:messages | h:messages id=mms globalOnly=true layout=list | styleClass=errors binding=#{msgbb.msgs}/ | | public class MsgBean { | |UIMessages msgs ; | | public UIMessages getMsgs() { | return msgs; | } | | public void setMsgs(UIMessages msgs) { | this.msgs = msgs; | } | but i donnot know how to get message content through getter and setter. :.( or there is a seam way to do that? can anyone help? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4066693#4066693 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066693 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - question about web app debug
hello all, i just want to know, except debug.seam page is there any possibility to debug a seam web app or a normal web app line by line . e.g. set a breakpoint, intercept web request , debug app line by line, etc. thanks :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4061236#4061236 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061236 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Question: seam jPDL
hi, the expression attribute for decision tag is very nice : decision name=decision1 expression=#{xx.xxx} but now, i want to create a n-way decisioin in a custom node, can i use node name=node1 expression=#{xx.xxx} ? if not, how can i get ExcuteContext so that i can use ctx.leaveNode(ctx, big amounts); thanks for any help :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4060372#4060372 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060372 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Strange Exception
Hi,all Sometime, a very strange exception will occur (at least for me it is:P) when i QUICKLY double click a Statefull SB supported link | Caused by javax.el.ELException with message: javax.ejb.ConcurrentAccessException: no concurrent calls on stateful bean 'jboss.j2ee:service=EJB3,name=TestPage2Bean' (EJB3 4.3.13) What does it mean? thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059536#4059536 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059536 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - jBPM and Seam Events question
hello all, i use quartz to trigger a process and in a process action i want to raise an seam event. But i failed to do that. The exception is something about trasaction : 10:37:19,918 ERROR [DbPersistenceService] hibernate flush failed | org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#1 | ] | at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1765) | at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2407) | at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307) | at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607) | at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92) | at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248) | at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232) | at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140) | at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) | at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) | at org.jbpm.persistence.db.DbPersistenceService.flushSession(DbPersistenceService.java:239) | at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:180) | at org.jbpm.svc.Services.close(Services.java:211) | at org.jbpm.JbpmContext.close(JbpmContext.java:139) | at org.jboss.seam.core.ManagedJbpmContext.destroy(ManagedJbpmContext.java:106) | 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.jboss.seam.util.Reflections.invoke(Reflections.java:21) | at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124) | at org.jboss.seam.Component.callComponentMethod(Component.java:1904) | at org.jboss.seam.Component.callDestroyMethod(Component.java:1835) | at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:232) | at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:484) | at org.jboss.seam.contexts.Lifecycle.endCall(Lifecycle.java:81) | at org.jboss.seam.core.AbstractDispatcher$Asynchronous.execute(AbstractDispatcher.java:81) | at org.jboss.seam.core.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:242) | at org.quartz.core.JobRunShell.run(JobRunShell.java:202) | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529) | 10:37:20,230 ERROR [DbPersistenceService] hibernate rollback failed | java.lang.NullPointerException | at org.jbpm.persistence.db.DbPersistenceService.rollback(DbPersistenceService.java:271) | at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:182) | at org.jbpm.svc.Services.close(Services.java:211) | at org.jbpm.JbpmContext.close(JbpmContext.java:139) | at org.jboss.seam.core.ManagedJbpmContext.destroy(ManagedJbpmContext.java:106) | 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.jboss.seam.util.Reflections.invoke(Reflections.java:21) | at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124) | at org.jboss.seam.Component.callComponentMethod(Component.java:1904) | at org.jboss.seam.Component.callDestroyMethod(Component.java:1835) | at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:232) | at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:484) | at org.jboss.seam.contexts.Lifecycle.endCall(Lifecycle.java:81) | at org.jboss.seam.core.AbstractDispatcher$Asynchronous.execute(AbstractDispatcher.java:81) | at org.jboss.seam.core.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:242) | at org.quartz.core.JobRunShell.run(JobRunShell.java:202) | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
[jboss-user] [JBoss Seam] - jBPM processInstance question
hi, i want to inject processInstance in action after @CreateProcess like following code: @Name(printSthAction) | @AutoCreate | public class PrintSthAction { | @Logger Log log; | | @In | private String content; | | @In | ProcessInstance processInstance; | | | public void printout(){ | log.info(= process Instance is null? #0, processInstance); | log.info(= print #0, content); | } | | } jPDL: ?xml version=1.0? | | process-definition name=test | | start-state name=start | transition name=printout to=complete | action expression=#{printSthAction.printout}/ | /transition | /start-state | | end-state name=complete / | | /process-definition But, i got an exception like this: | 10:31:53,653 ERROR [GraphElement] action threw exception: couldn't evaluate expression '#{printSthAction.printout}' | org.jbpm.JbpmException: couldn't evaluate expression '#{printSthAction.printout}' | at org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:52) | at org.jbpm.graph.def.Action.execute(Action.java:119) | at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:235) | at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:212) | at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:182) | at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:166) | at org.jbpm.graph.def.Transition.take(Transition.java:106) | at org.jbpm.graph.def.Node.leave(Node.java:383) | at org.jbpm.graph.node.StartState.leave(StartState.java:70) | 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.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173) | at org.jbpm.graph.def.Node_$$_javassist_432.leave(Node_$$_javassist_432.java) | at org.jbpm.graph.exe.Token.signal(Token.java:178) | at org.jbpm.graph.exe.Token.signal(Token.java:123) | at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:217) | at org.jboss.seam.core.BusinessProcess.createProcess(BusinessProcess.java:116) | at org.jboss.seam.interceptors.BusinessProcessInterceptor.afterInvocation(BusinessProcessInterceptor.java:98) | at org.jboss.seam.interceptors.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:50) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103) | at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151) | at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87) | at de.strato.bussiness.schedular.job.AutoProcessJob2_$$_javassist_477.excute(AutoProcessJob2_$$_javassist_477.java) | at de.strato.bussiness.schedular.QuartzTimeServiceBean.startProccess(QuartzTimeServiceBean.java:42) | 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.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) | at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57) | at org.jboss.seam.interceptors.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:50) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | at
[jboss-user] [JBoss Seam] - Re: jBPM processInstance question
i found a solution: @Name(printSthAction) | @AutoCreate | public class PrintSthAction { | @Logger Log log; | | @In | private String content; | | @In | private BusinessProcess businessProcess; | | @In | private JbpmContext jbpmContext; | | public void printout(){ | | log.info(= process Instance is null? #0, jbpmContext.getProcessInstance(businessProcess.getProcessId())); | log.info(= print out sth: #0, content); | } | | } | Maybe it is not a good way, but i got what i want :D View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4057272#4057272 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057272 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Help : seamdisc problem
Hi, I am very curious to see how richfaces and trinidad run together but example seamdiscs from Seam1.3.0.Alpha does not work correctly on AS 4.2 by me: all rich components on pages can not be rendered...need help. thanx. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4055024#4055024 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4055024 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Sometime seam listener does not work correctly...
hi,all i use Seam 1.2.1GA security and event listener to trigger logout() from authenticator when user session is time out. But it didnot work sometime. Here is my configuration in components.xml | event type=org.jboss.seam.preDestroyContext.SESSION | action expression=#{authenticator.logout} / | /event | authenticator: | @Stateless | @Name(authenticator) | public class AuthenticatorBean implements Authenticator{ | | @In | private Identity identity; | @In | private FacesMessages facesMessages; | | @Logger | private Log log; | | public boolean authenticate() { | String username = identity.getUsername(); | String password = identity.getPassword(); | | | if(username.equalsIgnoreCase(xinhua)){ | return true; | | }else{ | facesMessages.addFromResourceBundle(loginForm_loginFailed); | return false; | } | | | } | | public void logout() { | log.info(logout(): user +identity.getUsername()+ logout); | identity.logout(); | } | | } | When user session is out of time, a null exception appears sometime.And logout() is skipped... | 17:52:40,793 ERROR [[/strato]] Session event listener threw exception | java.lang.NullPointerException: facesContext | at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:110) | at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58) | at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75) | at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:148) | at org.jboss.seam.core.Events.raiseEvent(Events.java:63) | at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:215) | at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:297) | at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45) | at org.apache.catalina.session.StandardSession.expire(StandardSession.java:687) | at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:579) | at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:678) | at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:663) | at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1284) | at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569) | at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578) | at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578) | at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558) | at java.lang.Thread.run(Thread.java:595) | 17:52:49,059 INFO [Lifecycle] starting up: org.jboss.seam.security.identity | 17:54:40,891 ERROR [[/strato]] Session event listener threw exception | java.lang.IllegalStateException: Please end the HttpSession via Seam.invalidateSession() | at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:269) | at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45) | at org.apache.catalina.session.StandardSession.expire(StandardSession.java:687) | at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:579) | at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:678) | at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:663) | at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1284) | at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569) | at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578) | at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578) | at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558) | at java.lang.Thread.run(Thread.java:595) | the listener is not stable when sessionDestroyed. :( anyone can tell me why? thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054062#4054062 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054062
[jboss-user] [JBoss Seam] - Re: Interceptor Question
CptnKirk wrote : So naturally this | | | @Printout | | public String register(.) | | . | | | method is part of an EJB 3 session bean right? yes. It is a sessionless bean. Actually, when i set up my annotation as ElementType.TYPE and put it on the class definition then it works. It does not work if the annotaion is ElementType.METHOD :( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4040448#4040448 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040448 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Interceptor Question
petemuir wrote : IIRC method level seam-interceptors aren't supported in Seam atm (JBSEAM-29) - you'll need to use plain EJB3 interceptors (which do support method level interceptors) Oh, that is pity standard ejb3 interceptor way @intercpetors(class) is very urgly. That is why i want to use my own annotation. hm...seems like i must use isAnnotationPresent(Printout.class) to reflect the beans . :( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4040528#4040528 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040528 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Interceptor Question
Hi all, I have a simple Annotation like following: | @Target(METHOD) | @Retention(RUNTIME) | @Interceptors(PrintoutInterceptor.class) | public @interface Printout { | } | and the Interceptor class: | public class PrintoutInterceptor { | | @AroundInvoke | public void printOut(InvocationContext invocation) throws Exception { | System.out.println(Method +invocation.getMethod()+ is called); | invocation.proceed(); | } | } And then i tried to put this annotation on a method, | | @Printout | public String register(.) | . | BUT, the interceptor doesnot work :( can anyone help? Thanks !! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4040227#4040227 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040227 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Interceptor Question
hi, CptnKirk the app is running on JBossAS 4.0.5 GA with ejb3 container here is my complete codes: | import javax.interceptor.AroundInvoke; | import javax.interceptor.InvocationContext; | | public class PrintoutInterceptor { | | @AroundInvoke | public void printOut(InvocationContext invocation) throws Exception { | System.out.println(Method +invocation.getMethod()+ is called); | invocation.proceed(); | } | } | | import static java.lang.annotation.ElementType.*; | import static java.lang.annotation.RetentionPolicy.RUNTIME; | import java.lang.annotation.*; | import javax.interceptor.Interceptors; | | @Target(METHOD) | @Retention(RUNTIME) | @Interceptors(PrintoutInterceptor.class) | public @interface Printout { | } | i changed the import like this : | | import org.jboss.seam.annotations.Interceptors; | @Target(METHOD) | @Retention(RUNTIME) | @Interceptors(PrintoutInterceptor.class) | public @interface Printout { | } | | it still doest work :...( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4040249#4040249 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040249 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Question about authentication
hello, can someone tell me how can i list all authenticated identity object ? For example, i want to show all online user name. Now, i put all identities into an application scope seam component, and i donot think it is a good solution :( Maybe there is a more easy way to do that in seam... can anyone help? thanx in advance! mfg View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4026554#4026554 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026554 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Question about authentication
Hi,fady.matar thank you for your answer. But the problem of your solution is, if the user is session timeout, his id is till in application scope View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4026600#4026600 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026600 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - FacesMessages question
Hello all, I use seam security to authenticate user, but Login failed message is very boring. Is there a way to restrain this message from Identity.login() ? thanks in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4025755#4025755 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025755 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EJB3 2. level cache and query cache question
Hi, i opened 2.level cache and query cache in persistence.xml like following: property name=hibernate.show_sql value=true / | property name=hibernate.cache.provider_class value=org.jboss.ejb3.entity.TreeCacheProviderHook/ | property name=hibernate.treecache.mbean.object_name value=jboss.cache:service=EJB3EntityTreeCache/ | property name=hibernate.cache.use_query_cache value=true / and on an entity: @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) for 2. level cache and query.setParameter(vorname, vorname).setParameter(nachname, | nachname).setMaxResults(maxResults).setFirstResult(firstResult) | .setHint(org.hibernate.cacheable, new Boolean(true)).setHint(org.hibernate.cacheMode, CacheMode.GET ).setHint(org.hibernate.fetchSize, new Integer(100)); | for query cache... but it doese not work :( can anyone help? thanks in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4025010#4025010 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025010 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - A question about facelets
Hi all, When my application starts on my JBoss 4.0.5 server I get the following ERRORS: | 11:17:48,545 ERROR [STDERR] 19.02.2007 11:17:48 com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/D:/JBoss/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp65104StratoIV.ear-contents/StratoIV-exp.war/WEB-INF/lib/jsf-facelets. | jar!/META-INF/jsf-ui.taglib.xml | 11:17:48,608 ERROR [STDERR] 19.02.2007 11:17:48 com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/D:/JBoss/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp65104StratoIV.ear-contents/StratoIV-exp.war/WEB-INF/lib/jsf-facelets. | jar!/META-INF/jsf-core.taglib.xml | 11:17:48,623 ERROR [STDERR] 19.02.2007 11:17:48 com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/D:/JBoss/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp65104StratoIV.ear-contents/StratoIV-exp.war/WEB-INF/lib/jsf-facelets. | jar!/META-INF/jstl-fn.taglib.xml | 11:17:48,623 ERROR [STDERR] 19.02.2007 11:17:48 com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/D:/JBoss/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp65104StratoIV.ear-contents/StratoIV-exp.war/WEB-INF/lib/jboss-seam-ui | .jar!/META-INF/seam-ui.taglib.xml | 11:17:48,655 ERROR [STDERR] 19.02.2007 11:17:48 com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/D:/JBoss/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp65104StratoIV.ear-contents/StratoIV-exp.war/WEB-INF/lib/jsf-facelets. | jar!/META-INF/jsf-html.taglib.xml | 11:17:48,701 ERROR [STDERR] 19.02.2007 11:17:48 com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/D:/JBoss/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp65104StratoIV.ear-contents/StratoIV-exp.war/WEB-INF/lib/jsf-facelets. | jar!/META-INF/jstl-core.taglib.xml | Whats that mean? How can i solve this problem? I am not be familiar with facelets, so plz help:) thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018740#4018740 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018740 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Help: sessionContext
Hallo all, i have a problem when i want to inject sessionContext in code: | @In Context sessionContext; | The bean is SLSB and sessionContext is always null!!! Need help! :(( Thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018907#4018907 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018907 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Help: sessionContext
I can get sessionContext only from | Contexts.getSessionContext() | Why @In does not work ??? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4018934#4018934 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018934 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Help! Eclipse IDE Tutorial!
hi, all i followed the Tutorial doc 1.5 in detail but got failure javax.servlet.ServletException: Lookup of java:comp/env/ejb/Fibo faild | at tutorial.web.ComputeServlet.init(ComputeServlet.java:58) | at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) | at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:13 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:17 | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociation | va:175) Here is my environment: jdk1.5.0_10 Eclipse3.2 IDE2.0.0 Beta2 JBoss 4.0.5GA I didnot creat FiboEJB-client.jar and it must not be the problem of duplicated interfaces in war and jar. And i have also tried with java:env/ejb/Fibo and ejb/Fibo But still failed. Can anyone help me? thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996348#3996348 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996348 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user