Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

javax.naming.NameNotFoundException: Unable to resolve 'jppsacntrQ' Resolved: ''

50 views
Skip to first unread message

Kok Liang

unread,
May 23, 2003, 1:54:18 PM5/23/03
to
Hi,

I have written a simple client to receive messages from a 'jppsacntrQ'
queue,

The jms server which keeps this queue is already targetted at the
server I am running.

I have closed my command prompt and restarted WLS a few times but I am
still getting this error.

Has anyone else encountered the same problem?

Appreciate the help ...

Victor

c:\program files\intellij-idea-3.0.4\jre\bin\java.exe -Xmx128M
-Djava.home=C:\Program Files\IntelliJ-IDEA-3.0.4\jre -classpath
c:\program files\intellij-idea-3.0.4\jre\lib\tools.jar;C:\Program
Files\IntelliJ-IDEA-3.0.4\lib\idea_rt.jar;C:\Program
Files\IntelliJ-IDEA-3.0.4\lib\ant.jar;C:\Program
Files\IntelliJ-IDEA-3.0.4\lib\optional.jar;C:\Program
Files\IntelliJ-IDEA-3.0.4\lib\\rt\xerces1.jar
com.intellij.rt.ant.execution.AntMain -logger
com.intellij.rt.ant.execution.IdeaAntLogger -verbose
-Dbuild.compiler.emacs=true -buildfile
C:\java-projects\portnet-jp\build.xml test-polling-subscriber
build.xml
test-polling-subscriber
java
Running Start Polling Task ...
DEBUG [main]: subscriber.propertyFile.path=C:/java-projects/portnet-jp/resources/configuration/JPContainer.cfg
DEBUG [main]: java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
DEBUG [main]: java.naming.provider.url=t3://localhost:7001
DEBUG [main]: java.naming.referral=throw
DEBUG [main]: java.naming.security.authentication=simple
DEBUG [main]: java.naming.security.principal=null
DEBUG [main]: java.naming.security.credentials=null
DEBUG [main]: sleepTimePerCycle=15000
DEBUG [main]: queueConnectionFactoryName=pnsgQCF
DEBUG [main]: incomingQueueName=jppsacntrQ
DEBUG [main]: incomingFileStorePath=C:/java-projects/portnet-jp/resources/data/JP/Container/IN
DEBUG [main]: timestampFormat=yyyyMMddHHmm
INFO [main]: Setting Up Queue and QueueConnectionFactory ...
DEBUG [main]: Looking up QueueConnectionFactory: pnsgQCF
DEBUG [main]: Looking up Incoming Queue: jppsacntrQ
javax.naming.NameNotFoundException: Unable to resolve 'jppsacntrQ'
Resolved: '' Unresolved:'jppsacntrQ' ; remaining name 'jppsacntrQ'
at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown
Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
at javax.naming.InitialContext.lookup(Unknown Source)
at pow.business.JP.Container.JPCntrSubscriber.init(JPCntrSubscriber.java:162)
at pow.business.JP.Container.JPCntrSubscriber.<init>(JPCntrSubscriber.java:58)
at pow.business.JP.Container.Main.start(Main.java:183)
at pow.business.JP.Container.Main.main(Main.java:289)
Please check whether 'jndi.properties' is available in the CLASSPATH
and whether it has been configured properly.
Java Result: -1

Build completed with 1 error and 13 warnings. Time: 13 s

Tom Barnes

unread,
May 23, 2003, 3:19:07 PM5/23/03
to Kok Liang
Please post your config.xml

Kok Liang

unread,
May 23, 2003, 11:00:24 PM5/23/03
to
Here it is:

