There is only one resin instance on this box.  The doc doesn't exactly
tell how to specify this, so I used the example. I've attached my conf
file, and here is how it's started.

#! /bin/sh
java -Djava.library.path=/usr/local/resin/libexec64
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false -jar
/usr/local/resin/lib/resin.jar -conf /etc/resin/resin.xml -log-directory
/var/log/resin -root-directory /var/www start &

Thanks,


Steve Francis
Technical Advisor - zSeries, zLinux, z/OS
IHG
Alpharetta Data Center
Ph:  770-442-7157
Cell:  770-906-3122
IM: francisihg

-----Original Message-----
From: resin-interest-boun...@caucho.com
[mailto:resin-interest-boun...@caucho.com] On Behalf Of
resin-interest-requ...@caucho.com
Sent: Tuesday, July 13, 2010 1:00 PM
To: resin-interest@caucho.com
Subject: resin-interest Digest, Vol 49, Issue 9

Send resin-interest mailing list submissions to
        resin-interest@caucho.com

To subscribe or unsubscribe via the World Wide Web, visit
        http://maillist.caucho.com/mailman/listinfo/resin-interest
or, via email, send a message with subject or body 'help' to
        resin-interest-requ...@caucho.com

You can reach the person managing the list at
        resin-interest-ow...@caucho.com

When replying, please edit your Subject line so it is more specific than
"Re: Contents of resin-interest digest..."


Today's Topics:

   1. JMX issue (Francis, Steve (IHG))
   2. Re: JMX issue (Scott Ferguson)


----------------------------------------------------------------------

Message: 1
Date: Tue, 13 Jul 2010 11:20:57 -0400
From: "Francis, Steve (IHG)" <steve.fran...@ihg.com>
Subject: [Resin-interest] JMX issue
To: <resin-interest@caucho.com>
Message-ID:
        
<c595e25cd30f3f4192918c5dfe51625901839...@hnatld1svrexg09.amer.corp.loca
l>
        
Content-Type: text/plain; charset="us-ascii"

It doesn't seem to matter what port I give this, it fails.  I'll try
your 9999, but ....I'm not hopeful.  Our monitoring folks wanted me to
us 681, which is what they have other Resin 3.x systems using, but it
failed just like 9681 did below.
Is there something else I'm missing?
 
Error: Exception thrown by the agent : java.rmi.server.ExportException:
Port already in use: 9681; nested exception is:
        java.net.BindException: Address already in use Exception in
thread "jlmAgent" java.lang.Error: snmp agent failed to launch
        at
com.ibm.misc.SystemIntialization$3.run(SystemIntialization.java:178)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:48)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:600)
        at
com.ibm.misc.SystemIntialization$3.run(SystemIntialization.java:175)
Caused by: java.lang.RuntimeException: Exception thrown by the agent
        at sun.management.Agent.error(Agent.java:319)
        at sun.management.Agent.error(Agent.java:310)
        at sun.management.Agent.startAgent(Agent.java:159)
        at sun.management.Agent.startAgent(Agent.java:255)
        ... 5 more
Resin Professional 4.0.6 (built Tue, 13 Apr 2010 08:56:43 PDT)
Copyright(c) 1998-2010 Caucho Technology.  All rights reserved.
 
  1010835.license -- 2 Resin servers Intercontinental Hotel Groups (IHG)
 
Starting Resin Professional on Tue, 13 Jul 2010 11:09:37 -0400 (EDT)
 
OpenSSL support compiled for OpenSSL 0.9.8a 11 Oct 2005

 
What am I missing?
 
Steve Francis
Technical Advisor - zSeries, zLinux, z/OS IHG Alpharetta Data Center
Ph:  770-442-7157
Cell:  770-906-3122
IM: francisihg
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://maillist.caucho.com/pipermail/resin-interest/attachments/20100713
/0ad82b05/attachment-0001.html 

------------------------------

Message: 2
Date: Tue, 13 Jul 2010 09:01:57 -0700
From: Scott Ferguson <f...@caucho.com>
Subject: Re: [Resin-interest] JMX issue
To: General Discussion for the Resin application server
        <resin-interest@caucho.com>
Message-ID: <4c3c8df5.5020...@caucho.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Francis, Steve (IHG) wrote:
> It doesn't seem to matter what port I give this, it fails.  I'll try 
> your 9999, but ....I'm not hopeful.  Our monitoring folks wanted me to

