[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Can't use EJB3 MDB to retrieve messages one by one.
Did you figure out why you got this message, because I'm getting the exact same problem with an MDB on 4.0.4RC1. Looks like a bug in the SaxJBossXBParser, because this is obviously no session EJB. Is this a known issue? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945643#3945643 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945643 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Can't use EJB3 MDB to retrieve messages one by one.
You may want to consider using a database lock instead. Using statics is inherently risky in a J2EE environment, because your class may be loaded many times by different class loaders. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945997#3945997 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945997 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Using WSRP with JBoss Portal 2.4
I've successfully built JBoss Portal 2.4 in order to test the WSRP functionality. However, I haven't yet found out how to expose my own portlets via WSRP. Has anybody tried to do this yet? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936209#3936209 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936209 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - How on earth!?
Hi everybody, I'm having a rather exotic problem at the moment. Trying to connect to JBoss MQ from a remote client, I succeed when I don't want to. Some test code may make this clearer: Properties env = new Properties(); env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); env.put(Context.PROVIDER_URL, "jnp://mafaws01:1099" ); env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); Context context = new InitialContext(env); Queue queue = (Queue)context.lookup("queue/A"); System.out.println("Found queue: " + queue); QueueConnectionFactory connectionFactory = (QueueConnectionFactory)context.lookup("ConnectionFactory"); System.out.println("Found factory: " + connectionFactory); This works fine when JBoss is up and running on the server mafaws01. But to my amazement it also works when I've stopped JBoss! The output below is what I get in that case. Apparently the NamingContext object fails to connect to the naming service but still hands me back the factory and queue registered in the JNDI tree, whereas I would prefer that it fails miserably... By the way, if I change the JNDI names to something not found in JNDI, I don't get a factory and queue. 006-06-28 15:18:26,996 [main] DEBUG org.jnp.interfaces.NamingContext - Failed to connect to mafaws01:1099 javax.naming.CommunicationException: Failed to connect to server mafaws01:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server mafaws01:1099 [Root exception is java.net.ConnectException: Connection refused: connect]] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) at javax.naming.InitialContext.lookup(Unknown Source) at se.rgk.boxer.tests.RemoteJmsTest.main(RemoteJmsTest.java:21) Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server mafaws01:1099 [Root exception is java.net.ConnectException: Connection refused: connect] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243) ... 5 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.(Unknown Source) at java.net.Socket.(Unknown Source) at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84) at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77) at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239) ... 5 more 2006-06-28 15:18:27,371 [main] DEBUG org.jboss.mq.referenceable.SpyDestinationObjectFactory - SpyDestinationObjectFactory->getObjectInstance() Found queue: QUEUE.A 2006-06-28 15:18:27,402 [main] DEBUG org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory - Extracting SpyConnectionFactory from reference 2006-06-28 15:18:27,480 [main] DEBUG org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory - The GenericConnectionFactory is: [EMAIL PROTECTED] connectionProperties={ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_TCPNODELAY_KEY=yes, UIL_CHUNKSIZE_KEY=100, UIL_CONNECTADDRESS_KEY=null, UIL_CONNECTPORT_KEY=0, UIL_SOTIMEOUT_KEY=12, UIL_RECEIVE_REPLIES_KEY=No, UIL_ADDRESS_KEY=172.16.11.90, UIL_PORT_KEY=8093, PingPeriod=6, UIL_BUFFERSIZE_KEY=2048}] Found factory: [EMAIL PROTECTED] Are JNDI names and stubs somehow cached locally? Does anybody know how to disable this behaviour? Or is there away of checking whether the connectionFactory is really only a disconnected stub? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954012#3954012 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954012 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Bug in EJB QL compiler?
I think I may have stumbled across a bug in the EJB QL compiler. But being new to JBoss CMP, I was wondering whether I may have done something wrong. When trying to parse the following query, the deployment thread throws a NullPointerException at me: SELECT OBJECT(t) FROM TranslationError t WHERE t.originalLanguage = ?1 AND t.targetLanguage = ?2 Is there anything wrong with this. The properties originalLanguage and targetLanguage contain references to another CMP entity bean. Cheers, Manne View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830528#3830528 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830528 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Bug in EJB QL compiler?
Hi, Thanks for the reply - sorry about the terse info in my first post. Stepping through the JBoss code, I've found that the cause of the nullpointer is the fact that the getEntity() method in org.jboss.ejb.plugins.cmp.ejbql.ASTPath returns null, because the last object in the fieldList is neither an instance of CMRFieldBridge nor of EntityBridge, but of JDBCCMP2xFieldBridge. This causes an exception on line 323 in the class JDBCEJBQLCompiler. Looks like a bug to me (especially since this deploys without errors in Orion AS), but a snippet from the configuration of the EJB in question and the start of the stack trace I get follow below. Regards, Manne TranslationErrorEJB com.zinesoft.translationerror.ejb.entity.TranslationErrorHome com.zinesoft.translationerror.ejb.entity.TranslationError com.zinesoft.translationerror.ejb.entity.TranslationErrorBean Container java.lang.String False 2.x TranslationError originalLanguage targetLanguage incorrectTranslation suggestedTranslation The phrase in the original language phrase id id findByLanguages com.zinesoft.translationerror.ejb.entity.Language com.zinesoft.translationerror.ejb.entity.Language SELECT OBJECT(t) FROM TranslationError t WHERE t.originalLanguage = ?1 AND t.targetLanguage = ?2 2004-04-14 21:51:40,093 ERROR [org.jboss.ejb.EntityContainer] Starting failed org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT OBJECT(t) FROM TranslationError t WHERE t.originalLanguage = ?1 AND t.targetLanguage = ?2'; - nested throwable: (java.lang.NullPointerException) at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:50) at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:59) ... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830633#3830633 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830633 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Performance Tuning] - Re: Performance Tuning with OS X and JBoss
Maybe you don't want to, but I really think you'd be better off using a java-based profiler like optimizeit or jprobe. You can get evaluation licenses for free if your budget is tight. Good Luck! Manne View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830695#3830695 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830695 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: My first servlet can't run! Help me!
Hi there, You seem to be using the wrong url to access the servlet, because jboss tries to redirect you to the error page. The error code 404 means "File not found". Check the servlet mappings in web.xml Good luck! Manne View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830902#3830902 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830902 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: My first servlet can't run! Help me!
You should use an url ending in .account (e.g: /WebModule/edit.account)to access the servlet. Your class file should be in WEB-INF/classes/server/web or somewhere else on the classpath; if not you'll not be able to find it. It may be a good idea to read up a bit on how servlets work before asking a lot of questions in these forums. Check out this page, for instance: http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/ Regards, Manne View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830918#3830918 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830918 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Bug in EJB QL compiler?
Hi Sesques, Thanks for looking into this. The originalLanguage and targetLanguage fields (properties) are in fact references to other entity beans, not Strings or anything like that. Is there a problem with that? As I said, I'm new to JBoss CMP beans and wouldn't consider myself an expert on entity beans generally, so bear with me if I'm being silly. However, my code works fine in Orion AS, so I think this is either a bug in JBoss, or Orion provides functionality over the EJB spec. Imho JBoss should at least trap any error I may have made and produce a meaningful error message rather than stopping with a NullPointerException. Regards, Manne View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831378#3831378 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831378 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user