[jboss-user] [JBoss Seam] - Re: Simplest usage
It's exactly the same behaviour in my app. But I use Facelets(*.xhtml). The strange thing I found out: If I comment s:fileUpload tag, the fields are entered Without the comment the getter/setter of the fields file, fileName and fileContentType are not called in debug mode. Use Seam 1.2.1 and have configured the app as discriped. No exception is thrown. What can I do, get this working. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048134#4048134 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048134 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: setting a security for individual portlet instances
I am also using jboss-portal 2.6 beta1 and facing the same issue. Has anyone got a solution? Is this a bug? Mohan were u able to figure out any solution for this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048132#4048132 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048132 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Pojo cluster fail
if the second server connect, join in the group,the first server should get this error: 2007-05-24 14:36:18 [org.jboss.cache.CacheImpl.JBossCache-Cluster]-[ERROR] Caught java.io.NotSerializableException while responding to state transfer request java.io.NotSerializableException: java.net.Socket at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at java.util.HashMap.writeObject(HashMap.java:1039) 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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at org.jboss.cache.marshall.NodeData.writeExternal(NodeData.java:71) at org.jboss.cache.marshall.CacheMarshaller200.marshallObject(CacheMarshaller200.java:374) at org.jboss.cache.marshall.CacheMarshaller200.marshallCollection(CacheMarshaller200.java:466) at org.jboss.cache.marshall.CacheMarshaller200.marshallObject(CacheMarshaller200.java:312) at org.jboss.cache.marshall.CacheMarshaller200.objectToObjectStream(CacheMarshaller200.java:161) at org.jboss.cache.marshall.VersionAwareMarshaller.objectToObjectStream(VersionAwareMarshaller.java:183) at org.jboss.cache.statetransfer.DefaultStateTransferGenerator.marshallTransientState(DefaultStateTransferGenerator.java:140) at org.jboss.cache.statetransfer.DefaultStateTransferGenerator.generateState(DefaultStateTransferGenerator.java:58) at org.jboss.cache.statetransfer.StateTransferManager.getState(StateTransferManager.java:86) at org.jboss.cache.CacheImpl$MessageListenerAdaptor.getState(CacheImpl.java:3360) at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:653) at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:722) at org.jgroups.JChannel.up(JChannel.java:1050) at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:326) at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:509) at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER$StateProviderHandler.process(STREAMING_STATE_TRANSFER.java:829) at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER$StateProviderThreadSpawner$1.run(STREAMING_STATE_TRANSFER.java:732) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER$1$1.run(STREAMING_STATE_TRANSFER.java:453) i've implemented all my vo Serializable. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048131#4048131 Reply to the post : http://www.jboss.com/index.html?module
[jboss-user] [JNDI/Naming/Network] - Connection not getting closed in jboss4.0.3
Hi, I am using JNDI for getting the connection I have wriiten a java servlet that takes the connection by look up as: Context ctx=new InitialContext(); DataSource ds = (DataSource) ctx.lookup("java:comp/env/OracleDS"); oracle-ds.xml OracleDS jdbc:oracle:thin:@mc01.dlh.comp.com:1521:test oracle.jdbc.driver.OracleDriver test1 test1 org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker select sysdate from dual select sysdate from dual 5 20 3 I am able to get the 8 connections by hitting the servlet URL, for testing purpose I am not closing the connecion in my application at all. Although I've put the idle-timeout-minutes to 3 mins still the jboss is not able to close the connetion. I wait for a long but connection is still opened there I check by quering from v$session table in oracle the connection is already there. Also I've to implement the conection pool in my web application using JBOSS 4.0.3 is this the right way for doing that or not ? Thanks in advance for any help. Regards, Amit Ruwali View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048129#4048129 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048129 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: A question about webservices
thanks Peter, one more question.. Which is th best way to build webservices? i´ve read something about axis, another posibility i found was wscompile from J2EE package. What do you recomend me? Jboss should let us using anotations for webservices as Sun J2EE server! Is Jboss 5 ready for this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048128#4048128 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048128 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Pojo cluster fail
when i use jbosscache,it meet a error like this: 2007-05-24 13:52:19 [org.jboss.cache.marshall.VersionAwareMarshaller]-[ERROR] Unable to read version id from first two bytes of stream, barfing. 2007-05-24 13:52:19 [org.jboss.cache.CacheImpl.JBossCache-Cluster]-[ERROR] failed setting state java.io.EOFException at java.io.DataInputStream.readShort(DataInputStream.java:287) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2696) at java.io.ObjectInputStream.readShort(ObjectInputStream.java:908) at org.jboss.cache.marshall.VersionAwareMarshaller.objectFromObjectStream(VersionAwareMarshaller.java:223) at org.jboss.cache.statetransfer.DefaultStateTransferIntegrator.integrateAssociatedState(DefaultStateTransferIntegrator.java:116) at org.jboss.cache.statetransfer.DefaultStateTransferIntegrator.integrateState(DefaultStateTransferIntegrator.java:63) at org.jboss.cache.statetransfer.StateTransferManager.setState(StateTransferManager.java:201) at org.jboss.cache.statetransfer.StateTransferManager.setState(StateTransferManager.java:152) at org.jboss.cache.CacheImpl$MessageListenerAdaptor.setState(CacheImpl.java:3407) at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:667) at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:722) at org.jgroups.JChannel.up(JChannel.java:1015) at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:326) at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:509) at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER$2.run(STREAMING_STATE_TRANSFER.java:674) at java.lang.Thread.run(Thread.java:595) how can i deal with it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048126#4048126 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048126 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Captcha - custom message
Please add a feature request to JIRA, this should be more easy to override. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048123#4048123 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048123 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: problem with encoding
AFAIK, you need it in both the meta tag and the f:view. At least I think that's what Jacob told me. I guess Facelets uses a special UIViewRoot or something. I'm not sure if the Seam examples have it completely correct. You would be better off asking about this stuff in the facelets forums, and checking their FAQ. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048122#4048122 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048122 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Newbei question: Page navigation
Thanks a lot: Almost worked -- how ever it lost the request string "?a=15" in the original url. Any more tip? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048121#4048121 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048121 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: schema validation for xml
How can one access the Schema generated (the ones in the WSDL file) in the Java code.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048120#4048120 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048120 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: How to Call one EJB from another remotely?
Hi thanks for replies from both of you Hi jc can you pls elaborate your solution Hi ebross in this way how can i give the ip address of the sys to be lookedup..? Is it in ejb-jar.xml ? But I am using EJB3.0 any way without using any xml files..? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048118#4048118 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048118 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Newbei question: Page navigation
http://docs.jboss.com/seam/1.2.1.GA/reference/en/html/security.html#d0e6305 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048116#4048116 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048116 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Can jBpm deployed in a distributed system?
You should not have any issues running JBPM in a cluster of any configuration. Just make sure that you start JobExecutor on one node only. This is to avoid competition between the nodes, because JobExecutor runs at fairly high rate. What we have done for our cluster, created a com.xxx.jbpm.start.war component that is deployed/enabled on one node only. All it does is upon startup runs the following code: org.jbpm.job.executor.JobExecutor exe = jbpmConfiguration.getJobExecutor(); exe.start(); This lanuches the background heartbeat for JBPM. Other configurations are also possible, but that would depend on your specifics. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048115#4048115 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048115 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Un expected behavior observed with Token details
Until an appropriate solution is found or reply is received from JBoss, we have just decided to apply the following local fix. Again this is related to loss of Node after Exception is thrown within the custom ActionHandler. All we do is saving the Node object before calling token.signal() method. When we catch the Exception and if new value of getNode() is NULL, we store the saved copy of the Node. Sample code is below: public void processWorkflowEvent(long pid, String eventName) throws ... | { | JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance(); | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); | try | { | ... your own code | ProcessInstance process = jbpmContext.getProcessInstanceForUpdate(pid); | Token token = process.getRootToken(); | // save the node | Node nodeSaved = token.getNode(); | | // process signal | try | { |token.signal(eventName); | } | catch(Exception e) | { |if(token.getNode() == null) |{ | // node is lost due to JBPM internals | // restore the node | token.setNode(nodeSaved); | } | ... | } | } | catch(Exception e) | { | // do whatever you need to handle own exceptions | } | finally | { | jbpmContext.close(); | } | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048111#4048111 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048111 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]String
Hi, My J2EE application is deployed on Jboss 4.0.4 and interacting with MS SQL Server 2005. My JDBC stored procedure call is failing with following error: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]String or binary data would be truncated. I read in few forums that this is caused when you try to insert data larger than the size of the target column. In my case the stored procedure call (CallableStatement.execute()) is withnout any error but when I try to retrieve the out paramters I get this error. I'm lost i'll appreciate if someone can throw some light on this. - Kishor View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048107#4048107 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048107 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Newbei question: Page navigation
I have a problem like this: If user opens a page: http://my/link.seam?a=3 and if user has not logged on, it will redirect the link to http://my/home.seam. After user enters correct credentials and hits "Login" button, the page should go back to http://my/link.seam?a=3. How this logic can be implemented is Seam? Any tips will be much appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048106#4048106 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048106 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Apparently wrong driver Error
It says that your application and the jboss-local-jdbc.rar should use the same classloader. Configuring a rar file for classloader isolation is something which i havent tried, so i might not be of much help on this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048103#4048103 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048103 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Exception javax.naming.NameNotFoundException
anonymous wrote : contents of my ejb-jar.xml is same as which i posted earlier | anonymous wrote : ejb-jar.xml | | | http://java.sun.com/dtd/ejb-jar_2_0.dtd";> | | | | mfsc | mfsc | | | | | | UserSession | UserSession | com.pspl.common.admin.user.components.IUserSessionEJBHome | com.pspl.common.admin.user.components.IUserSessionEJBObject | com.pspl.common.admin.user.components.UserSessionBean | Stateless | Container | | | | | | | | | Try this one: | http://java.sun.com/dtd/ejb-jar_2_0.dtd";> | | | | | mfsc | | | | | | | UserSession | com.pspl.common.admin.user.components.IUserSessionEJBHome | com.pspl.common.admin.user.components.IUserSessionEJBObject | com.pspl.common.admin.user.components.UserSessionBean | Stateless | Container | | | | | | | | | | See if the bean gets deployed using this ejb-jar.xml. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048101#4048101 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048101 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Un expected behavior observed with Token details
Just to correct the last sentence of my previous message: process.getRootToken().getNode() will return NULL value. Also, process.getRootToken().getAvailableTransitions() will start returning NULL value as well. Not sure which how to check the JBPM version. Timestamp is 2007-03-16. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048099#4048099 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048099 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Un expected behavior observed with Token details
We have similar issues with getting a null token using call process.getRootToken(). It is fairly easy to achieve that: * Define your own ActionHandler class. All it should do in execute(ctx) method, is throw new java.lang.Exception("haha") * Place this ActionHandler into jpdl * Invoke state transition by calling process.getRootToken().signal() That would be the last moment when you are able to access rootToken. Next time process.getRootToken() will return NULL value. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048098#4048098 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048098 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: 5.0 Beta 2 Class not found error on jdk 6
Answered at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=99305 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048097#4048097 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048097 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: how to save processinstance
There several actors do the workflow instance in the same phase of node or different task which execute by different swimlane. in that case, taskvariables can't be shared ? the context can not be shared ? oh My God. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048096#4048096 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048096 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - JNDI trying to use the wrong host
My jboss-4.0.4.GA installation inexplicably stopped working today, and it looks like it's because it started trying to connect to localhost:1099 for JNDI lookups and binding. This is wrong, since jboss is set up to listen only on a specific IP (not 127.0.0.1 or 0.0.0.0), corresponding to foo.dev.example.com. Here's the command line used to start jboss: /Library/Java/Home/bin/java -server | -Dprogram.name=startjboss | -Dsun.rmi.dgc.client.gcInterval=360 | -Dsun.rmi.dgc.server.gcInterval=360 | -Xms512m -Xmx2048m | -XX:NewSize=128m -XX:PermSize=96m -XX:MaxPermSize=96m | -verbose:gc -Xloggc:/sites/foo.dev.example.com/logs/GCOutput_2007.05.23.log | -XX:+PrintGCDetails -XX:+PrintGCTimeStamps | -XX:+UseConcMarkSweepGC | -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 | -Djavax.net.ssl.keyStore=/Library/Java/Home/jre/lib/security/cacerts | -Djavax.net.ssl.keyStorePassword=** | -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl | -Djava.rmi.server.hostname=foo.dev.example.com | -Djboss.bind.address=foo.dev.example.com | -Djboss.home.dir=/usr/local/jboss-4.0.4.GA | -Djboss.server.base.dir=/sites/foo.dev.example.com | -Djboss.server.home.dir=/sites/foo.dev.example.com | -Djboss.server.name= | -Djboss.server.home.url=file:/sites/foo.dev.example.com | -Djboss.server.lib.url=file:/usr/local/jboss-4.0.4.GA/server/all/lib | -Djboss.partition.name=localpartition-example | -Djboss.partition.udpGroup=239.99.150.20 | -Djboss.partition.port=45564 | -classpath /usr/local/jboss-4.0.4.GA/bin/run.jar:/Library/Java/Home/lib/tools.jar:/sites/foo.dev.example.com/conf/something | org.jboss.Main --host foo.dev.example.com During startup, JNDI binds to foo.dev.example.com: | 2007-05-23 18:41:42,130 INFO [org.jboss.naming.NamingService] JNDI bootstrap JNP=foo.dev.example.com/10.6.55.164:1099, RMI=foo.dev.example.com/10.6.55.164:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory | When an MBean goes to look something up in JNDI during startup, I get the following stacktrace: | 2007-05-23 18:42:08,003 DEBUG [org.jnp.interfaces.NamingContext] Failed to connect to localhost:1099 | javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is | java.net.ConnectException: Connection refused]] | at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269) | at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385) | at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:484) | at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:477) | at javax.naming.InitialContext.rebind(InitialContext.java:367) | at org.jboss.util.naming.NonSerializableFactory.rebind(NonSerializableFactory.java:180) | at org.jboss.util.naming.NonSerializableFactory.rebind(NonSerializableFactory.java:221) | at foo.admin.scheduler.mbean.QuartzScheduler.rebind(QuartzScheduler.java:94) | at foo.admin.scheduler.mbean.QuartzScheduler.startService(QuartzScheduler.java:67) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor2.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
[jboss-user] [JBoss Seam] - Re: 'sometimes' a nullpointer exception for #{identity.logge
Hey ffischer !! I 'm also having that problem !! random #{org.jboss.seam.security.identity} and #{org.jboss.seam.messages} erros, I do have ajax4jsf in web.xml, I can disable it there as you say, but then I get Resources framework is not initialised, check web.xml for Filter configuration when I disable | Ajax4jsf Filter | ajax4jsf | org.ajax4jsf.Filter | | | ajax4jsf | *.seam | in web.xml, how does your web.xml and faces-config.xml look like ? please, that would help a lot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048093#4048093 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048093 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - s:validateAll in custom tag/template
I am using seam 1.2.1GA and Jboss 4.0.5GA and am experiencing a problem when I try to use s:validate when the form fields are contained in a custom tag. my calling page calls a custom tag that I have created that contains a group of common form fields that I would like to reuse across many pages. | | | | the tag works fine as far as passing the data to my seam components but validation does not occur. my tag .xhtml file looks like the following. | | Title: | | | | | | | First Name: | | | | | | | Last Name: | | | | | | | Country: | | | | | | | | Email: | | | | | | | Confirm Email: | | | | | | | Should it be possible that seam will validate my fields when used in this way? It makes no difference if I add the s:validateAll to the tag .xhtml template file, validation still does not occur. if I move one of the s:decorate fields directly into the calling file the validation works. Is this the expected behavior? Thanks Mat View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048092#4048092 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048092 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - 5.0 Beta 2 Class not found error on jdk 6
I get the error mentioned below when I run the app server on jdk 6. I haven't installed anything on it. Its a clean download that I ran It runs fine under jdk 5 However, I need it to run under jdk 6 since I am using some jdk 6 features in my application. 17:42:39,759 INFO [ProfileImpl] Using profile root:D:\jboss\appserver\jboss-5.0.0.Beta2\server\default 17:42:40,947 ERROR [AbstractKernelController] Error installing to Instantiated: name=DeploymentFilter state=Described java.lang.IllegalStateException: Class not found: [Ljava.lang.String; at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:174) at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:125) at org.jboss.metadata.spi.signature.Signature.getParametersTypes(Signature.java:292) at org.jboss.metadata.plugins.loader.reflection.AnnotatedElementMetaDataLoader.getComponentMetaDataRetrieval(AnnotatedElementMetaDataLoader.ja va:138) at org.jboss.metadata.plugins.context.AbstractMetaDataContext.getComponentMetaDataRetrieval(AbstractMetaDataContext.java:280) at org.jboss.metadata.spi.retrieval.MetaDataRetrievalToMetaDataBridge.getComponentMetaData(MetaDataRetrievalToMetaDataBridge.java:159) at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.methodHasAnnotations(AOPConstructorJoinpoint.java:202) at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasMethodMetaData(AOPConstructorJoinpoint.java:172) at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasInstanceOrJoinpointMetaData(AOPConstructorJoinpoint.java:152) at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:99) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103) at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:52) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136) at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119) at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:64) at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:76) at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:146) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.deploy(ProfileServiceBootstrap.java:295) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:222) at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89) at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:403) at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:342) at org.jboss.Main.boot(Main.java:210) at org.jboss.Main$1.run(Main.java:522) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: [Ljava.lang.String; at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:170) View the original post : http://www.jboss.com/index.html?mo
[jboss-user] [JBoss Seam] - Re: Seam is spining JVM on startup
Hey! take a look at: [url] http://www.jboss.com/index.html?module=bb&op=viewtopic&t=108938[/url] Phil found the problem. Seems that EL api jar module declaration on application.xml cause JBoss 4.2 GA hang up. It is just remove: | | el-api.jar | | Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048088#4048088 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048088 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss 4.2.0.GA hangs with my Seam application
I can't test my project right now, but I tested JBoss Booking Example. And it crash AS 4.2 GA. Just change application.xml with: | | jboss-el-api.jar | | and add this jar in ear. Start JBoss and this will take 100% of CPU ou core forever (in fact, I don't wait too much). Note: it's not necessary cut off jboss-el.jar /el-ri.jar Thank you!!! I think you catch it!!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048087#4048087 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048087 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam+JMS: extracting Java object from ObjectMessage
What Daniel said is spot on. I've also fixed the documentation to correctly refer to the getValue() method. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048086#4048086 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048086 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: How to get this (very simple) tutorial to work in JBoss
Thanks. I guess that kind of clears it up. I wasn't trying to do it "in servlets" but I guess that language was JBoss's way of saying, "it just doesn't work". It would be nice if they are more clear on that. So is the first version of JBoss that really supports this is the JBoss 5.x version? Without the @EJB injection, it seems to me I'd be upgrading to the EJB3 without any real clear benefits other than "its different". At least with the resource injection, I can remove my Delegate and refer to the bean directory -- and just have the interface define it. This saves from implementing a concreate class which duplicates the same type of code. For me, I'm saying better = less code. thanks! -Mike View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048085#4048085 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048085 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: IllegalAccessException using reflection on private field
Flavia, Thanks for the quick response, I will use your workaround until the bug is fixed. I have one comment. If you correct the problem by making the wrapper method public, then won't the field be accessible through reflection without calling Field.setAccessible() first? That would be wrong because then you could bypass the security manager when accessing a private field. Any bug fix should require a call to setAccessible() before allowing access to a private field. Just a thought. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048083#4048083 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048083 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Component being dropped from list of Components in JNDI
NOTE: This is with IceFaces DR#4 but appears to be Seam bug or my code! anonymous wrote : | 10:48:08,937 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=risingstars.ear,jar=risingstars_jar.jar,name=UploadControllerImpl,service=EJB3 with dependencies: | anonymous wrote : | 10:48:12,859 INFO [Component] Component: uploadController, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: nz.co.risingstars.actions.upload.UploadControllerImpl, JNDI: risingstars/UploadControllerImpl/local | anonymous wrote : | Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: uploadController | at org.jboss.seam.Component.newInstance(Component.java:1740) | at org.jboss.seam.Component.getInstance(Component.java:1643) | at org.jboss.seam.Component.getInstance(Component.java:1610) | at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:53) | at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42) | at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:574) | at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124) | at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383) | ... 47 more | Caused by: javax.naming.NameNotFoundException: UploadControllerImpl not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) | at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) | at org.jnp.server.NamingServer.getObject(NamingServer.java:543) | at org.jnp.server.NamingServer.lookup(NamingServer.java:267) | at org.jnp.server.NamingServer.lookup(NamingServer.java:270) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) | at javax.naming.InitialContext.lookup(InitialContext.java:392) | at org.jboss.seam.Component.instantiateSessionBean(Component.java:1107) | at org.jboss.seam.Component.instantiate(Component.java:1093) | at org.jboss.seam.Component.newInstance(Component.java:1736) | ... 54 more | 10:48:55,765 ERROR [DebugPageHandler] redirecting to debug page | javax.naming.NameNotFoundException: UploadControllerImpl not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) | at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) | at org.jnp.server.NamingServer.getObject(NamingServer.java:543) | at org.jnp.server.NamingServer.lookup(NamingServer.java:267) | at org.jnp.server.NamingServer.lookup(NamingServer.java:270) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) | at javax.naming.InitialContext.lookup(InitialContext.java:392) | at org.jboss.seam.Component.instantiateSessionBean(Component.java:1107) | | @SuppressWarnings("serial") | @Stateful // A component stays in existance for the duration of the Scope (conversation in this instance). | @Name("uploadController") // Name used within SEAM for an instance of this class. | @Conversational // Scope that this class exists in. | public class UploadControllerImpl implements UploadController, Renderable, Serializable { | | /** | * The maximum width allowed for image rescaling | */ | private static final int MAX_IMAGE_WIDTH = 1024; | | /** | * Inject and leverage the Seam Logger. | */ | @Logger | private Log log; | | /** | * Inject the EJB3 Persistance context in EXTENDED mode so will remain "current" over | * multiple clinet/server round trips. | */ | @PersistenceContext(type = EXTENDED) | private EntityManager em; | | /** | * Inject the Seam Conversation coponent so that I can report on it for logging purposes. | */ | @In(required = false) | private Conversation conversation; | | /** | * Inject the Faces Messages component so that messages (errors and info) can be sent to the View | */ | @In(create = true) | private transient FacesMessages facesMessages; | | /** | * Outject the Primary Key of the required Image | */ | @SuppressWarnings("unused") | @Out | private Long picturePrimaryKey = new Long(-1); | | private enum ParentObjectKind {ORGANISATION, USER}; | | @Out | private ParentObjectKind parentObjectKind = null; | | private long parentObjectPrimaryKey; | | private int percent = -1; | | private PersistentFacesState state = null; | | private Image image = null; | | /** | * An instance of the Inner Calss to
[jboss-user] [JBoss jBPM] - Re: ADF Faces with Facelets in jBPM 3.2GA
nobody??? help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048080#4048080 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048080 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss 4.2.0.GA hangs with my Seam application
Sorry pdhaigh, did not see your new post before I posted. Now that is good to know. :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048075#4048075 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048075 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss 4.2.0.GA hangs with my Seam application
ditto, I replied to you before you wrote the second one :-) cheers, phil View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048078#4048078 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048078 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss 4.2.0.GA hangs with my Seam application
Hi Michael, I would presume it would be as simple as uncommenting these two sections in your application.xml They are commented out in your 4.2.0 examples, but not in your 4.0.5 ones. (I was looking at the CRUD example app from http://www.michaelyuan.com/download/seam/seambook-src-20070522.zip ) When I commented them out, my app started working on 4.2.0. :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048077#4048077 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048077 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss 4.2.0.GA hangs with my Seam application
How do I reproduce the issue? My examples all work with Seam 1.2.1 GA and JBoss 4.2.0 GA http://www.jboss.com/index.html?module=bb&op=viewtopic&t=109212 Can you send us a simple example that demonstrate this bug? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048074#4048074 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048074 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] jboss seam, calling seam component from servlet filter
I am very new to jboss Seam and hence a simple query. I want to call up a seam component from inside a servlet filter as below: AuthorizerActionLocal authLocal = (AuthorizerActionLocal)Seam.componentForName("packageCreationAction") .getInstance( AuthorizerActionImpl.class); UserVO userVO = authLocal.login(userName); I get an error saying: java.lang.IllegalStateException: No application context active at org.jboss.seam.Component.forName(Component.java:1603) What is going wrong? Is it possible to call a seam component from inside a servlet filter as above? If not then is there any other way Thanks, Rishi ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss 4.2.0.GA hangs with my Seam application
After some playing, my issue was resolved by this: (in application.xml) The above were needed for 4.0.5 deployments, but crash the server for 4.2.0.GA I'm happy because it now seems to work, but I do think the server should be able to deal with the failed deployment, rather than falling to it's knees.. ;-) p View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048073#4048073 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048073 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Invalid Selector
"macross27" wrote : Thanks for the tip. However I can't do anything on the side of the application which uses the odd correlation id or the selector as it is closed source. So I have to deal with that in JBoss messaging. Any ideas to that? | The selector is invalid, you need to fix your application - this is not a JBM issue. anonymous wrote : | I guess that the correlation id is a string is part of Sun's JMS spec? Yes, http://java.sun.com/j2ee/sdk_1.2.1/techdocs/api/javax/jms/Message.html#getJMSCorrelationID() View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048072#4048072 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048072 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Invalid Selector
Thanks for the tip. However I can't do anything on the side of the application which uses the odd correlation id or the selector as it is closed source. So I have to deal with that in JBoss messaging. Any ideas to that? I guess that the correlation id is a string is part of Sun's JMS spec? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048071#4048071 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048071 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam+JMS: extracting Java object from ObjectMessage
Hi, >From what I've seen, the object in your ObjectMessage should follow the same >rules as what any Seam Remoting @WebRemote method would return (Section 19.6 >of the doco) -- ie: keep it as a simple JavaBean so you can access the >serialized state from javascript using properties. I don't think a Java >Properties object will work. You could use Firebug in firefox to debug the JS >and view what Seam is returning inside the Seam.Remoting.ObjectMessage if you >really want to try it. Also from looking at Seam's remote.js, I think you call ".value" or "getValue()" on the ObjectMessage, not ".object/getObject()" as the documentation says. | Seam.Remoting.ObjectMessage = function() | { | this.value = null; | | Seam.Remoting.ObjectMessage.prototype.getValue = function() | { | return this.value; | } | | Seam.Remoting.ObjectMessage.prototype.setValue = function(value) | { | this.value = value; | } | } | Daniel. "dkane" wrote : No way ? | | I could of course serialize Object to string and use TextMessage instead. But there are some other subscribers already targeted to ObjectMessage. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048070#4048070 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048070 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam CVS: should jBPM work? (jbpm.function.mapper not de
Ok, thanks for the update! Arjan. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048069#4048069 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048069 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss 4.2.0.GA hangs with my Seam application
Hi, I am also seeing this issue.. anyone got any ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048068#4048068 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048068 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to build Seam from CVS snapshot?
"tonylmai" wrote : Can someone show me how to build Seam + RichFaces from the CVS (including how to get the source)? Could not find the link from Jboss.com site. CVS is at :pserver:[EMAIL PROTECTED]:/cvsroot/jboss/jboss-seam -- which is clearly stated at the wiki SeamRepository page, which you'll find linked at the main wiki. Any links you find to CVS at sourceforge.net are indeed obsolete. When you do not want to build it yourself, get the latest build here. Apart from running "ant" you may need to run "ant antlr" first. Arjan. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048067#4048067 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048067 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - PropertyNotFoundException - Target Unreachable
Hello all, New to JSF and Seam here so I'm trying to work out a few kinks. I have created a simple JSF/Facelets application that "just worked" when deploying to JBoss AS 4.2.0 GA. Converting that same application to take advantage of Seam has been a headache and a half. Currently everything seems to be good except that when my form on my Login.xhtml page attempts to submit I get the following error: First, my environment: JBoss AS 4.2 GA, jboss-seam-CVS.20070521, java 1.5.0_06, MyEclipse 5.5 GA, Facelets 1.1.11. javax.servlet.ServletException: /Login.xhtml @41,51 value="#{user.userName}": Target Unreachable, identifier 'user' resolved to null | javax.faces.webapp.FacesServlet.service(FacesServlet.java:256) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | | root cause | | javax.el.PropertyNotFoundException: /Login.xhtml @41,51 value="#{user.userName}": Target Unreachable, identifier 'user' resolved to null | com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62) | com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:81) | javax.faces.component.UIInput.getConvertedValue(UIInput.java:934) | javax.faces.component.UIInput.validate(UIInput.java:860) | javax.faces.component.UIInput.executeValidate(UIInput.java:1065) | javax.faces.component.UIInput.processValidators(UIInput.java:666) | javax.faces.component.UIForm.processValidators(UIForm.java:229) | javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030) | javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662) | com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100) | com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) | com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) | javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | I have since modeled my application as closely as possible to the "registration" example that comes with the Seam CVS nightly build. The main differences being that I am deploying it as a WAR since I created the project w/out using the seam-gen utility. All libraries (jboss-seam.jar, jboss-seam-ui.jar, jsf-facelets.jar, jboss-el.jar) are in the WEB-INF/lib directory of the war. Here is my backing bean code: /** | * | */ | package ***.***.netprov.bean; | | import static org.jboss.seam.ScopeType.SESSION; | | import java.io.Serializable; | | import javax.faces.application.FacesMessage; | import javax.faces.context.FacesContext; | | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Scope; | | /** | * @author strickla | */ | @Name("user") | @Scope(SESSION) | public class User implements Serializable { | | /** | * The name of the user | */ | private String userName; | | /** | * The password of the user | */ | private String userPassword; | | public User() { | | } | | public User(String userName, String userPassword) { | this.userName = userName; | this.userPassword = userPassword; | } | | /** | * @return the userName | */ | public String getUserName() { | return userName; | } | | /** | * @param userName | *the userName to set | */ | public void setUserName(String userName) { | this.userName = userName; | } | | /** | * @return the userPassword | */ | public String getUserPassword() { | return userPassword; | } | | /** | * @param userPassword | *the userPassword to set | */ | public void setUserPassword(String userPassword) { | this.userPassword = userPassword; | } | | public String loginUser() { | if ("myeclipse".equals(getUserName()) | && "myeclipse".equals(getUserPassword())) { | return "success"; | } else { | FacesContext fCtx = FacesContext.getCurrentInstance(); | FacesMessage fMsg = new FacesMessage( | "You have entered an invalid username and/or password."); | fCtx.addMessage("loginForm", fMsg); | return "failure"; | } | } | | } | and my stateless session bean: | package ***.***.netprov.bean; | | import java.util.Date; | | import javax.ejb.Stateless; | | import org.jboss.seam.annotations.In; | import org.jboss.se
[jboss-user] [JBoss Seam] - Re: Problem pasting text from Word using s:formattedText
I encountered a similar error. For me it was the dash character from MS word. Just for readers reference, see JBSEAM-1343 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048064#4048064 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048064 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - console url failing to load
trying to install jbpm on tomcat. Used the instructions in http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmOnTomcat but seeing the following error when i try to load http://localhost:8080/jbpm-console/ The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: javax.servlet.ServletException: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:565) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:414) root cause javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:824) com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619) org.apache.jsp.index_jsp._jspService(index_jsp.java:77) I also see the follwing error in catalina.log ERROR: '/usr/local/output/tomcat/base/webapps/jbpm-console/interface.xsl (No su ch file or directory)' FATAL ERROR: 'Could not compile stylesheet' has anyone seen this before? been stuck for sometime and looking for help Thanks Vijay View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048063#4048063 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048063 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: LDAP Authentication & Authorization to eDirectory
anonymous wrote : Emptying the database to start over just generated reams of errors from the JBPM module. what kind of errors? Could you be a little more specific? So you were able to deploy a portal using an empty database before, and then turning off the AS, cleaning the database and turning back the AS gave you JBPM errors? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048062#4048062 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048062 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Queue MessageCount - JMX Help
A two minute search of the wiki would have answered your question http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoIGetRemoteAccessToMyMBean. You're lucky I'm nice and Adrian isn't lurking ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048061#4048061 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048061 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: IllegalAccessException using reflection on private field
Hello, I've taken a look at your problem and at the bug report you added to Jira (issue JBAOP-405). The cause of your problem is not the fact that setAccessible doesn't take place. On the contrary, it does take place and has the desired effect (it allows calls to Field.get() and Field.set() methods). But, in your code, setting the field as accessible is unnecessary, since JBoss AOP will call a wrapper method it has generated instead of Field.set() and Field.get() methods. JBoss AOP will do this in order to trigger your TestAspect. The problem here is that this wrapper is generated as a private method inside TestObject class, and therefore it is not accessible from ReflectionAspect, which is a bug. While we take a look at the problem, you can intercept reflection calls using the other approach ReflectionAspect provides: to extend ReflectionAspect and override interceptFieldWrite and interceptFieldRead methods. | // TestAspect.java | package test; | | public class TestAspect extends ReflectionAspect | { |public Object interceptFieldRead(Invocation invocation, Field field, Object instance) throws Throwable |{ | System.out.println(instance.getClass().getName() + "." + field.getName() + " being read on instance " + instance); | return invocation.invokeNext(); |} | |public Object interceptFieldWrite(Invocation invocation, Field field, Object instance, Object arg) throws Throwable |{ | System.out.println(instance.getClass().getName() + "." + field.getName() + " being set on instance " + instance + " with the following value \"" + arg + "\""); | return invocation.invokeNext(); |} | } | With the approach above, just replace your jboss-aop.xml file by the following: | | | | | | | | | | | | | This way, JBoss AOP won't perform a call to the wrapper method; it will proceed to Field.set() and Field.get() executions. Notice that, because of this, you need to keep your setAccessible calls. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048060#4048060 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048060 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: LDAP Authentication & Authorization to eDirectory
I did pull the latest (ie HEAD) out of the repository (it took quite a while). Emptying the database to start over just generated reams of errors from the JBPM module. Bleh. This isn't worth the effort. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048059#4048059 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048059 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Queue MessageCount - JMX Help
I am attempting to get access to a Queue via JMX so I can check to see the number of messages (MessageCount). I created the queue upon startup of JBoss by copying the default demo Queues in destinations-service.xml jboss.messaging:service=ServerPeer jboss.message:service=PostOffice Inside my code I have the following: Properties props = new Propeties(); | props.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); | props.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); | props.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099"); | | InitialContext ctx = new InitialContext(props); | | Object o = ctx.lookup("jmx/rmi/RMIAdaptor"); the object that is returned is a JRMPInvokerProxy, when I expected to get back an RMIAdaptor (as per all the examples I've seen). Does anyone know why I'm getting this class? I expected to get an RMIAdaptor. If I cast it as an RMIAdaptor and then invoke the method: rmiAdaptor.getAttribute("jboss.messaging.destination:service=Queue,name=myqueue", "MessageCount") | I get an UnmarshalExceptionClassNotFoundException org.jboss.jmx.connector.invoker.client.InvokerAdaptorException (no security manager: RMI class loader disabled). If someone can help, I'd really appreciate it. As you can tell, I'm new to JMX and trying to figure this out. If you have an example of getting the message count, I'd *really* appreciate it :-) | In my classpath, I have jboss-messaging-client.jar. | I'm using JBoss 4.0.5, | messaging 1.2.0sp1, | and JDK 6. | | | thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048058#4048058 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048058 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityManager null
Works fine, thanks! But, this is a bug, doesn´t it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048056#4048056 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048056 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - " No ClassLoaders found " error when deploying a startup cla
I am trying to deploy a simple start up class at JBoss startup time and it keeps giving the following error: [java] Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: com.acme.common.business.taskmanagement.TaskTimerStartup | [java] at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306 | ) | [java] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(Repo | sitoryClassLoader.java:514) | [java] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(Reposito | ryClassLoader.java:408) | [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | [java] at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerIm | pl.java:1204) | [java] at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerIm | pl.java:286) | [java] at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerIm | pl.java:344) | [java] at org.jboss.system.ServiceCreator.install(ServiceCreator.java:1 | 57) | [java] at org.jboss.system.ServiceConfigurator.internalInstall(ServiceC | onfigurator.java:449) | [java] at org.jboss.system.ServiceConfigurator.install(ServiceConfigura | tor.java:171) The TaskTimerStartup class extends ServiceMBeanSupport and implements TaskTimerMBean interface. I have put both these classes and jboss-service.xml in a sar file and deployed it with my ear file. I also added the following entry to application.xml timer.sar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048055#4048055 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048055 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: automatically truncate message table on server startup
Aaah, I think I am beginning to understand your question now :) You were assuming that JMS implemented being an XAResource by delegating the XA functionality to an underlying XA database? While you could implement a messaging system this way (and if I remember rightly the Sun tutorial? actually mentions this), you'll find that very few (if any) high quality messaging providers do it this way. This is because it would tie you to an underlying XA capable database, which is not what all our users would want to use. So, we implement the XAResource from scratch and don't rely on the existence of any XA capable database. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048053#4048053 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048053 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: LDAP Authentication & Authorization to eDirectory
a lot of questions in your posts :) ... lets start from the beginning. I'm sure that the issue with disabled account should be resolved in newest sources. Did you flush the database content? Please try to redeploy portal from the newest sources, start with clean database, and let me know if you have still issues. To have admin account portal needs to resolve account 'admin' with role 'Admin'. So I beleive that if you change 'Administrators' to 'Admin' in your LDAP you should get proper privilages. You can workaround this by uncommenting following lines in login-config.xml: anonymous wrote : | | java:/PortalDS | SELECT jbp_password FROM jbp_users WHERE jbp_uname=? | SELECT jbp_roles.jbp_name, 'Roles' FROM jbp_role_membership INNER JOIN jbp_roles ON jbp_role_membership.jbp_rid = jbp_roles.jbp_rid INNER JOIN jbp_users ON jbp_role_membership.jbp_uid = jbp_users.jbp_uid WHERE jbp_users.jbp_uname=? | MD5 | HEX | Authenticated | | and remove admin account from your LDAP. This will enable portal to use built in 'admin' account from the database. Please look at "Authentication and Authorization' chapter in latest 2.6 Reference Guide to learn more about this configuration. If you update to latest portal sources: svn co http://anonsvn.jboss.org/repos/portal/trunk/ jboss-portal-2.6 Then you can edit those configuration files directly in: portal-sources/core/src/resources/portal-core-sar/ ... then simply set JBOSS_HOME env and deploy whole using portal-sources/build/build.sh deploy-all I hope this will help you to avoid unpacking the jars :) If you have issues with 'seeAlso' attribute just remove related 'ldap' mapping from profile-config.xml file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048050#4048050 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048050 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: automatically truncate message table on server startup
"timfox" wrote : "paul_da_programmer" wrote : If the JMS implementation is an XA compliant one, even without persistence then the answer is yes. | | Yes. But this has got absolutely nothing to do with whether JBM persists non persistent messages or not. I guess that really was my original question, after I refined it with your help :) Q: Is JMS a XA compilant resource even without PERSISTENCE? A: Yes! My misunderstanding came from the assumption that JMS was XA compliant only because of XA compliant persistence. Thanks for your help! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048048#4048048 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048048 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityManager null
change name from "em" to "entityManager" I don't know why, but Seam hard codes to look for "entityManager" . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048047#4048047 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048047 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: automatically truncate message table on server startup
"paul_da_programmer" wrote : If the JMS implementation is an XA compliant one, even without persistence then the answer is yes. Yes. But this has got absolutely nothing to do with whether JBM persists non persistent messages or not. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048046#4048046 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048046 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - EntityManager null
I made: | | java:/data | | | | #{em} | | | | select r from Role r | | but when I run the facelet page with: | | | | | but the result is: java.lang.IllegalStateException: entityManager is null please, I´m missing something? PS.: I´m using Seam 1.2.1GA, Jboss 4.2.0ga and facelets 1.12 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048045#4048045 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048045 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - EntityHome for nested entity CRUD?
Hi, I have an entity named Business defined as below: @Entity | public class Business { | | @ManyToOne(fetch = FetchType.EAGER) | @JoinColumn(name = "PARENT_BUSINESS_ID", nullable = true) | private Business parentBusiness; | | @OneToMany(fetch = FetchType.LAZY) | @JoinColumn(name = "PARENT_BUSINESS_ID", nullable = true) | private List childBusinesses = new ArrayList(0); | | ... | } | As you can see, the Business has a one-to-many (parent to children) relation with itself. I am trying to use EntityHome to simply the CRUD code and ideally, it will only need a single BusinessEdit.xhtml page and a single BusinessHome class. The part where I got stuck is how the child BusinessHome object will get a reference to the parent Business instance, which is needed in the child BusinessHome's wire(). In a non-nested one-to-many relation, e.g. EntityA (1) <> EntityB (N), EntityAHome can be injected into EntityBHome because two EntityHome component will have different names. However, in my case, parent and child Home instances have the same name and are in different conversations. Any idea that this can be done in an elegant way? Thanks in advance. wt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048044#4048044 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048044 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - JBoss Forums 1.0.0 GA Released
Please refer to an announcement made on JBoss Forums User Forum. http://jboss.com/index.html?module=bb&op=viewtopic&t=109326 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048043#4048043 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048043 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: automatically truncate message table on server startup
"timfox" wrote : If you are using only non persistent messages, then there is nothing to "back out" from the DB, since nothing has been saved to the db. | | Perhaps I don't follow what you are trying to say... What I want to back out (or commit atomically) is the XA DB work that my biz functionality has done - using 2PC prepare,ack, commit semantics. If the JMS implementation is an XA compliant one, even without persistence then the answer is yes. I'm thinking this is the sequence of events 1. TX manager starts a new XA transaction 2. JMS (since its XA) enrolls in the transaction. 3. onMsg is invoked, 2 Oracle XA DS are updated, DS1 and DS2. Both are enrolled in the same transaction. 4. onMsg returns successfully (so far so good) 5. the TX Manager calls prepare on all 3 resources JMS, DS1, DS2 6. the TX Mananger receives OK from all three resources 7. the TX Manager calls commit on all 3 resources JMS, DS1, DS2 8. whoops, DS2 commit fails - and notifies TX Manager 9. the TX Manager calls rollback on all 3 resources If JMS if not a XA resource it will not honor the rollback at the last step and would cause the DB updates to never be applied. I hope this explains my motivation... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048038#4048038 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048038 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: ClassCastException when using RoundRobinRouterFactory
JBM 1.2.0.SP2 out shortly should resolve all such classloader issues. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048037#4048037 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048037 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: example queue fails
The next release (1.2.0.SP2) is integrated with 4.2.0.GA. We don't make any guarantees about JBM running in RC releases. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048034#4048034 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048034 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: example queue fails
JBM does not run with 4.2.0.RC2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048033#4048033 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048033 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
Locking it View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048032#4048032 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048032 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
This thread is a dupe of http://www.jboss.org/index.html?module=bb&op=viewtopic&t=109165 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048031#4048031 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048031 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Apparently wrong driver Error
Thanks for your reply. Will you please explain to me the workaround solution? I dint get what it has to say. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048030#4048030 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048030 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to build Seam from CVS snapshot?
once you've checked out the source, just type 'ant'. it will create all of the dist jars for you. Richfaces is a separate project of course, with a different build mechanism (maven I think). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048029#4048029 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048029 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Apparently wrong driver Error
Have a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=IWantToDeployMyOwnJdbcDriverInAScopedClassloader View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048026#4048026 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048026 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: JBoss 4.2.0.GA + Eclipse integration
No idea? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048025#4048025 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048025 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Asynchronous send to MDB
Sorry, I didn't mean to give the impression that the application is using explicit threads (except for the experiments). The UI and MDB threads I referred to are automatically created by the EJB container. I finally resolved the problem. Both the main code and the MDB were using CMP, and referring to the same EJB (although reconstituted separately, not passed). So as the main code tried to construct the web page, it blocked while accessing EJB's that might be in use by the MDB. In particular, I found the main code waiting in QueuedPessimisticEJBLock.waitForTx(). The solution was to change the MDB to bean-managed persistence, and only wrap actual updates (not reads) in a UserTransaction. Bob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048024#4048024 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048024 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Context listener
As a learning/debug helper I am trying to catch events when components are stored/removed from any context. org.jboss.seam.preSetVariable and the like do pretty much what I am looking for, but I would like to set this in a more coarse grained manner. As it is now, to use this I need to create a method for each event and for each variable I want to catch an event on. I would like to declare the components I want to catch events on and receive the events on the same listener. I could programatically add the observer when I see a component I am interested in but when the method is called I will not know which component it is for as there is no parameter passed to these methods. As an example if I have the following: | @Name( "personAction" ) | @Scope( ScopeType=PAGE ) | public class PersonAction implements Serializable | { | @In( scope=ScopeType.SESSION ) | Person person; | | ... | } | And a listener something like: | public presetVariable( Event someEvent ) | { | log.debug( "Event variable:" + someEvent.getVariable() ); | log.debug( "Component:" + someEvent.getComponent() ); | log.debug( "Contect type:" + someEvent.getContextType() ); | } | If somehow, in a yet determined way, I configure this component as an Observer for my event. I would like notification of when "personAction" and "person" have been added to context and removed from context and which context that is. I am not sure if there is already a means to do this, so any insight is appreciated. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048023#4048023 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048023 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ClassCastException: org.jboss.seam.jsf.SeamApplication11
I have the same problem, using Rational Software Architect 7 - WAS 6.1 runtime. I think is a problem with the IBM -JSF implementation, I was doing some decompile over com.ibm.ws.webcontainer_2.0.0.jar , but can't found the issue, is something related with this code : obj = (ApplicationFactory)FactoryFinder.getFactory("javax.faces.application.ApplicationFactory"); application = (ApplicationImpl)((ApplicationFactory) (obj)).getApplication(); The second line give the cast exception, I think they (IBM) have to cast to (Application) not to (ApplicationImpl) because org.jboss.seam.jsf.SeamApplication11 extend for application. But to try to find a workaround for this I need more time and help from the JBoss Seam. I really hope that someone or me can find a workaround or make a patch, so people out there can use Seam on WAS 6.1 with the IBM JSF implementation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048022#4048022 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048022 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Simplest usage
This solution of reading uploaded file thru byte[] works. Thank you for sharing. However, I wanted to use a different approach using Backing Bean wrapping org.apache.myfaces.custom.fileupload.UploadedFile component. In my attempt as stated, I found that the Backing Bean was instantiated ok, the file upload Browse and Submit buttons were generated ok but when Submit is clicked, the JSF failed to inject the multipart UploadedFile to it, so the Action listener class received Backing Bean with a null UploadedFile object. The Backing Bean is a Seam component but the UploadedFile is JSF multipart/form-data component. I would appreciate any help shed some light in this. Thanks - landrew. Code snippets as shown: fileUpload.xhtml: .. Browse and Pick a File .. UploadBean.java (Backing Bean) .. @Name("uploadBean") @Scope(SESSION) public class UploadBean { @In(required=false) private UploadedFile uploadedFile; .. UploadAction.java (Action class JSF Listener) .. @Name("uploader") @Scope(EVENT) public class UploadAction implements UploadActionIF { private final String CLAZZ = this.getClass().toString(); /** * Uploaded file wrapper object. */ @In(required = false) private UploadBean uploadBean; .. public String upload() { .. Other components: - jboss-4.0.5.GA Server - WEB-INF/tomahawk.taglib.xml - tomahawk-1.1.5.jar - jboss-seam.jar thru Seam-Version: 1.2.0.PATCH1 - jsf-facelets.jar Implementation-Version: 1.1.12 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048021#4048021 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048021 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: Migration to MySQL
Thank you for help and patience:) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048017#4048017 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048017 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - How to use Messaging from a remote client? (JBoss 4.2.0)
I have thre questions the scenario for the quesiton, please see below.. Q1. Why do I have bind a IP other than 127.0.0.1 then I can get the response from "telnet 1099" ? And if I use "run -b 192.168.x.x" then "telnet localhost 1099" doesn't work at all. Q2. How to make a console applicaiton (I think UI application has the same issue) communicate with Messaging from remote? Q3. How to make a web application on remote Tomcat to communicate with Messaging? Please let me know what code or file I should write and what kind of modification should be made on JBoss. I've searched dozens of articles. They just focused on explaining individual parameter or config sections or discrete codes. They help very limited. Please help. Thank you. Jason I'll try to describe what I did step by step here. I'm using JBoss 4.2.0 GA. I want to create two programs to use its JMS remotely. One is a console application the other is web application on tomcat. My console application works fine on the same machine with JBoss by setting the java.naming.provider.url=jnp://localhost:1099 Then I change to use instead of 'localhost'. It's dead. I tried to add "-Djboss.bind.address=192.168.x.x" to the variable %JAVA_OPTS% in run.bat of JBoss. However, there was error still.(Q1) Then I spent two days to figured it out. Finally, I found there is a parameter '-b' of run.bat. So the "run -b 192.168.x.x" is working. Now I use java.naming.provider.url=jnp://:1099 in jndi.properities. I got the error: Exception in thread "main" java.security.AccessControlException: access denied ( | java.util.PropertyPermission java.security.auth.login.config write) | at java.security.AccessControlContext.checkPermission(AccessControlConte | xt.java:264) | at java.security.AccessController.checkPermission(AccessController.java: | 427) | at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) | at java.lang.System.setProperty(System.java:699) | at TTestJBoss.(TTestJBoss.java:29) | at TTestJBoss.main(TTestJBoss.java:24) I spent another two days then add | set POLICY_FILE=.\jboss_client.policy | set AUTH_FILE=.\auth.conf | | and "-Djava.security.policy="%POLICY_FILE%" -Djava.security.auth.login.config=%AUTH_FILE%" in the execution line in | the run.bat created by myself to execute my console application. | The content of these two files are | in jboss_client.policy: | | grant { | permission java.security.AllPermission; | }; | | | in auth.conf (I copy it from %JBOSS_HOME%\client) : | | srp-client { |// Example client auth.conf for using the SRPLoginModule |org.jboss.security.srp.jaas.SRPLoginModule required |password-stacking="useFirstPass" |principalClassName="org.jboss.security.SimplePrincipal" |srpServerJndiName="SRPServerInterface" |debug=true | ; | |// jBoss LoginModule |org.jboss.security.ClientLoginModule required |password-stacking="useFirstPass" |; | |// Put your login modules that need jBoss here | }; | | other { |// jBoss LoginModule |org.jboss.security.ClientLoginModule required |; | |// Put your login modules that need jBoss here | }; | Actually, I have no idea of these two files. Anyway, the error message changed which is better than no change at all. Here is the best error I got now: Line 1-6 are the information from my program. TopicListener is the class I created. | got ctx | About to get connection factory | got factory | About to get destination | got destination | Error occurs while the TopicListener is listening to the topic/topic1 | javax.jms.JMSSecurityException: User: null is NOT authenticated | at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.ja | va:230) | at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSe | curityInterceptor.java:66) | at org.jboss.mq.server.TracingInterceptor.authenticate(TracingIntercepto | r.java:613) | at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.ja | va:172) | at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocke | tManagerHandler.java:238) | at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.j | ava:395) | at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec | utor.java:743) | at java.lang.Thread.run(Thread.java:595) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048016#4048016 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048016 ___ jboss-user mailing
[jboss-user] [Beginners Corner] - Apparently wrong driver Error
In jboss-web.xml, I have added, com.example:loader=arvhice-name java2ParentDelegation=false and I have set UseJBossWebLoader to false. I have ojdbc14.jar in my WEB-INF/lib but still it says apparently wrong driver. If I copy the jar to server/lib it works but I want it to be in my war. Please help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048014#4048014 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048014 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: JMS error with SQLServer
This is what I see in my mssql-jdbc2-service.xml: | BLOB_TYPE=BINARYSTREAM_BLOB | INSERT_TX = INSERT INTO JMS_TRANSACTIONS (TXID) values(?) | INSERT_MESSAGE = INSERT INTO JMS_MESSAGES (MESSAGEID, DESTINATION, MESSAGEBLOB, TXID, TXOP) VALUES(?,?,?,?,?) | SELECT_ALL_UNCOMMITED_TXS = SELECT TXID FROM JMS_TRANSACTIONS | SELECT_MAX_TX = SELECT MAX(TXID) FROM JMS_MESSAGES | DELETE_ALL_TX = DELETE FROM JMS_TRANSACTIONS | SELECT_MESSAGES_IN_DEST = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE DESTINATION=? | SELECT_MESSAGE_KEYS_IN_DEST = SELECT MESSAGEID FROM JMS_MESSAGES WHERE DESTINATION=? | SELECT_MESSAGE = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE MESSAGEID=? AND DESTINATION=? | MARK_MESSAGE = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE MESSAGEID=? AND DESTINATION=? | UPDATE_MESSAGE = UPDATE JMS_MESSAGES SET MESSAGEBLOB=? WHERE MESSAGEID=? AND DESTINATION=? | UPDATE_MARKED_MESSAGES = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE TXOP=? | UPDATE_MARKED_MESSAGES_WITH_TX = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE TXOP=? AND TXID=? | DELETE_MARKED_MESSAGES_WITH_TX = DELETE FROM JMS_MESSAGES WHERE TXID IN (SELECT TXID FROM JMS_TRANSACTIONS) AND TXOP=? | DELETE_TX = DELETE FROM JMS_TRANSACTIONS WHERE TXID = ? | DELETE_MARKED_MESSAGES = DELETE FROM JMS_MESSAGES WHERE TXID=? AND TXOP=? | DELETE_TEMPORARY_MESSAGES = DELETE FROM JMS_MESSAGES WHERE TXOP='T' | DELETE_MESSAGE = DELETE FROM JMS_MESSAGES WHERE MESSAGEID=? AND DESTINATION=? | CREATE_MESSAGE_TABLE = CREATE TABLE JMS_MESSAGES (MESSAGEID INTEGER NOT NULL, DESTINATION VARCHAR(150) NOT NULL, TXID INTEGER, TXOP CHAR(1), MESSAGEBLOB IMAGE) | CREATE_IDX_MESSAGE_TXOP_TXID = CREATE INDEX JMS_MESSAGES_TXOP_TXID ON JMS_MESSAGES (TXOP, TXID) | CREATE_IDX_MESSAGE_DESTINATION = CREATE INDEX JMS_MESSAGES_DESTINATION ON JMS_MESSAGES (DESTINATION) | CREATE_IDX_MESSAGE_MESSAGEID_DESTINATION = CREATE UNIQUE CLUSTERED INDEX JMS_MESSAGES_IDX ON JMS_MESSAGES (MESSAGEID, DESTINATION) | CREATE_TX_TABLE = CREATE TABLE JMS_TRANSACTIONS ( TXID INTEGER, PRIMARY KEY (TXID) ) | CREATE_TABLES_ON_STARTUP = TRUE Please help. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048010#4048010 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048010 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - any tutorials for a new JBoss/JPA/Hibernate user
looking for a good starting point to using JBoss/JPA/Hibernate and EJB3.0 if anyone can point me at some good documentation or tutorials, it would be much appreciated. i already know how to use hibernate, and a little bit about JPA, but what i am really interested in learning is how to use JPA inside of a EJB and use the PersistenceContext and have the entitymanagerfactory be injected. i have tried several times with jboss and glassfish and could not get past a nullpointerexception when trying to persist an object. if anyone has experience gettings these technologies to work together peacefully i would love to know how. thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048009#4048009 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048009 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam+JMS: extracting Java object from ObjectMessage
No way ? I could of course serialize Object to string and use TextMessage instead. But there are some other subscribers already targeted to ObjectMessage. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048008#4048008 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048008 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @Length in char(1) property
Yes, removing the annotation solves the problem, but is it a bug of hibernate tools? The application created by seam-gen is not ready to use. Luiz View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048007#4048007 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048007 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: How can I track connections by user?
Ok, thanks, that sounds good. I have started on the development, but only recently. Also, what is the correct mechanism for returning connections back to the pool? I get them via the connection managers allocate method but I can't figure out how i tell the pool that I am returning the connection. cheers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048005#4048005 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048005 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to build Seam from CVS snapshot?
Hi all, I am learning Seam (admittedly quite slowly :0) ) but I think I am at a point where I want to build from the latest snapshot. Can someone show me how to build Seam + RichFaces from the CVS (including how to get the source)? Could not find the link from Jboss.com site. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048004#4048004 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048004 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: BdbjeCacheLoader exception with JTA distributed transact
One additional possible hint: when I shut the process down a shutdown hook runs to do an orderly shutdown of jacorb which is being used by JBoss Transactions for distributed transactions. BdbjeCacheLoader throws an exception when it's asked to shutdown apparently due to a lingering open transaction: | jvm 1| com.sleepycat.je.DatabaseException: (JE 3.2.23) There is 1 existing transaction opened against the Environment. | jvm 1| Aborting open transactions ... | jvm 1| | jvm 1| at com.sleepycat.je.Environment.close(Environment.java:331) | jvm 1| at org.jboss.cache.loader.bdbje.BdbjeCacheLoader.stop(BdbjeCacheLoader.java:259) | jvm 1| at org.jboss.cache.loader.CacheLoaderManager.stopCacheLoader(CacheLoaderManager.java:333) | jvm 1| at org.jboss.cache.CacheImpl.stop(CacheImpl.java:870) | jvm 1| at com.scea.scne.acs.shard.cache.JBossCacheShardStore$3.run(JBossCacheShardStore.java:72) | thanks... f View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048003#4048003 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048003 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Passing array of enum to SELECT * WHERE clause
I am using EJB3 with JBoss 4.0.5GA. You save my day jefec. Thanks. And I thought this board was dead. ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048002#4048002 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048002 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - JMS error with SQLServer
Hi, I am getting this error using a SQLServer database. JBoss version - 4.0.1. Could not store message: 37 msg=36 hard NOT_STORED PERSISTENT queue=QUEUE.Event Queue priority=4 lateClone=false hashCode=21058500; - nested throwable: (java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Cannot insert duplicate key row in object 'JMS_MESSAGES' with unique index 'JMS_MESSAGES_IDX'.) Any ideas? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048001#4048001 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048001 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Queue attributes not being implemented
I have added a feature request on the app server for them to implement redelivery delay: http://jira.jboss.com/jira/browse/JBAS-4438 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048000#4048000 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048000 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Associating views with process states
Hi, has anyone used processes and associated views with different states in the process definitions. i am basically trying to create a web application with different view for different process state, but dont seem to be able to make out the best design to do the same. Has anyone tried the same in the past. Any suggestions of what need to be done for the same would be highly apprecited thanks -vipul View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047999#4047999 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047999 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: automatically truncate message table on server startup
BTW I gues you meant JBoss Messaging (not JBoss MQ) in your previous post - this is a JBoss Messaging forum. BTW Yes JBoss Messaging implements a fully fledged XA resource implementation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047998#4047998 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047998 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: Migration to MySQL
Yes this is ok . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047997#4047997 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047997 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: automatically truncate message table on server startup
"paul_da_programmer" wrote : I'm only interested in the ATOMIC ('A' in ACID) aspect of a transaction. What I want to guarantee in using a JMS in a NONPERSISTENT mode is that if the JMS transaction ends abruptly, that all DB work will be back out ATOMICALLY (i.e. all or none) | If you are using only non persistent messages, then there is nothing to "back out" from the DB, since nothing has been saved to the db. Perhaps I don't follow what you are trying to say... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047996#4047996 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047996 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - BdbjeCacheLoader exception with JTA distributed transactions
I have a simple cache configuration that specifies a single BdbjeCacheLoader. I'm using JBoss Transactions and specifying transaction boundaries in my code using JTA. Here's one of the two transactional methods in my application: | public byte[] loadData(byte[] key) throws ShardStoreException { | | Validate.notNull(key,"key is null"); | | UserTransaction tx = null; | try { | | String keyStr = HexUtil.toHexString(key); | | String fqn = new StringBuilder("/shard_").append(shardId).append("/").append(keyStr).toString(); | Fqn nodeFqn = Fqn.fromString(fqn); | | tx = com.arjuna.ats.jta.UserTransaction.userTransaction(); | logger.info(" About to begin TX"); | tx.begin(); | logger.info(" Transaction details: " + tx); | logger.info(" Transaction started"); | | Object value = cache.get(nodeFqn, KEY_PAYLOAD); | | logger.info(" About to commit tx."); | tx.commit(); | logger.info(" TX committed."); | | if(null==value) { | return null; | } | | if( !(value instanceof byte[]) ) { | throw new IllegalArgumentException("Invalid payload found in cache."); | } | return (byte[])value; | | } catch(Exception e) { | try { | logger.error("Error encountered. Rolling back transaction.",e); | tx.rollback(); | } catch(Exception re) { | logger.error("Error in rollback.",re); | } | throw new ShardStoreException(e); | } | } | Pretty basic usage of JBoss cache with lots of logger calls. With my current cache configuration I can call this method once and it appears to succeed normally. When I call it again, however, I get this exception: | jvm 1| INFO 10:11.03 [AnonymousIoService-4] JBossCacheShardStore - About to begin TX | jvm 1| INFO 10:11.03 [AnonymousIoService-4] JBossCacheShardStore - Transaction details: [EMAIL PROTECTED] | jvm 1| INFO 10:11.03 [AnonymousIoService-4] JBossCacheShardStore - Transaction started | jvm 1| [23-05-2007 10:11:03:651] jacorb.poa:INFO: oid: | jvm 1| 05 15 0C 47 48 3F 29 14 36 40 ...GH?).6@ | jvm 1| object is activated | jvm 1| ERROR 10:11.04 [AnonymousIoService-4] JBossCacheShardStore - Error encountered. Rolling back transaction. | jvm 1| java.lang.RuntimeException: com.sleepycat.je.DeadlockException: (JE 3.2.23) Lock expired. Locker -1_AnonymousIoService-4_ThreadLocker: waited for lock on database=SHARD_CLUSTER node=28 type=READ grant=WAIT_NEW timeoutMillis=500 startTime=1179940263653 endTime=1179940264155 | jvm 1| Owners: [] | jvm 1| Waiters: [] | jvm 1| | jvm 1| at org.jboss.cache.CacheImpl.invokeMethod(CacheImpl.java:3764) | jvm 1| at org.jboss.cache.CacheImpl.get(CacheImpl.java:1323) | jvm 1| at org.jboss.cache.CacheImpl.get(CacheImpl.java:1298) | jvm 1| at com.scea.scne.acs.shard.cache.JBossCacheShardStore.loadData(JBossCacheShardStore.java:110) | jvm 1| at com.scea.scne.acs.shard.server.ShardFetchHandler.handleLoadRequest(ShardFetchHandler.java:72) | jvm 1| at com.scea.scne.acs.shard.server.ShardFetchHandler.messageReceived(ShardFetchHandler.java:55) | jvm 1| at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:703) | jvm 1| at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362) | jvm 1| at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:54) | jvm 1| at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800) | jvm 1| at org.apache.mina.filter.LoggingFilter.messageReceived(LoggingFilter.java:97) | jvm 1| at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362) | jvm 1| at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:54) | jvm 1| at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800) | jvm 1| at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:62) | jvm 1| at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:200) | jvm 1| at org.
[jboss-user] [JCA/JBoss] - Re: How can I track connections by user?
anonymous wrote : Therefore, I am after a solution where each time a user makes a request, the same connection from the pool is always used. Yes looks like byApplication pooling strategy would work in this case . But you need to understand that byApplication pooling strategy comes with connection pool per user , I think you are aware of that as you would be keeping a single MC in a pool . All I see what you need to do would be 1) Create a MCF , MC , CF etc stuff 2) Prepare a RAR 3) Have a -ds.xml file defining the connection factory stuff , this would be used by ConnectionFactory deployer to bind the CF in the JNDI. BTW have you started the development or you are about to begin ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047994#4047994 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047994 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - EJB timeout invoked before the EAR is fully deployed.
I think this should be a bug, but want to get your thoughts before submiting any ticket. This is JBoss AS 4.0.5GA, and I am using EJB3. When I start the JBoss, if there is leftover timers, JBoss will invoke the corresponding timeout() method on the EJB before the EAR is fully deployed. The direct error I got is that it could not find my custom LoginModule class as it is not loaded yet. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047993#4047993 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047993 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: automatically truncate message table on server startup
I'm only interested in the ATOMIC ('A' in ACID) aspect of a transaction. What I want to guarantee in using a JMS in a NONPERSISTENT mode is that if the JMS transaction ends abruptly, that all DB work will be back out ATOMICALLY (i.e. all or none) That's why I asked if there is a configurable way for JBoss MQ to be configured to do both 1. use persistence, say an XA DB configuration 2. but not persist the messages across restarts - i.e. truncate the JMS message table at startup. I know it's a bit of an oddball request, and I know I could just write some "ResetQueue" service that invokes removeAllMessages( ) for the JMS destination and have my MDBs depend on that service... I just was wondering if this was something that existed. It seems that you may want persistent messages for the lifecycle of the execution of your application, while not wanting them to persist ACROSS restarts... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047992#4047992 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047992 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam is spining JVM on startup
plus one: in CR2 just work on jdk 5 32bits (up9)... not on jdk 5 64bits (up11/turion/ubuntu 7.04)... GA doesn't start on any jdk with my project... Seam Examples works on GA for both View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047991#4047991 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047991 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: How can I track connections by user?
The duration of the session is however long the user remains logged into the system. This could be hours but practically we will have a timeout of some length. The EIS is a bespoke system using a bespoke protocol. I need to create a socket and keep it connected to the EIS for as long as the user is using the system. The protocol is bidirectional, asynchronous, ascii streams. Under normal circumstances i would use a Stateful session bean to cache the connection, but I am stuck with some legacy architecture that forces me to treat the user's interactions in a request/response fashion. Therefore, I am after a solution where each time a user makes a request, the same connection from the pool is always used. cheers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047988#4047988 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047988 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user