users@glassfish.java.net

Re: JMS - Netbeans - Glassfish

From: Sivakumar Thyagarajan <Sivakumar.Thyagarajan_at_Sun.COM>
Date: Mon, 17 Dec 2007 17:06:45 +0530

Hi

rdblaha1 wrote:
...
> Thank was very helpful. I was able to add the AddressList property for
> the connectionFactory in Glassfish. I also followed through on working with
> the ant create-remote-factory -Dsys=admin as well.
> (In the setup with which I am working 'jupiter' is actually 'admin'.)
>
> However, running the ant create-remote-factory -Dsys=admin I get:
>
> [echo]
> [echo] C:/Sun/AppServer/bin/asadmin.bat create-jms-resource
> [echo] --user admin
> [echo] --passwordfile
> C:\Progra~1\Java\jdk1.5.0_04\javaeetutorial5/example
> s/common/admin-password.txt
> [echo] --host localhost
> [echo] --port 4848
> [echo] --restype javax.jms.ConnectionFactory
> [echo] --enabled=true
> [echo] --property AddressList=admin
> [echo] jms/AdminConnectionFactory
> [echo]
..
> [exec] Server returned HTTP response code: 500 for URL:
> http://localhost:48
> 48/web1/remotejmx
> [exec] CLI137 Command create-jms-resource failed.
>
> BUILD SUCCESSFUL
> Total time: 1 second
> C:\source\projects\JMS\SimpleProducer>

As shown in the ant output, this is the actual command executed by the
ant script:
>> [echo] C:/Sun/AppServer/bin/asadmin.bat create-jms-resource
>> [echo] --user admin
>> [echo] --passwordfile
>> C:\Progra~1\Java\jdk1.5.0_04\javaeetutorial5/example
>> s/common/admin-password.txt
>> [echo] --host localhost
>> [echo] --port 4848
>> [echo] --restype javax.jms.ConnectionFactory
>> [echo] --enabled=true
>> [echo] --property AddressList=admin
>> [echo] jms/AdminConnectionFactory

Are you able to run this outside the ant script? What errors do you
face? Is the appserver started locally and the admin port running at
4848? Are there any server side exceptions in the server log?


>
> Even with the Glassfish server (earth - my PC) connectionFactory with the
> added Property and the App Server 9.1 (jupiter - admin network server) setup
> I still get the following when running my Consumer.
>
>
> # /opt/SUNWappserver/bin/appclient -client SimpleSynchConsumer.jar queue
> Destination type is queue
> Dec 14, 2007 9:14:14 AM com.sun.messaging.jmq.jmsclient.ExceptionHandler
> logCaughtException
> WARNING: [I500]: Caught JVM Exception: java.io.EOFException
> Dec 14, 2007 9:14:14 AM com.sun.messaging.jms.ra.ManagedConnection <init>
> SEVERE: MQJMSRA_MC4001: constructor:Aborting:JMSException on
> createConnection=[C4060]: Login failed: user=admin,
> broker=admin:7676(37393)
> com.sun.messaging.jms.JMSSecurityException: [C4060]: Login failed:
> user=admin, broker=admin:7676(37393)
> at
> com.sun.messaging.jmq.jmsclient.ProtocolHandler.authenticate(ProtocolHandler.java:1086)

I am sorry I don't know exactly what the tutorial does. Is this the
main error while running the appclient? Could you provide the full
log? Have you changed the username/password for admin user in the
local broker? Are you able to say list the destinations in the local
broker via:
$INSTALLROOT/publish/glassfish/imq/bin/imqcmd list dst -u admin and
typing in admin for password?

Thanks
--Siva.