users@glassfish.java.net

Re: jvmroute not added to sessionid.

From: <forums_at_java.net>
Date: Thu, 4 Aug 2011 03:17:39 -0500 (CDT)

Hi,

Thanks a lot for your posts,

I have decided to use the (default) Admin instance to deploy my
applications. In our GlassFish v3. environment I don't have any cluster and
we don't have defined any dadditional instance.

It looks It has no sense to add jvmRoute to SessionID when we have no
cluster but we have many servers and for us is very useful to know where
apache is sending requests just looking at sessionId.

I have set jvmRoute as JVM parameter -DjvmRoute and I have tried to set the
values AJP_INSTANCE_NAME and AJP_PORT in the System Properties TAB of th e
server (Admin Server) but it does not work. jvmRoute is not appended to
sessionid.

I attach startup log (it may help)

Thanks a lot

04-ago-2011 10:01:09 com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: JVM invocation command line:
C:\jdk1.6.0_20\bin\java.exe
-cp
C:/glassfish3/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-XX:NewRatio=2
-Xrs
-Xmx512m
-client
-javaagent:C:/glassfish3/glassfish/lib/monitor/flashlight-agent.jar
*-DjvmRoute=workerL02
*-Dfelix.fileinstall.disableConfigSave=false
-Djavax.net.ssl.keyStore=C:\glassfish3\glassfish\domains\Presidencia/config/keystore.jks
-Djava.awt.headless=true
-Dfelix.fileinstall.poll=5000
-Djava.endorsed.dirs=C:\glassfish3\glassfish/modules/endorsed;C:\glassfish3\glassfish/lib/endorsed
-Dfelix.fileinstall.bundles.startTransient=true
-Djavax.net.ssl.trustStore=C:\glassfish3\glassfish\domains\Presidencia/config/cacerts.jks
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djava.security.auth.login.config=C:\glassfish3\glassfish\domains\Presidencia/config/login.conf
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Dgosh.args=--nointeractive
-Dosgi.shell.telnet.maxconn=1
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Dfelix.fileinstall.dir=C:\glassfish3\glassfish/modules/autostart/
-Dosgi.shell.telnet.port=6666
-Djava.security.policy=C:\glassfish3\glassfish\domains\Presidencia/config/server.policy
-Dfelix.fileinstall.log.level=2
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dosgi.shell.telnet.ip=127.0.0.1
-Dcom.sun.aas.instanceRoot=C:\glassfish3\glassfish\domains\Presidencia
-Dcom.sun.aas.installRoot=C:\glassfish3\glassfish
-Djava.ext.dirs=C:\jdk1.6.0_20/lib/ext;C:\jdk1.6.0_20/jre/lib/ext;C:\glassfish3\glassfish\domains\Presidencia/lib/ext
-Dfelix.fileinstall.bundles.new.start=true
-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.fileinstall
-Djava.library.path=C:/glassfish3/glassfish/lib;C:/jdk1.6.0_20/bin;C:/WINDOWS/system32;C:/WINDOWS/Sun/Java/bin;C:/WINDOWS;C:/apache-maven-2.2.1/bin;C:/jre-6u26/bin;C:/Program
Files/CollabNet/Subversion
Client;C:/oracle/product/11.2.0/client_1/BIN;D:/oracle/product/10.2.0/client_1/BIN;C:/WINDOWS/system32/wbem;C:/Program
Files/Windows Imaging;C:/Program Files/Microsoft SQL Server/80/Tools/Binn
com.sun.enterprise.glassfish.bootstrap.ASMain
-domainname
Presidencia
-asadmin-args
--host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=false,,,start-domain,,,--verbose=true,,,--debug=false,,,--domaindir,,,C:\glassfish3\glassfish\domains,,,Presidencia
-instancename
server
-verbose
true
-debug
false
-asadmin-classpath
C:/glassfish3/glassfish/modules/admin-cli.jar
-asadmin-classname
com.sun.enterprise.admin.cli.AsadminMain
-upgrade
false
-type
DAS
-domaindir
C:/glassfish3/glassfish/domains/Presidencia
-read-stdin
true
04-ago-2011 10:01:09 com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: Successfully launched in 0 msec.
[#|2011-08-04T10:01:11.370+0200|INFO|glassfish3.1.1|null|_ThreadID=1;_ThreadName=Thread-2;|Running
GlassFish Version: GlassFish Server Open Source Edition 3.1.1 (build 12)|#]

[#|2011-08-04T10:01:11.370+0200|WARNING|glassfish3.1.1|null|_ThreadID=1;_ThreadName=Thread-2;|Record
begin marker is not a proper value so using default.|#]

[#|2011-08-04T10:01:11.370+0200|WARNING|glassfish3.1.1|null|_ThreadID=1;_ThreadName=Thread-2;|Record
end marker is not a proper value so using default.|#]

[#|2011-08-04T10:01:11.370+0200|WARNING|glassfish3.1.1|null|_ThreadID=1;_ThreadName=Thread-2;|Log
Format field separator is not a character so using default.|#]

[#|2011-08-04T10:01:11.542+0200|INFO|glassfish3.1.1|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=10;_ThreadName=Thread-2;|Registered
org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
persistence-type = replicated in BackingStoreFactoryRegistry|#]

[#|2011-08-04T10:01:12.167+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=10;_ThreadName=Thread-2;|The
Admin Console is already installed, but not yet loaded.|#]

[#|2011-08-04T10:01:12.261+0200|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0169:
Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]|#]

[#|2011-08-04T10:01:12.277+0200|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0169:
Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8443]|#]

[#|2011-08-04T10:01:12.292+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 406ms - bound to [0.0.0.0:8080]|#]

[#|2011-08-04T10:01:12.277+0200|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0169:
Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848]|#]

*[#|2011-08-04T10:01:12.292+0200|WARNING|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web.connector.coyote|_ThreadID=10;_ThreadName=Thread-2;|WEB0343:
JK properties file
C:\glassfish3\glassfish\domains\Presidencia\config\glassfish-jk.properties
does not exist |#]*

*[#|2011-08-04T10:01:12.292+0200|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0170:
Apache mod_jk/jk2 attached to virtual-server [server]  listening on port
[8.009]|#]*

[#|2011-08-04T10:01:12.324+0200|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0171:
Created virtual server [server]|#]

[#|2011-08-04T10:01:12.324+0200|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0171:
Created virtual server [__asadmin]|#]

[#|2011-08-04T10:01:12.480+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=12;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 516ms - bound to [0.0.0.0:8443]|#]

[#|2011-08-04T10:01:12.480+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=13;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 469ms - bound to [0.0.0.0:4848]|#]

[#|2011-08-04T10:01:12.480+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=14;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 453ms - bound to [0.0.0.0:3700]|#]

[#|2011-08-04T10:01:12.480+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=15;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 438ms - bound to [0.0.0.0:7676]|#]

[#|2011-08-04T10:01:12.730+0200|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0172:
Virtual server [server] loaded default web module []|#]

[#|2011-08-04T10:01:12.933+0200|INFO|glassfish3.1.1|org.apache.jk.common.ChannelSocket|_ThreadID=10;_ThreadName=Thread-2;|JK:
ajp13 listening on /0.0.0.0:8009|#]

[#|2011-08-04T10:01:12.933+0200|WARNING|glassfish3.1.1|org.apache.tomcat.util.threads.ThreadPool|_ThreadID=10;_ThreadName=Thread-2;|threadpool.max_threads_too_low|#]

*[#|2011-08-04T10:01:12.933+0200|INFO|glassfish3.1.1|org.apache.jk.server.JkMain|_ThreadID=10;_ThreadName=Thread-2;|Jk
running ID=0 time=0/16  config=null|#]*

[#|2011-08-04T10:01:13.230+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=10;_ThreadName=Thread-2;|core.start_container_done|#]

[#|2011-08-04T10:01:16.527+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=10;_ThreadName=Thread-2;|SEC1002:
Security Manager is OFF.|#]

[#|2011-08-04T10:01:16.589+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=10;_ThreadName=Thread-2;|SEC1010:
Entering Security Startup Service|#]

[#|2011-08-04T10:01:16.605+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=10;_ThreadName=Thread-2;|SEC1143:
Loading policy provider
com.sun.enterprise.security.provider.PolicyWrapper.|#]

[#|2011-08-04T10:01:16.652+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=10;_ThreadName=Thread-2;|SEC1115:
Realm [admin-realm] of classtype
[com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
created.|#]

[#|2011-08-04T10:01:16.652+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=10;_ThreadName=Thread-2;|SEC1115:
Realm [file] of classtype
[com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
created.|#]

[#|2011-08-04T10:01:16.652+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=10;_ThreadName=Thread-2;|SEC1115:
Realm [certificate] of classtype
[com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
successfully created.|#]

[#|2011-08-04T10:01:16.667+0200|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=10;_ThreadName=Thread-2;|SEC1011:
Security Service(s) Started Successfully|#]


--
[Message sent by forum member 'osegarra']
View Post: http://forums.java.net/node/828705