Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 86430 invoked from network); 5 Mar 2010 09:40:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Mar 2010 09:40:44 -0000 Received: (qmail 73250 invoked by uid 500); 5 Mar 2010 09:40:30 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 73017 invoked by uid 500); 5 Mar 2010 09:40:28 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 73009 invoked by uid 99); 5 Mar 2010 09:40:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Mar 2010 09:40:27 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.130.89.130] (HELO bruce.dmz1.systematic.dk) (212.130.89.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Mar 2010 09:40:22 +0000 Received: from exch1aar.systematic.local ([172.17.2.105]) by bruce.dmz1.systematic.dk with Microsoft SMTPSVC(5.0.2195.6713); Fri, 5 Mar 2010 10:39:49 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: PLEASE HELP: classnotfounderror when running as Procrun service? Date: Fri, 5 Mar 2010 10:39:51 +0100 Message-ID: <1F73BC0657C6724ABC50790EE83722B5FEDB20@exch1aar> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: PLEASE HELP: classnotfounderror when running as Procrun service? Thread-Index: Acq8R87X9B56G5XMQP6q4K2+DR25nA== From: =?iso-8859-1?Q?S=F8ren_Krogh_Neigaard?= To: X-OriginalArrivalTime: 05 Mar 2010 09:39:49.0569 (UTC) FILETIME=[CCA73310:01CABC47] Hi I am trying to bump me message, I really need help. I am trying to use Procrun to run me Java app as a service: http://commons.apache.org/daemon/procrun.html I am installing my service with this command: prunsrv.exe //IS//SESThesaurusImporter = --Install=3D%path_to_base_dir%\bin\ prunsrv.exe --Description=3D"My = Service" = --Classpath=3D%path_to_base_dir%\lib\jms-1.1.jar;%path_to_base_dir%\lib\m= y-service.jar;%path_to_base_dir%\lib\log4j-1.2.15.jar;%path_to_base_dir%\= lib\wlfullclient-10.3.jar;%path_to_base_dir%\config --StartMode=3Djvm = --StartClass=3Dcom.myservice.MyService --StartMethod=3DstartService = --StartParams=3D%path_to_base_dir% --StopMode=3Djvm --StopClass=3D = com.myservice.MyService --StopMethod=3DstopService --StopParams=3Dstop = --LogPath=3D%path_to_base_dir%\logs --StdOutput=3Dauto --StdError=3Dauto = --Startup auto --JavaHome %java_home% Whenever I start my service, I get the following error: javax.naming.NoInitialContextException: Cannot instantiate class: = weblogic.jndi.WLInitialContextFactory [Root exception is = java.lang.ClassNotFoundException: weblogic/jndi/WLInitialContextFactory] =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at javax.naming.spi.NamingManager.getInitialContext(Unknown = Source) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at javax.naming.InitialContext.getDefaultInitCtx(Unknown = Source) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at javax.naming.InitialContext.init(Unknown Source) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at javax.naming.InitialContext.(Unknown Source) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at = com.systematic.ins.sesthesaurusimporter.jms.impl.JMSQueueReceiverImpl.get= InitialContext(JMSQueueReceiverImpl.java:58) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at = com.systematic.ins.sesthesaurusimporter.jms.impl.JMSQueueReceiverImpl.(JMSQueueReceiverImpl.java:30) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at = com.systematic.ins.sesthesaurusimporter.SESThesaurusImporter.getJMSQueueR= eceiver(SESThesaurusImporter.java:139) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at = com.systematic.ins.sesthesaurusimporter.SESThesaurusImporter.getXMLMessag= es(SESThesaurusImporter.java:145) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at = com.systematic.ins.sesthesaurusimporter.SESThesaurusImporter.startImporte= r(SESThesaurusImporter.java:100) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at = com.systematic.ins.sesthesaurusimporter.SESThesaurusImporter.start(SESThe= saurusImporter.java:86) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at = com.systematic.ins.sesthesaurusimporter.SESThesaurusImporter.startService= (SESThesaurusImporter.java:57) Caused by: java.lang.ClassNotFoundException: = weblogic/jndi/WLInitialContextFactory =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at java.lang.Class.forName0(Native Method) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at java.lang.Class.forName(Unknown Source) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 at com.sun.naming.internal.VersionHelper12.loadClass(Unknown = Source) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 ... 11 more The weblogic.jndi.WLInitialContextFactory class is in the = wlfullclient-10.3.jar, and if I do a = Class.forName("weblogic.jndi.WLInitialContextFactory") I get no errors, = so I can load this class, but when new InitialContext() is executed it = fails to load this class. I then try and run this via the commandprompt and via a main method, and = then it all works just fine. I also tried to do a = System.out.println(System.getProperty("java.class.path")); both when = running as service and when running from the command prompt. And it = gives me the exact same classpath. Any ideas what the hell is wrong here? Somehow there is a difference = from me running Java from the command prompt, and from Procrun running = Java as a service, can I somehow remove this difference so that it runs = as done from the commandprompt? Med venlig hilsen / Kind regards=20 S=F8ren Krogh Neigaard --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org