> us 681, which is what they have other Resin 3.x systems using, but it 
> failed just like 9681 did below.
> Is there something else I'm missing?
It looks like you're trying to have either multiple Resin instances
listen to the same port or both the watchdog and the Resin process
listen to that port.

So, first, how many Resin instances are running on that machine, and
second, are you asking the watchdog to listen for JMX on the same port?

-- Scott


>  
> Error: Exception thrown by the agent : 
> java.rmi.server.ExportException: Port already in use: 9681; nested 
> exception is:
>         java.net.BindException: Address already in use Exception in 
> thread "jlmAgent" java.lang.Error: snmp agent failed to launch
>         at
> com.ibm.misc.SystemIntialization$3.run(SystemIntialization.java:178)
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:48)
>         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:600)
>         at
> com.ibm.misc.SystemIntialization$3.run(SystemIntialization.java:175)
> Caused by: java.lang.RuntimeException: Exception thrown by the agent
>         at sun.management.Agent.error(Agent.java:319)
>         at sun.management.Agent.error(Agent.java:310)
>         at sun.management.Agent.startAgent(Agent.java:159)
>         at sun.management.Agent.startAgent(Agent.java:255)
>         ... 5 more
> Resin Professional 4.0.6 (built Tue, 13 Apr 2010 08:56:43 PDT)
> Copyright(c) 1998-2010 Caucho Technology.  All rights reserved.
>  
>   1010835.license -- 2 Resin servers Intercontinental Hotel Groups 
> (IHG)
>  
> Starting Resin Professional on Tue, 13 Jul 2010 11:09:37 -0400 (EDT)
>  
> OpenSSL support compiled for OpenSSL 0.9.8a 11 Oct 2005
>  
> What am I missing?
>  
> *Steve Francis*
> *Technical Advisor - zSeries, zLinux, z/OS* IHG Alpharetta Data Center
> Ph:  770-442-7157
> Cell:  770-906-3122
> IM: francisihg
>  
> ----------------------------------------------------------------------
> --
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>   





------------------------------

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


End of resin-interest Digest, Vol 49, Issue 9
*********************************************
<!--
   - Resin 4.0 configuration file.
   -
   - See conf/full.xml for more sample configuration, including load
   - balancing and database configuration.
  -->
