[JBoss-user] [Messaging, JMS & JBossMQ] - ConnectionFactory not bound...
I have a weird problem: I have Jboss 4.0.1 running in win xp and linux. I have made similar changes to configuration files that allows me to use mysql database. In windows, JMS ConnectionFactory is bound but not in Linux. I have tried everything but nothing seems to work. Everething is going ok in windows. Context context = new InitialContext(); TopicConnectionFactory topicFactory = (TopicConnectionFactory)context.lookup("ConnectionFactory"); error: javax.naming.NameNotFoundException: ConnectionFactory not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:491) at org.jnp.server.NamingServer.getBinding(NamingServer.java:499) at org.jnp.server.NamingServer.getObject(NamingServer.java:505) at org.jnp.server.NamingServer.lookup(NamingServer.java:278) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:544) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520) ... This lookup fails in linux. I have also tried to place env to context but that either doesen't work. env.put(InitialContext.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); env.put(InitialContext.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); envi.put(InitialContext.PROVIDER_URL, "jnp://127.0.0.1:1099"); Context context = new InitialContext(env); I don't know if different operating systems have anything do with this problem but it's worth of mentioning...I have checked all the FAQs and Wikis but I haven't find a solution... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3862732#3862732 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3862732 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - ConnectionFactory not bound
I am getting some errors in the console. Please check it === . JBoss Bootstrap Environment . JBOSS_HOME: C:\jboss-4.0.1\bin\\.. . JAVA: D:\j2sdk1.4.2_07\bin\java . JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m . CLASSPATH: D:\j2sdk1.4.2_07\lib\tools.jar;C:\jboss-4.0.1\bin\\run.jar . === . 14:31:23,312 INFO [Server] Starting JBoss (MX MicroKernel)... 14:31:23,312 INFO [Server] Release ID: JBoss [Zion] 4.0.1 (build: CVSTag=JBoss_4_0_1 date=200412230944) 14:31:23,312 INFO [Server] Home Dir: C:\jboss-4.0.1 14:31:23,312 INFO [Server] Home URL: file:/C:/jboss-4.0.1/ 14:31:23,312 INFO [Server] Library URL: file:/C:/jboss-4.0.1/lib/ 14:31:23,312 INFO [Server] Patch URL: null 14:31:23,312 INFO [Server] Server Name: default 14:31:23,328 INFO [Server] Server Home Dir: C:\jboss-4.0.1\server\default 14:31:23,328 INFO [Server] Server Home URL: file:/C:/jboss-4.0.1/server/default/ 14:31:23,328 INFO [Server] Server Data Dir: C:\jboss-4.0.1\server\default\data 14:31:23,328 INFO [Server] Server Temp Dir: C:\jboss-4.0.1\server\default\tmp 14:31:23,343 INFO [Server] Server Config URL: file:/C:/jboss-4.0.1/server/default/conf/ 14:31:23,343 INFO [Server] Server Library URL: file:/C:/jboss-4.0.1/server/default/lib/ 14:31:23,343 INFO [Server] Root Deployment Filename: jboss-service.xml 14:31:23,343 INFO [Server] Starting General Purpose Architecture (GPA)... 14:31:24,312 INFO [ServerInfo] Java version: 1.4.2_07,Sun Microsystems Inc. 14:31:24,312 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_07-b05,Sun Microsystems Inc. 14:31:24,312 INFO [ServerInfo] OS-System: Windows 2000 5.0,x86 14:31:25,203 INFO [Server] Core system initialized 14:31:28,468 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml 14:31:28,828 INFO [WebService] Using RMI server codebase: http://Mukti:8083/ 14:31:29,140 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server [EMAIL PROTECTED] 14:31:38,968 INFO [Embedded] Catalina naming disabled 14:31:40,250 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080 14:31:40,343 INFO [Catalina] Initialization processed in 1203 ms 14:31:40,343 INFO [StandardService] Starting service jboss.web 14:31:40,359 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.28 14:31:40,421 INFO [StandardHost] XML validation disabled 14:31:40,453 INFO [Catalina] Server startup in 110 ms 14:31:40,750 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/C:/jboss-4.0.1/server/default/deploy/http-invoker.sar/invoker.war/ 14:31:42,859 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/C:/jboss-4.0.1/server/default/tmp/deploy/tmp4763jboss-ws4ee-exp.war/ 14:31:43,234 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/jboss-4.0.1/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/ 14:31:43,703 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/C:/jboss-4.0.1/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/ 14:31:48,765 INFO [MailService] Mail Service bound to java:/Mail 14:31:49,984 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/jboss-4.0.1/server/default/deploy/jboss-local-jdbc.rar 14:31:50,375 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/jboss-4.0.1/server/default/deploy/jboss-xa-jdbc.rar 14:31:50,734 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/jboss-4.0.1/server/default/deploy/jms/jms-ra.rar 14:31:51,046 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/jboss-4.0.1/server/default/deploy/mail-ra.rar 14:31:51,968 ERROR [HypersonicDatabase] Starting failed jboss:database=localDB,service=Hypersonic java.sql.SQLException: General error: java.lang.NullPointerException at org.hsqldb.jdbc.jdbcUtil.sqlException(Unknown Source) at org.hsqldb.jdbc.jdbcConnection.(Unknown Source) at org.hsqldb.jdbcDriver.getConnection(Unknown Source) at org.hsqldb.jdbcDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at org.jboss.jdbc.HypersonicDatabase.getConnection(HypersonicDatabase.java:806) at org.jboss.jdbc.HypersonicDatabase.startStandaloneDatabase(HypersonicDatabase.java:617) at org.jboss.jdbc.HypersonicDatabase.startService(HypersonicDatabase.java:587) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222) at sun.reflect.GeneratedMethodAccessor2.invoke(
[JBoss-user] [Messaging, JMS & JBossMQ] - ConnectionFactory not bound error
1) I have been trying to use a standalone JMS sender. import javax.jms.*; import javax.naming.*; public class MessageToQueue { public static void main(String[] args) throws NamingException,JMSException { InitialContext ctx; QueueConnectionFactory cf; QueueConnection connection; QueueSession session; Queue destination; QueueSender sender; TextMessage message; ctx = new InitialContext(); cf = (QueueConnectionFactory)ctx.lookup("java:/QueueConnectionFactory"); System.out.println("1"); destination = (Queue)ctx.lookup("queue/testQueue"); System.out.println("2"); connection = cf.createQueueConnection(); System.out.println("3"); session = connection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE); System.out.println("4"); sender = session.createSender(destination); System.out.println("5"); message = session.createTextMessage(); System.out.println("6"); message.setText("Hello World!"); System.out.println("Sending Message."); sender.send(message); connection.close(); System.out.println("Done."); } } 2) I have the following in the JNDI properties in C:\jboss-4.0.3SP1\server\default\conf: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces java.naming.provider.url=jnp://localhost:1099 3) I have the following in the jboss-service.xml in C:\jboss-4.0.3SP1\server\default\conf: 1099 4) JBOSS server is on port 8080. Started the server 5) Executed this in command "java MessageSender" Got this error: Exception in thread "main" javax.naming.NameNotFoundException: QueueConnectionFactory not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:514) at org.jnp.server.NamingServer.getBinding(NamingServer.java:522) at org.jnp.server.NamingServer.getObject(NamingServer.java:528) at org.jnp.server.NamingServer.lookup(NamingServer.java:281) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572) at java.naming.InitialContext.lookup(InitialContext.java:351) at MessageToQueue.main(MessageToQueue.java:17) Could you let me know what is the exact problem? Thanks Regards Shriram View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937557#3937557 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937557 --- 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] - ConnectionFactory not bound Error
Hi, I am trying to deploy my web application under Jboss3.2.5 . I have a start up servlet which invokes a class ( which implements javax.jms.MessageListener ) , this class basically looks up a JMS Topic Connection Factory and creates publisher and subscriber. when I do look up for ConnectinFactory getting this error. Here is code for look up. TopicConnectionFactory factory = (TopicConnectionFactory) context.lookup("java:/ConnectionFactory"); calls javax. javax.naming.NameNotFoundException: ConnectionFactory not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) at org.jnp.server.NamingServer.getObject(NamingServer.java:509) at org.jnp.server.NamingServer.lookup(NamingServer.java:282) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:530) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509) at javax.naming.InitialContext.lookup(InitialContext.java:347) at com.mbasys.mars.utility.DataNotify.initJmsConnSes(DataNotify.java:215) at com.mbasys.mars.utility.DataNotify.(DataNotify.java:193) at com.mbasys.mars.scheduler.Scheduler.(Scheduler.java:110) at com.mbasys.mars.servlets.InitMarsServlet.initMars(InitMarsServlet.java:215) Thanks in advance for your Help. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864726#3864726 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864726 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user