users@grizzly.java.net

Re: Glassfish and comet support : Make sure you have enabled Comet or make sure the Thread invoking that method is the same as the Servlet.service() Thread

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Wed, 3 Aug 2011 01:35:17 -0700 (PDT)

Hi Sebastien,

it is known issue, comet is not working on Jk connector.
This is going to be fixed in next Glassfish 3.2+ release by Grizzly 2.0
integration, where we have native Grizzly Jk implementation.

WBR,
Alexey.


On 08/03/2011 05:00 AM, Sebastien Dionne wrote:
> I have GlassFish Server Open Source Edition 3.1 (build 43)
>
> I enabled the comet support on default-config http listener and
> serverdefault http-listener
>
>
> and restarted it.. but no success.
>
> if I try the command line I got a error message
> [~/appservers/glassfish-3x/bin]# ./asadmin set
> configs.config.server-config.network-con
> fig.protocols.protocol.http-listener-1.http.comet-support-enabled=true
> HTTP connection failed with code 404, message: Not Found
> Command set failed.
> [~/appservers/glassfish-3x/bin]#
>
>
> my domain1.xml is
>
>
> <domain log-root="${com.sun.aas.instanceRoot}/logs"
> application-root="${com.sun.aas.instanceRoot}/applications" version="43">
> <system-applications>
> <application context-root=""
> location="${com.sun.aas.installRootURI}/lib/install/applications/__admingui"
> name="__admingui" directory-deployed="true" object-type="system-admin">
> <module name="__admingui">
> <engine sniffer="web"></engine>
> <engine sniffer="security"></engine>
> </module>
> </application>
> </system-applications>
> <applications>
> <application
> location="${com.sun.aas.instanceRootURI}/applications/ngasi_blank/"
> name="ngasi_blank" object-type="user">
> <property name="appLocation"
> value="${com.sun.aas.instanceRootURI}/applications/__internal/ngasi_blank/ngasi_blank.ear"></property>
> <property name="isComposite" value="true"></property>
> <property name="defaultAppName" value="ngasi_blank"></property>
> <engine sniffer="ear"></engine>
> <module name="ngasi_blank.war">
> <engine sniffer="security"></engine>
> <engine sniffer="web"></engine>
> </module>
> </application>
> <application context-root="/clinique"
> location="${com.sun.aas.instanceRootURI}/applications/clinique/"
> name="clinique" object-type="user">
> <property name="appLocation"
> value="${com.sun.aas.instanceRootURI}/applications/__internal/clinique/clinique2246472919200646246.war"></property>
> <property name="defaultAppName"
> value="clinique2246472919200646246"></property>
> <module name="clinique">
> <engine sniffer="jpa"></engine>
> <engine sniffer="security"></engine>
> <engine sniffer="web"></engine>
> </module>
> </application>
> </applications>
> <resources>
> <jdbc-resource pool-name="__TimerPool" jndi-name="jdbc/__TimerPool"
> object-type="system-admin"></jdbc-resource>
> <jdbc-resource pool-name="DerbyPool"
> jndi-name="jdbc/__default"></jdbc-resource>
> <jdbc-connection-pool
> datasource-classname="org.apache.derby.jdbc.EmbeddedXADataSource"
> res-type="javax.sql.XADataSource" name="__TimerPool">
> <property name="databaseName"
> value="${com.sun.aas.instanceRoot}/lib/databases/ejbtimer"></property>
> <property name="connectionAttributes" value=";create=true"></property>
> </jdbc-connection-pool>
> <jdbc-connection-pool is-isolation-level-guaranteed="false"
> datasource-classname="org.apache.derby.jdbc.ClientDataSource"
> res-type="javax.sql.DataSource" name="DerbyPool">
> <property name="PortNumber" value="4862"></property>
> <property name="Password" value="APP"></property>
> <property name="User" value="APP"></property>
> <property name="serverName" value="localhost"></property>
> <property name="DatabaseName" value="sun-appserv-samples"></property>
> <property name="connectionAttributes" value=";create=true"></property>
> </jdbc-connection-pool>
> </resources>
> <servers>
> <server name="server" config-ref="server-config">
> <application-ref ref="__admingui"
> virtual-servers="__asadmin"></application-ref>
> <application-ref ref="ngasi_blank"
> virtual-servers="server,clinique"></application-ref>
> <application-ref ref="clinique"
> virtual-servers="server,clinique"></application-ref>
> <resource-ref ref="jdbc/__TimerPool"></resource-ref>
> <resource-ref ref="jdbc/__default"></resource-ref>
> </server>
> </servers>
> <nodes>
> <node node-host="localhost" name="localhost-domain1" type="CONFIG"
> install-dir="${com.sun.aas.productRoot}"></node>
> </nodes>
> <configs>
> <config name="server-config">
> <http-service>
> <access-log></access-log>
> <virtual-server id="server"
> network-listeners="http-listener-1,http-listener-2"></virtual-server>
> <virtual-server id="__asadmin"
> network-listeners="admin-listener"></virtual-server>
> <virtual-server id="clinique"
> log-file="${com.sun.aas.instanceRoot}/logs/clinique.log"
> sso-enabled="true" hosts="${com.sun.aas.hostName},
> clinique.jerabisoft.com <http://clinique.jerabisoft.com>"
> default-web-module="clinique"
> network-listeners="http-listener-1,http-listener-2"></virtual-server>
> </http-service>
> <iiop-service>
> <orb use-thread-pool-ids="thread-pool-1"></orb>
> <iiop-listener port="4857" id="orb-listener-1" address="127.0.0.1"
> lazy-init="true"></iiop-listener>
> <iiop-listener port="4858" id="SSL" address="127.0.0.1"
> security-enabled="true">
> <ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl"
> cert-nickname="s1as"></ssl>
> </iiop-listener>
> <iiop-listener port="4859" id="SSL_MUTUALAUTH" address="127.0.0.1"
> security-enabled="true">
> <ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl"
> cert-nickname="s1as" client-auth-enabled="true"></ssl>
> </iiop-listener>
> </iiop-service>
> <admin-service system-jmx-connector-name="system" type="das-and-server">
> <jmx-connector port="4860" address="0.0.0.0" security-enabled="false"
> auth-realm-name="admin-realm" name="system"></jmx-connector>
> <property name="adminConsoleContextRoot" value="/admin"></property>
> <property name="adminConsoleDownloadLocation"
> value="${com.sun.aas.installRoot}/lib/install/applications/admingui.war"></property>
> <property name="ipsRoot" value="${com.sun.aas.installRoot}/.."></property>
> <das-config></das-config>
> </admin-service>
> <connector-service></connector-service>
> <web-container>
> <session-config>
> <session-manager>
> <manager-properties></manager-properties>
> <store-properties></store-properties>
> </session-manager>
> <session-properties></session-properties>
> </session-config>
> </web-container>
> <ejb-container session-store="${com.sun.aas.instanceRoot}/session-store">
> <ejb-timer-service></ejb-timer-service>
> </ejb-container>
> <mdb-container></mdb-container>
> <jms-service default-jms-host="default_JMS_host" type="EMBEDDED">
> <jms-host port="4861" host="localhost" name="default_JMS_host"></jms-host>
> </jms-service>
> <security-service>
> <auth-realm
> classname="com.sun.enterprise.security.auth.realm.file.FileRealm"
> name="admin-realm">
> <property name="file"
> value="${com.sun.aas.instanceRoot}/config/admin-keyfile"></property>
> <property name="jaas-context" value="fileRealm"></property>
> </auth-realm>
> <auth-realm
> classname="com.sun.enterprise.security.auth.realm.file.FileRealm"
> name="file">
> <property name="file"
> value="${com.sun.aas.instanceRoot}/config/keyfile"></property>
> <property name="jaas-context" value="fileRealm"></property>
> </auth-realm>
> <auth-realm
> classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm"
> name="certificate"></auth-realm>
> <jacc-provider
> policy-provider="com.sun.enterprise.security.provider.PolicyWrapper"
> name="default"
> policy-configuration-factory-provider="com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl">
> <property name="repository"
> value="${com.sun.aas.instanceRoot}/generated/policy"></property>
> </jacc-provider>
> <jacc-provider
> policy-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyProvider"
> name="simple"
> policy-configuration-factory-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyConfigurationFactory"></jacc-provider>
> <audit-module classname="com.sun.enterprise.security.Audit"
> name="default">
> <property name="auditOn" value="false"></property>
> </audit-module>
> <message-security-config auth-layer="SOAP">
> <provider-config provider-type="client"
> provider-id="XWS_ClientProvider"
> class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule">
> <request-policy auth-source="content"></request-policy>
> <response-policy auth-source="content"></response-policy>
> <property name="encryption.key.alias" value="s1as"></property>
> <property name="signature.key.alias" value="s1as"></property>
> <property name="dynamic.username.password" value="false"></property>
> <property name="debug" value="false"></property>
> </provider-config>
> <provider-config provider-type="client" provider-id="ClientProvider"
> class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule">
> <request-policy auth-source="content"></request-policy>
> <response-policy auth-source="content"></response-policy>
> <property name="encryption.key.alias" value="s1as"></property>
> <property name="signature.key.alias" value="s1as"></property>
> <property name="dynamic.username.password" value="false"></property>
> <property name="debug" value="false"></property>
> <property name="security.config"
> value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"></property>
> </provider-config>
> <provider-config provider-type="server"
> provider-id="XWS_ServerProvider"
> class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule">
> <request-policy auth-source="content"></request-policy>
> <response-policy auth-source="content"></response-policy>
> <property name="encryption.key.alias" value="s1as"></property>
> <property name="signature.key.alias" value="s1as"></property>
> <property name="debug" value="false"></property>
> </provider-config>
> <provider-config provider-type="server" provider-id="ServerProvider"
> class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule">
> <request-policy auth-source="content"></request-policy>
> <response-policy auth-source="content"></response-policy>
> <property name="encryption.key.alias" value="s1as"></property>
> <property name="signature.key.alias" value="s1as"></property>
> <property name="debug" value="false"></property>
> <property name="security.config"
> value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"></property>
> </provider-config>
> </message-security-config>
> <message-security-config auth-layer="HttpServlet">
> <provider-config provider-type="server"
> provider-id="GFConsoleAuthModule"
> class-name="org.glassfish.admingui.common.security.AdminConsoleAuthModule">
> <request-policy auth-source="sender"></request-policy>
> <response-policy></response-policy>
> <property name="restAuthURL"
> value="http://localhost:${ADMIN_LISTENER_PORT}/management/sessions"></property>
> <property name="loginPage" value="/login.jsf"></property>
> <property name="loginErrorPage" value="/loginError.jsf"></property>
> </provider-config>
> </message-security-config>
> <property name="default-digest-algorithm" value="SHA-256"></property>
> </security-service>
> <transaction-service
> tx-log-dir="${com.sun.aas.instanceRoot}/logs"></transaction-service>
> <java-config debug-options="-Xdebug
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
> system-classpath="" classpath-suffix="">
> <jvm-options>-XX:MaxPermSize=512000000</jvm-options>
> <jvm-options>-client</jvm-options>
> <jvm-options>-Dcom.sun.enterprise.web.connector.enableJK=4842</jvm-options>
> <jvm-options>-Djavax.management.builder.initial=com.sun.enterprise.v3.admin.AppServerMBeanServerBuilder</jvm-options>
> <jvm-options>-XX:+UnlockDiagnosticVMOptions</jvm-options>
> <jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}/lib/endorsed</jvm-options>
> <jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options>
> <jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf</jvm-options>
> <jvm-options>-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as</jvm-options>
> <jvm-options>-Xmx512000000</jvm-options>
> <jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options>
> <jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options>
> <jvm-options>-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext</jvm-options>
> <jvm-options>-Djava.io.tmpdir=${com.sun.aas.installRoot}/tmp</jvm-options>
> <jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options>
> <jvm-options>-DANTLR_USE_DIRECT_CLASS_LOADING=true</jvm-options>
> <jvm-options>-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory</jvm-options>
> <jvm-options>-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command</jvm-options>
> <jvm-options>-Dosgi.shell.telnet.port=4863</jvm-options>
> <jvm-options>-Dosgi.shell.telnet.maxconn=1</jvm-options>
> <jvm-options>-Dosgi.shell.telnet.ip=127.0.0.1</jvm-options>
> <jvm-options>-Dgosh.args=--nointeractive</jvm-options>
> <jvm-options>-Dfelix.fileinstall.dir=${com.sun.aas.installRoot}/modules/autostart/</jvm-options>
> <jvm-options>-Dfelix.fileinstall.poll=5000</jvm-options>
> <jvm-options>-Dfelix.fileinstall.log.level=2</jvm-options>
> <jvm-options>-Dfelix.fileinstall.bundles.new.start=true</jvm-options>
> <jvm-options>-Dfelix.fileinstall.bundles.startTransient=true</jvm-options>
> <jvm-options>-Dfelix.fileinstall.disableConfigSave=false</jvm-options>
> <jvm-options>-XX:NewRatio=2</jvm-options>
> </java-config>
> <network-config>
> <protocols>
> <protocol name="http-listener-1">
> <http default-virtual-server="server" max-connections="250"
> comet-support-enabled="true">
> <file-cache></file-cache>
> </http>
> </protocol>
> <protocol security-enabled="true" name="http-listener-2">
> <http default-virtual-server="server" max-connections="250"
> comet-support-enabled="true">
> <file-cache></file-cache>
> </http>
> <ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl"
> ssl3-enabled="false" cert-nickname="s1as"></ssl>
> </protocol>
> <protocol name="admin-listener">
> <http default-virtual-server="__asadmin" max-connections="250"
> encoded-slash-enabled="true">
> <file-cache></file-cache>
> </http>
> </protocol>
> </protocols>
> <network-listeners>
> <network-listener port="4844" protocol="http-listener-1"
> transport="tcp" name="http-listener-1"
> thread-pool="http-thread-pool"></network-listener>
> <network-listener port="4843" protocol="http-listener-2"
> transport="tcp" name="http-listener-2"
> thread-pool="http-thread-pool"></network-listener>
> <network-listener port="4845" protocol="admin-listener"
> transport="tcp" name="admin-listener"
> thread-pool="admin-thread-pool"></network-listener>
> </network-listeners>
> <transports>
> <transport name="tcp"></transport>
> </transports>
> </network-config>
> <thread-pools>
> <thread-pool name="admin-thread-pool" max-thread-pool-size="50"
> max-queue-size="256"></thread-pool>
> <thread-pool name="http-thread-pool"></thread-pool>
> <thread-pool name="thread-pool-1"
> max-thread-pool-size="200"></thread-pool>
> </thread-pools>
> <monitoring-service>
> <module-monitoring-levels></module-monitoring-levels>
> </monitoring-service>
> <group-management-service>
> <failure-detection></failure-detection>
> </group-management-service>
> </config>
> <config name="default-config">
> <http-service>
> <access-log></access-log>
> <virtual-server id="server" network-listeners="http-listener-1,
> http-listener-2">
> <property name="default-web-xml"
> value="${com.sun.aas.instanceRoot}/config/default-web.xml"></property>
> </virtual-server>
> <virtual-server id="__asadmin"
> network-listeners="admin-listener"></virtual-server>
> </http-service>
> <iiop-service>
> <orb use-thread-pool-ids="thread-pool-1"></orb>
> <iiop-listener port="${IIOP_LISTENER_PORT}" id="orb-listener-1"
> address="127.0.0.1"></iiop-listener>
> <iiop-listener port="${IIOP_SSL_LISTENER_PORT}" id="SSL"
> address="127.0.0.1" security-enabled="true">
> <ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl"
> cert-nickname="s1as"></ssl>
> </iiop-listener>
> <iiop-listener port="${IIOP_SSL_MUTUALAUTH_PORT}" id="SSL_MUTUALAUTH"
> address="127.0.0.1" security-enabled="true">
> <ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl"
> cert-nickname="s1as" client-auth-enabled="true"></ssl>
> </iiop-listener>
> </iiop-service>
> <admin-service system-jmx-connector-name="system">
> <jmx-connector port="${JMX_SYSTEM_CONNECTOR_PORT}" address="127.0.0.1"
> security-enabled="false" auth-realm-name="admin-realm"
> name="system"></jmx-connector>
> <property name="adminConsoleDownloadLocation"
> value="${com.sun.aas.installRoot}/lib/install/applications/admingui.war"></property>
> <das-config></das-config>
> </admin-service>
> <web-container>
> <session-config>
> <session-manager>
> <manager-properties></manager-properties>
> <store-properties></store-properties>
> </session-manager>
> <session-properties></session-properties>
> </session-config>
> </web-container>
> <ejb-container session-store="${com.sun.aas.instanceRoot}/session-store">
> <ejb-timer-service></ejb-timer-service>
> </ejb-container>
> <mdb-container></mdb-container>
> <jms-service addresslist-behavior="priority"
> default-jms-host="default_JMS_host" type="EMBEDDED">
> <jms-host port="${JMS_PROVIDER_PORT}" host="localhost"
> name="default_JMS_host"></jms-host>
> </jms-service>
> <log-service log-rotation-limit-in-bytes="2000000"
> file="${com.sun.aas.instanceRoot}/logs/server.log">
> <module-log-levels></module-log-levels>
> </log-service>
> <security-service>
> <auth-realm
> classname="com.sun.enterprise.security.auth.realm.file.FileRealm"
> name="admin-realm">
> <property name="file"
> value="${com.sun.aas.instanceRoot}/config/admin-keyfile"></property>
> <property name="jaas-context" value="fileRealm"></property>
> </auth-realm>
> <auth-realm
> classname="com.sun.enterprise.security.auth.realm.file.FileRealm"
> name="file">
> <property name="file"
> value="${com.sun.aas.instanceRoot}/config/keyfile"></property>
> <property name="jaas-context" value="fileRealm"></property>
> </auth-realm>
> <auth-realm
> classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm"
> name="certificate"></auth-realm>
> <jacc-provider
> policy-provider="com.sun.enterprise.security.provider.PolicyWrapper"
> name="default"
> policy-configuration-factory-provider="com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl">
> <property name="repository"
> value="${com.sun.aas.instanceRoot}/generated/policy"></property>
> </jacc-provider>
> <jacc-provider
> policy-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyProvider"
> name="simple"
> policy-configuration-factory-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyConfigurationFactory"></jacc-provider>
> <audit-module classname="com.sun.enterprise.security.Audit"
> name="default">
> <property name="auditOn" value="false"></property>
> </audit-module>
> <message-security-config auth-layer="SOAP">
> <provider-config provider-type="client"
> provider-id="XWS_ClientProvider"
> class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule">
> <request-policy auth-source="content"></request-policy>
> <response-policy auth-source="content"></response-policy>
> <property name="encryption.key.alias" value="s1as"></property>
> <property name="signature.key.alias" value="s1as"></property>
> <property name="dynamic.username.password" value="false"></property>
> <property name="debug" value="false"></property>
> </provider-config>
> <provider-config provider-type="client" provider-id="ClientProvider"
> class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule">
> <request-policy auth-source="content"></request-policy>
> <response-policy auth-source="content"></response-policy>
> <property name="encryption.key.alias" value="s1as"></property>
> <property name="signature.key.alias" value="s1as"></property>
> <property name="dynamic.username.password" value="false"></property>
> <property name="debug" value="false"></property>
> <property name="security.config"
> value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"></property>
> </provider-config>
> <provider-config provider-type="server"
> provider-id="XWS_ServerProvider"
> class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule">
> <request-policy auth-source="content"></request-policy>
> <response-policy auth-source="content"></response-policy>
> <property name="encryption.key.alias" value="s1as"></property>
> <property name="signature.key.alias" value="s1as"></property>
> <property name="debug" value="false"></property>
> </provider-config>
> <provider-config provider-type="server" provider-id="ServerProvider"
> class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule">
> <request-policy auth-source="content"></request-policy>
> <response-policy auth-source="content"></response-policy>
> <property name="encryption.key.alias" value="s1as"></property>
> <property name="signature.key.alias" value="s1as"></property>
> <property name="debug" value="false"></property>
> <property name="security.config"
> value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"></property>
> </provider-config>
> </message-security-config>
> </security-service>
> <transaction-service tx-log-dir="${com.sun.aas.instanceRoot}/logs"
> automatic-recovery="true"></transaction-service>
> <diagnostic-service></diagnostic-service>
> <java-config debug-options="-Xdebug
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${JAVA_DEBUGGER_PORT}"
> system-classpath="" classpath-suffix="">
> <jvm-options>-XX:MaxPermSize=192m</jvm-options>
> <jvm-options>-server</jvm-options>
> <jvm-options>-XX:+UnlockDiagnosticVMOptions</jvm-options>
> <jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}/lib/endorsed</jvm-options>
> <jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options>
> <jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf</jvm-options>
> <jvm-options>-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as</jvm-options>
> <jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options>
> <jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options>
> <jvm-options>-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext</jvm-options>
> <jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options>
> <jvm-options>-DANTLR_USE_DIRECT_CLASS_LOADING=true</jvm-options>
> <jvm-options>-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory</jvm-options>
> <jvm-options>-XX:NewRatio=2</jvm-options>
> <jvm-options>-Xmx512m</jvm-options>
> <jvm-options>-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command</jvm-options>
> <jvm-options>-Dosgi.shell.telnet.port=${OSGI_SHELL_TELNET_PORT}</jvm-options>
> <jvm-options>-Dosgi.shell.telnet.maxconn=1</jvm-options>
> <jvm-options>-Dosgi.shell.telnet.ip=127.0.0.1</jvm-options>
> <jvm-options>-Dgosh.args=--noshutdown -c noop=true</jvm-options>
> <jvm-options>-Dfelix.fileinstall.dir=${com.sun.aas.installRoot}/modules/autostart/</jvm-options>
> <jvm-options>-Dfelix.fileinstall.poll=5000</jvm-options>
> <jvm-options>-Dfelix.fileinstall.log.level=3</jvm-options>
> <jvm-options>-Dfelix.fileinstall.bundles.new.start=true</jvm-options>
> <jvm-options>-Dfelix.fileinstall.bundles.startTransient=true</jvm-options>
> <jvm-options>-Dfelix.fileinstall.disableConfigSave=false</jvm-options>
> </java-config>
> <availability-service>
> <web-container-availability></web-container-availability>
> <ejb-container-availability
> sfsb-store-pool-name="jdbc/hastore"></ejb-container-availability>
> <jms-availability></jms-availability>
> </availability-service>
> <network-config>
> <protocols>
> <protocol name="http-listener-1">
> <http default-virtual-server="server" comet-support-enabled="true">
> <file-cache></file-cache>
> </http>
> </protocol>
> <protocol security-enabled="true" name="http-listener-2">
> <http default-virtual-server="server" comet-support-enabled="true">
> <file-cache></file-cache>
> </http>
> <ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl"
> ssl3-enabled="false" cert-nickname="s1as"></ssl>
> </protocol>
> <protocol name="admin-listener">
> <http default-virtual-server="__asadmin" max-connections="250">
> <file-cache></file-cache>
> </http>
> </protocol>
> </protocols>
> <network-listeners>
> <network-listener port="${HTTP_LISTENER_PORT}"
> protocol="http-listener-1" address="127.0.0.1" transport="tcp"
> name="http-listener-1" thread-pool="http-thread-pool"></network-listener>
> <network-listener port="${HTTP_SSL_LISTENER_PORT}"
> protocol="http-listener-2" address="127.0.0.1" transport="tcp"
> name="http-listener-2" thread-pool="http-thread-pool"></network-listener>
> <network-listener port="${ASADMIN_LISTENER_PORT}"
> protocol="admin-listener" transport="tcp" name="admin-listener"
> thread-pool="admin-thread-pool"></network-listener>
> </network-listeners>
> <transports>
> <transport name="tcp"></transport>
> </transports>
> </network-config>
> <thread-pools>
> <thread-pool name="http-thread-pool"></thread-pool>
> <thread-pool max-thread-pool-size="200"
> name="thread-pool-1"></thread-pool>
> <thread-pool name="admin-thread-pool" max-thread-pool-size="50"
> max-queue-size="256"></thread-pool>
> </thread-pools>
> <group-management-service>
> <failure-detection></failure-detection>
> </group-management-service>
> <management-rules></management-rules>
> <monitoring-service>
> <module-monitoring-levels></module-monitoring-levels>
> </monitoring-service>
> <connector-service></connector-service>
> </config>
> </configs>
> <property name="administrative.domain.name
> <http://administrative.domain.name>" value="domain1"></property>
> <load-balancers></load-balancers>
> <lb-configs></lb-configs>
> <clusters></clusters>
> </domain>
>
>
> here wthat I got in my logs.
>
> [#|2011-08-02T19:52:24.573-0700|WARNING|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.
> web._vs.clinique|_ThreadID=38;_ThreadName=Thread-21;|StandardWrapperValve[MeteorServlet]:
> PWC1406: Servlet.ser
> vice() for servlet MeteorServlet threw exception
> java.lang.IllegalStateException: Make sure you have enabled Comet or
> make sure the Thread invoking that method
> is the same as the Servlet.service() Thread.
> at
> com.sun.grizzly.comet.CometContext.addCometHandler(CometContext.java:288)
> at
> com.sun.grizzly.comet.CometContext.addCometHandler(CometContext.java:307)
> at
> org.atmosphere.container.GrizzlyCometSupport.suspend(GrizzlyCometSupport.java:127)
> at
> org.atmosphere.container.GrizzlyCometSupport.service(GrizzlyCometSupport.java:105)
> at
> org.atmosphere.container.GlassFishWebSocketSupport.service(GlassFishWebSocketSupport.java:90)
> at
> org.atmosphere.cpr.AtmosphereServlet.doCometSupport(AtmosphereServlet.java:1168)
> at
> org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:1150)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
> at
> com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:66)
> at
> com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
> at
> com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
> at
> com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
> at
> com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
> at
> com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:89)
> at
> com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
> at
> com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
> at
> com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
> at
> com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.jav
> a:91)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:323)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
> at
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:232)
> at
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:337)
> at
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:817)
> at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:746)
> at
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:939)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:662)
> |#]
>
>
> --
> -------------
> A+
>
> Sébastien.
>
> Vous pouvez me suivre sur Twitter / You can follow me on Twitter :
> http://twitter.com/survivant