<resin xmlns="http://caucho.com/ns/resin";
       xmlns:resin="urn:java:com.caucho.resin">

  <!--
     - driver .jar files can be placed in ${resin.root}/ext-lib
     -->
  <class-loader>
    <tree-loader path="${resin.root}/ext-lib"/>
  </class-loader>

  <!--
     - project jars with maven dependencies can be placed
     - in project-jars to be used by web-apps.  A WEB-INF/pom.xml will
     - select the project's artifacts.
    -->
  <resin:ProjectJarRepository path="${resin.root}/project-jars"/>
  
  <!--
     - Remote management requires at least one enabled admin user.
    -->
  <resin:AdminAuthenticator>
    <resin:import path="${__DIR__}/admin-users.xml" optional="true"/>
  </resin:AdminAuthenticator>

  <!--
     - Logging configuration for the JDK logging API.
    -->
  <log-handler name="" level="all" path="stdout:"
               timestamp="[%y-%m-%d %H:%M:%S.%s] {%{thread}} "/>

  <!--
     - level='info' for production
     - 'fine' or 'finer' for development and troubleshooting
    -->
  <logger name="com.caucho" level="info"/>

  <logger name="com.caucho.java" level="config"/>
  <logger name="com.caucho.loader" level="config"/>

  <!--
     - For production sites, change dependency-check-interval to something
     - like 600s, so it only checks for updates every 10 minutes.
    -->
  <dependency-check-interval>2s</dependency-check-interval>

  <!--
     - SMTP server for sending mail notifications
    -->
  <system-property mail.smtp.host="127.0.0.1"/>
  <system-property mail.smtp.port="25"/>

  <!--
     - default configuration applied to all clusters
    -->
  <cluster-default>
    <!-- standard servlet behavior, including .jsp, .php, and WEB-INF -->
    <resin:import path="${__DIR__}/app-default.xml"/>

    <!-- enables development error pages -->
    <development-mode-error-page/>

    <!--
       - Enables the proxy cache (available in Resin Professional) 
      -->
    <resin:if test="${resin.professional}">
      <cache memory-size="64M">
       <!-- Vary header rewriting for IE -->
        <rewrite-vary-as-private/>
      </cache>
    </resin:if>
    
    <!--
       - Admin services
      -->
    <resin:DeployService/>
    
    <resin:if test="${resin.professional}">
      <resin:JmxService/>
      <resin:LogService/>
      <resin:StatService/>
      <resin:XaLogService/>
    </resin:if>

    <!--
       - Default host configuration applied to all virtual hosts.
      -->
    <host-default>
      <access-log path="log/access.log" 
                format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
                rollover-size="100mb"/>

      <!-- creates the webapps directory for .war expansion -->
      <web-app-deploy path="webapps"/>
      <ear-deploy path="deploy"/>
    </host-default>

    <!--
       - Defaults applied to each web-app.
      -->
    <web-app-default>
      <prologue>
        <!--
           - Enable EL expressions in Servlet and Filter init-param
          -->
        <allow-servlet-el/>
      </prologue>

      <!-- enable persistent sessions -->
      <session-config>
        <use-persistent-store/>
      </session-config>
     
      <!--
         - Sets max-age for cacheable pages, e.g. static pages.
        -->
      <cache-mapping url-pattern="/" max-age="5s"/>
      <cache-mapping url-pattern="*.gif" max-age="60s"/>
      <cache-mapping url-pattern="*.jpg" max-age="60s"/>
      <cache-mapping url-pattern="*.png" max-age="60s"/>
      <cache-mapping url-pattern="*.css" max-age="60s"/>
      <cache-mapping url-pattern="*.js" max-age="60s"/>
    </web-app-default>
  </cluster-default>

  <!--
     - Configures the main appliction cluster.  Load-balancing configurations
     - will also have a load-balance-tier cluster.
    -->
  <cluster id="app-tier">
    <!-- sets the content root for the cluster, relative to resin.root -->
    <root-directory>.</root-directory>

    <!-- defaults for each server, i.e. JVM -->
    <server-default>
      <!-- The http port -->
      <http address="*" port="80"/>

      <!-- SSL port configuration: -->
      <http address="*" port="443">
        <openssl>
          <certificate-file>keys/gryffindor.crt</certificate-file>
          <certificate-key-file>keys/gryffindor.key</certificate-key-file>
          <password>resinkey</password>
        </openssl>
       </http>

      <jvm-arg>-Xmx512m</jvm-arg>
      <!--
         - <jvm-arg>-agentlib:resin</jvm-arg>
        -->

      <!--
         - If starting Resin as root on Unix, specify the user name
         - and group name for the web server user.
        -->
      <resin:if test="${resin.userName == 'root'}">
        <user-name>www-data</user-name>
        <group-name>www-data</group-name>
      </resin:if>
    </server-default>

    <!-- define the servers in the cluster -->
    <server id="" address="127.0.0.1" port="6800">
      <!-- server-specific configuration, e.g. jvm-arg goes here -->
    </server>

    <!-- the default host, matching any host name -->
    <host id="" root-directory=".">
      <!--
         - configures an explicit root web-app matching the
         - webapp's ROOT
        -->
      <web-app id="/" root-directory="webapps/ROOT"/>
      
      <!--
         - Administration application /resin-admin
        -->
      <web-app id="/resin-admin" root-directory="${resin.root}/doc/admin">
        <prologue>
          <resin:set var="resin_admin_external" value="true"/>
          <resin:set var="resin_admin_insecure" value="true"/>
        </prologue>
      </web-app>

      <!--
	 - Resin documentation - remove for a live site
	-->
      <web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>

      <!--
	 - <resin:LoadBalance regexp="^/load" cluster="backend-tier"/>
	 - <resin:HttpProxy regexp="^/http" address="localhost:9000"/>
	 - <resin:FastCgiProxy regexp="^/fcgi" address="localhost:9001"/>
	-->
       <resin:Forward regexp="^/Holidex/*" target="/HMI/"/>
       <resin:Forward regexp="^/mqsservlet/*" target="/HMI/"/>
       <resin:Forward regexp="^/support/*" target="/HMI/"/>
    </host>
  </cluster>
</resin>

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to