<?xml version="1.0" encoding="UTF-8"?>
<!--Last updated on: Sat May 24 01:50:49 SGT 2003, If your domain is
active, please do not edit the config.xml file. Any changes made to
that file while the domain is active will not have any effect on the
domain's configuration and are likely to be lost. If your domain is
inactive, you may edit this file with an XML editor. If you do so,
please refer to the BEA Weblogic Server Configuration Reference
documentation available from
http://edocs.bea.com/wls/docs70/config_xml. In general, we recommend
that changes to your configuration file be made through the
Administration Console.-->
<Domain ConfigurationVersion="7.0.1.0" Name="portnet-domain">
<Application Deployed="true" Name="DefaultWebApp"
Path=".\applications" StagedTargets="" TwoPhase="false">
<WebAppComponent Name="DefaultWebApp" Targets="portnet-server"
URI="DefaultWebApp"/>
</Application>
<Application Deployed="true" Name="certificate" Path=".\applications"
StagedTargets="" TwoPhase="false">
<WebAppComponent Name="certificate" Targets="portnet-server"
URI="certificate.war"/>
</Application>
<Application Deployed="true" Name="jive3"
Path="C:\java-libraries\jive_forums_pro_3_0_9" TwoPhase="true">
<WebAppComponent Name="jive3" Targets="portnet-server"
URI="jive3.war"/>
</Application>
<ApplicationManager Name="portnet-domain"/>
<EmbeddedLDAP Credential="{3DES}U0sIdpap3Jn35/agldr/nk4n9q5Vo449V4F0z3bLPsM="
Name="portnet-domain"/>
<FileRealm Name="wl_default_file_realm"/>
<JMSConnectionFactory DefaultDeliveryMode="Persistent"
JNDIName="pnsgQCF" Name="pnsgQCF" Targets="portnet-server"/>
<JMSDestinationKey Name="portnet-jms-dest-key"/>
<JMSFileStore Directory="c:\bea\user_projects\portnet-domain\logs\file-store"
Name="portnet-jms-file-store"/>
<JMSServer Name="portnet-jms-server" Store="portnet-jms-file-store"
Targets="portnet-server">
<JMSQueue BytesPagingEnabled="false"
DeliveryModeOverride="Persistent"
DestinationKeys="portnet-jms-dest-key" JNDIName="jppsacntrQ"
MessagesPagingEnabled="false" Name="jppsacntrQ" StoreEnabled="true"/>
<JMSQueue BytesPagingEnabled="false"
DeliveryModeOverride="Persistent"
DestinationKeys="portnet-jms-dest-key" JNDIName="psajpcntrQ"
MessagesPagingEnabled="false" Name="psajpcntrQ" StoreEnabled="true"/>
</JMSServer>
<JTA Name="portnet-domain"/>
<Log FileName=".\wl-domain.log" Name="portnet-domain"/>
<PasswordPolicy Name="wl_default_password_policy"/>
<Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
<SNMPAgent Name="portnet-domain"/>
<Security GuestDisabled="false" Name="portnet-domain"
PasswordPolicy="wl_default_password_policy" Realm="wl_default_realm"
RealmSetup="true"/>
<SecurityConfiguration
Credential="{3DES}iE0EWRYurlOnPzbJk1HTM6ajARYfmNrCU4UL/1iAQRJOQGyzRoBdl9bhnBu6JzIucTmQclA22XOW7WwQpMguyQqbLDIGr1VA"
Name="portnet-domain"/>
<Server ListenPort="7001" Name="portnet-server"
NativeIOEnabled="true" ServerVersion="7.0.1.0"
StdoutDebugEnabled="true">
<COM Name="portnet-server"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<IIOP Name="portnet-server"/>
<JTAMigratableTarget Cluster="" Name="portnet-server"
UserPreferredServer="portnet-server"/>
<JTARecoveryService Name="portnet-server"/>
<KernelDebug Name="portnet-server"/>
<Log FileName="portnet-server\portnet-server.log"
Name="portnet-server"/>
<SSL Enabled="true" HostnameVerificationIgnored="true"
ListenPort="7002" Name="portnet-server"
ServerCertificateFileName="democert.pem"
ServerPrivateKeyAlias="demokey"
ServerPrivateKeyPassPhrase="{3DES}F9QhYhhBa4InPlBKebOlAw=="/>
<ServerDebug Name="portnet-server"/>
<ServerStart Name="portnet-server"/>
<WebServer DefaultWebApp="DefaultWebApp"
LogFileName="portnet-server\access.log" LoggingEnabled="true"
Name="portnet-server"/>
</Server>
</Domain>


Tom Barnes <ple...@replyinnewsgroup.com> wrote in message news:<3ECE742B...@replyinnewsgroup.com>...

Tom Barnes

unread,
May 25, 2003, 3:57:06 PM5/25/03
to

Looks OK - did you check your log file for error messages?
Post the log file if you want me take a look.
0 new messages