Re: tc-users Digest, Vol 22, Issue 7

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: tc-users Digest, Vol 22, Issue 7

by Ramin Farhanian-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Dear experts,

 I fixed an error but the problem still is there. On my machine, Session Configurator was using JRE as JAVA_HOME by default. I fixed it to use my default JAVA_HOME. Now the terracotta server in session Configurator console works healthy but the tomcat:9081 and tomcat:9082 still throw exceptions in the console (I have attached the exceptions).

 Please help me to launch my application properly.

 

All The Best,

Ramin Farhanian

 

 

-----Original Message-----
From: tc-users-bounces@... [mailto:tc-users-bounces@...] On Behalf Of tc-users-request@...
Sent: Tuesday, September 30, 2008 12:43 PM
To: tc-users@...
Subject: tc-users Digest, Vol 22, Issue 7

 

Send tc-users mailing list submissions to

      tc-users@...

 

To subscribe or unsubscribe via the World Wide Web, visit

      http://lists.terracotta.org/mailman/listinfo/tc-users

or, via email, send a message with subject or body 'help' to

      tc-users-request@...

 

You can reach the person managing the list at                                               

      tc-users-owner@...

 

When replying, please edit your Subject line so it is more specific

than "Re: Contents of tc-users digest..."

 

 

Today's Topics:

 

   1. Session configurator doesn't even launch my application

      (Ramin Farhanian)

 

 

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

 

Message: 1

Date: Tue, 30 Sep 2008 14:07:48 +0200

From: "Ramin Farhanian" <ramin@...>

Subject: [tc-users] Session configurator doesn't even launch my

      application

To: <tc-users@...>

Message-ID: <000301c922f5$2994a870$7cbdf950$@com>

Content-Type: text/plain; charset="us-ascii"

 

Dear experts,

 

 I need to cluster the http session on terracotta. I have done everything I

could but It seems like the session Configurator doesn't run my application

for some reason but I don't understand the log.

 

 I am using Terracotta 2.7, Tomcat 5.5, Spring 2.0, Hibernate 3.2.5, Acegi,

Sitemesh and etc. I read the

http://terracotta.org/web/display/orgsite/Tomcat+Integration and tried to go

through the instruction. I am using windows XP and I have added the

"terracotta installation folder/bin" and also JAVA_HOME to the global

variables.

 

 I have attached snapshots of session Configurator, logs of session

Configurator, tc-config.xml , catalina.bat that I use.

 

 

 

One of your colleagues suggested me to use the hibernate module in my

tc-config  (while he wasn't sure about it but he said it because may be

acegi is putting My user objects which are at first hibernate managed in

http session). Hibernate module is dependant to ehcache, cglib and ehcache

common which is quite unavailable. Another terracotta guy suggested me to

use tim-update feature but it is developed in terracotta 2.7.

 

If there is anything more you need to know to help me, please feel free to

ask.

 

 

 

What I need to do is to see the session Configurator load my web application

on two different ports 9081 and 9082 successfully. Please help me.

 

 

 

All The Best,

 

Ramin Farhanian

 

-------------- next part --------------

An HTML attachment was scrubbed...

URL: http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment.html

-------------- next part --------------

A non-text attachment was scrubbed...

Name: sessionConfigurator-server console.log

Type: application/octet-stream

Size: 6140 bytes

Desc: not available

Url : http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment.obj

-------------- next part --------------

A non-text attachment was scrubbed...

Name: sessionConfiguratorSnapShot.JPG

Type: image/jpeg

Size: 205210 bytes

Desc: not available

Url : http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment.jpe

-------------- next part --------------

A non-text attachment was scrubbed...

Name: sessionConfigurator-Tomcat9082.log

Type: application/octet-stream

Size: 2325 bytes

Desc: not available

Url : http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment-0001.obj

-------------- next part --------------

A non-text attachment was scrubbed...

Name: tc-config.xml

Type: text/xml

Size: 1635 bytes

Desc: not available

Url : http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment.xml

-------------- next part --------------

A non-text attachment was scrubbed...

Name: sessionConfigurator-Tomcat9081.log

Type: application/octet-stream

Size: 2325 bytes

Desc: not available

Url : http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment-0002.obj

-------------- next part --------------

An embedded and charset-unspecified text was scrubbed...

Name: catalina-bat.txt

Url: http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment.txt

 

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

 

_______________________________________________

tc-users mailing list

tc-users@...

http://lists.terracotta.org/mailman/listinfo/tc-users

 

 

End of tc-users Digest, Vol 22, Issue 7

***************************************


@echo off
if "%OS%" == "Windows_NT" setlocal
rem ---------------------------------------------------------------------------
rem Start/Stop Script for the CATALINA Server
rem
rem Environment Variable Prequisites
rem
rem   CATALINA_HOME   May point at your Catalina "build" directory.
rem
rem   CATALINA_BASE   (Optional) Base directory for resolving dynamic portions
rem                   of a Catalina installation.  If not present, resolves to
rem                   the same directory that CATALINA_HOME points to.
rem
rem   CATALINA_OPTS   (Optional) Java runtime options used when the "start",
rem                   or "run" command is executed.
rem
rem   CATALINA_TMPDIR (Optional) Directory path location of temporary directory
rem                   the JVM should use (java.io.tmpdir).  Defaults to
rem                   %CATALINA_BASE%\temp.
rem
rem   JAVA_HOME       Must point at your Java Development Kit installation.
rem                   Required to run the with the "debug" argument.
rem
rem   JRE_HOME        Must point at your Java Runtime installation.
rem                   Defaults to JAVA_HOME if empty.
rem
rem   JAVA_OPTS       (Optional) Java runtime options used when the "start",
rem                   "stop", or "run" command is executed.
rem
rem   JSSE_HOME       (Optional) May point at your Java Secure Sockets Extension
rem                   (JSSE) installation, whose JAR files will be added to the
rem                   system class path used to start Tomcat.
rem
rem   JPDA_TRANSPORT  (Optional) JPDA transport used when the "jpda start"
rem                   command is executed. The default is "dt_shmem".
rem
rem   JPDA_ADDRESS    (Optional) Java runtime options used when the "jpda start"
rem                   command is executed. The default is "jdbconn".
rem
rem   JPDA_SUSPEND    (Optional) Java runtime options used when the "jpda start"
rem                   command is executed. Specifies whether JVM should suspend
rem                   execution immediately after startup. Default is "n".
rem
rem   JPDA_OPTS       (Optional) Java runtime options used when the "jpda start"
rem                   command is executed. If used, JPDA_TRANSPORT, JPDA_ADDRESS,
rem                   and JPDA_SUSPEND are ignored. Thus, all required jpda
rem                   options MUST be specified. The default is:
rem
rem                   -Xdebug -Xrunjdwp:transport=%JPDA_TRANSPORT%,
rem                       address=%JPDA_ADDRESS%,server=y,suspend=%JPDA_SUSPEND%
rem
rem $Id: catalina.bat 537517 2007-05-12 21:11:17Z markt $
rem ---------------------------------------------------------------------------


set TC_INSTALL_DIR=C:\PrgTools\Servers\Terracotta\terracotta-2.6.4\
echo My TC INSTALL DIR=%TC_INSTALL_DIR%
set TC_CONFIG_PATH=C:\Projects\Acroj-Branch 1_4\acrojPEWA\acroj\tc-config.xml
echo My TC CONFIG PATH=%TC_CONFIG_PATH%
call %TC_INSTALL_DIR%\bin\dso-env.bat -q
set JAVA_OPTS=%TC_JAVA_OPTS%



set JAVA_OPTS=%JAVA_OPTS% -Duser.timezone=Europe/Vienna
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx512m

rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%
if not "%CATALINA_HOME%" == "" goto gotHome
set CATALINA_HOME=%CURRENT_DIR%
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
cd ..
set CATALINA_HOME=%cd%
cd %CURRENT_DIR%
:gotHome
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
echo The CATALINA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:okHome

rem Get standard environment variables
if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"

rem Get standard Java environment variables
if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath
echo Cannot find %CATALINA_HOME%\bin\setclasspath.bat
echo This file is needed to run this program
goto end
:okSetclasspath
set BASEDIR=%CATALINA_HOME%
call "%CATALINA_HOME%\bin\setclasspath.bat" %1
if errorlevel 1 goto end

rem Add on extra jar files to CLASSPATH
if "%JSSE_HOME%" == "" goto noJsse
set CLASSPATH=%CLASSPATH%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\jsse.jar
:noJsse
set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar

if not "%CATALINA_BASE%" == "" goto gotBase
set CATALINA_BASE=%CATALINA_HOME%
:gotBase

if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
set CATALINA_TMPDIR=%CATALINA_BASE%\temp
:gotTmpdir

if not exist "%CATALINA_HOME%\bin\tomcat-juli.jar" goto noJuli
set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
:noJuli

rem ----- Execute The Requested Command ---------------------------------------

echo Using CATALINA_BASE:   %CATALINA_BASE%
echo Using CATALINA_HOME:   %CATALINA_HOME%
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
if ""%1"" == ""debug"" goto use_jdk
echo Using JRE_HOME:        %JRE_HOME%
goto java_dir_displayed
:use_jdk
echo Using JAVA_HOME:       %JAVA_HOME%
:java_dir_displayed

set _EXECJAVA=%_RUNJAVA%
set MAINCLASS=org.apache.catalina.startup.Bootstrap
set ACTION=start
set SECURITY_POLICY_FILE=
set DEBUG_OPTS=
set JPDA=

if not ""%1"" == ""jpda"" goto noJpda
set JPDA=jpda
if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
set JPDA_TRANSPORT=dt_shmem
:gotJpdaTransport
if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
set JPDA_ADDRESS=jdbconn
:gotJpdaAddress
if not "%JPDA_SUSPEND%" == "" goto gotJpdaSuspend
set JPDA_SUSPEND=n
:gotJpdaSuspend
if not "%JPDA_OPTS%" == "" goto gotJpdaOpts
set JPDA_OPTS=-Xdebug -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=%JPDA_SUSPEND%
:gotJpdaOpts
shift
:noJpda

if ""%1"" == ""debug"" goto doDebug
if ""%1"" == ""run"" goto doRun
if ""%1"" == ""start"" goto doStart
if ""%1"" == ""stop"" goto doStop
if ""%1"" == ""version"" goto doVersion

echo Usage:  catalina ( commands ... )
echo commands:
echo   debug             Start Catalina in a debugger
echo   debug -security   Debug Catalina with a security manager
echo   jpda start        Start Catalina under JPDA debugger
echo   run               Start Catalina in the current window
echo   run -security     Start in the current window with security manager
echo   start             Start Catalina in a separate window
echo   start -security   Start in a separate window with security manager
echo   stop              Stop Catalina
echo   version           What version of tomcat are you running?
goto end

:doDebug
shift
set _EXECJAVA=%_RUNJDB%
set DEBUG_OPTS=-sourcepath "%CATALINA_HOME%\..\..\jakarta-tomcat-catalina\catalina\src\share"
if not ""%1"" == ""-security"" goto execCmd
shift
echo Using Security Manager
set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
goto execCmd

:doRun
shift
if not ""%1"" == ""-security"" goto execCmd
shift
echo Using Security Manager
set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
goto execCmd

:doStart
shift
if not "%OS%" == "Windows_NT" goto noTitle
set _EXECJAVA=start "Tomcat" %_RUNJAVA%
goto gotTitle
:noTitle
set _EXECJAVA=start %_RUNJAVA%
:gotTitle
if not ""%1"" == ""-security"" goto execCmd
shift
echo Using Security Manager
set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
goto execCmd

:doStop
shift
set ACTION=stop
set CATALINA_OPTS=
goto execCmd

:doVersion
%_EXECJAVA% -classpath "%CATALINA_HOME%\server\lib\catalina.jar" org.apache.catalina.util.ServerInfo
goto end


:execCmd
rem Get remaining unshifted command line arguments and save them in the
set CMD_LINE_ARGS=
:setArgs
if ""%1""=="""" goto doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setArgs
:doneSetArgs

rem Execute Java with the applicable properties
if not "%JPDA%" == "" goto doJpda
if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
goto end
:doSecurity
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
goto end
:doJpda
if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %JPDA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
goto end
:doSecurityJpda
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %JPDA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
goto end

:end




<?xml version="1.0" encoding="UTF-8"?>
<tc:tc-config xmlns:tc="http://www.terracotta.org/config"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-4.xsd">
    <servers>
        <server host="192.168.1.4">
            <data>%(user.home)/terracotta/server-data</data>
            <logs>%(user.home)/terracotta/server-logs</logs>
        </server>
    </servers>


    <clients>
        <modules>
            <module name="tim-cglib-2.1.3" version="1.1.3"/>
            <!--<module name="tim-hibernate-3.2.5" version="1.1.3"/>-->
            <!--<module name="tim-ehcache-1.3" version="1.1.4"/>-->
            <!--<module name="tim-ehcache-commons" version="1.1.4"/>-->
        </modules>
        <logs>%(user.home)/terracotta/client-logs</logs>
    </clients>


    <application>
        <dso>
            <instrumented-classes>
                <include>
                    <class-expression>com.mypackage..*</class-expression>
                    <honor-transient>true</honor-transient>
                </include>
                <!-- Exclude tomcat internals to improve performance of webapp loading -->
                <exclude>org.apache.coyote..*</exclude>
                <exclude>org.apache.catalina..*</exclude>
                <exclude>org.apache.jasper..*</exclude>
                <exclude>org.apache.tomcat..*</exclude>
            </instrumented-classes>

            <web-applications>
                <web-application>myapp</web-application>
            </web-applications>
        </dso>
    </application>
</tc:tc-config>


_______________________________________________
tc-users mailing list
tc-users@...
http://lists.terracotta.org/mailman/listinfo/tc-users

sessionConfigurator-server console.log (1K) Download Attachment
sessionConfigurator-Tomcat9081.log (3K) Download Attachment
sessionConfigurator-Tomcat9082.log (2K) Download Attachment

Re: tc-users Digest, Vol 22, Issue 7

by Taylor Gautier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
In a previous email you stated that you were using Terracotta 2.7, but the startup indicates 2.6.4 - just want to confirm you are using the right versions that you expect and which one we should look into before going too far.

----- Original Message -----
From: "Ramin Farhanian" <ramin@...>
To: tc-users@...
Sent: Tuesday, September 30, 2008 7:25:06 AM GMT -08:00 US/Canada Pacific
Subject: Re: [tc-users] tc-users Digest, Vol 22, Issue 7

Dear experts,

 I fixed an error but the problem still is there. On my machine, Session Configurator was using JRE as JAVA_HOME by default. I fixed it to use my default JAVA_HOME. Now the terracotta server in session Configurator console works healthy but the tomcat:9081 and tomcat:9082 still throw exceptions in the console (I have attached the exceptions).

 Please help me to launch my application properly.

 

All The Best,

Ramin Farhanian

 

 

-----Original Message-----
From: tc-users-bounces@... [mailto:tc-users-bounces@...] On Behalf Of tc-users-request@...
Sent: Tuesday, September 30, 2008 12:43 PM
To: tc-users@...
Subject: tc-users Digest, Vol 22, Issue 7

 

Send tc-users mailing list submissions to

      tc-users@...

 

To subscribe or unsubscribe via the World Wide Web, visit

      http://lists.terracotta.org/mailman/listinfo/tc-users

or, via email, send a message with subject or body 'help' to

      tc-users-request@...

 

You can reach the person managing the list at                                               

      tc-users-owner@...

 

When replying, please edit your Subject line so it is more specific

than "Re: Contents of tc-users digest..."

 

 

Today's Topics:

 

   1. Session configurator doesn't even launch my application

      (Ramin Farhanian)

 

 

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

 

Message: 1

Date: Tue, 30 Sep 2008 14:07:48 +0200

From: "Ramin Farhanian" <ramin@...>

Subject: [tc-users] Session configurator doesn't even launch my

      application

To: <tc-users@...>

Message-ID: <000301c922f5$2994a870$7cbdf950$@com>

Content-Type: text/plain; charset="us-ascii"

 

Dear experts,

 

 I need to cluster the http session on terracotta. I have done everything I

could but It seems like the session Configurator doesn't run my application

for some reason but I don't understand the log.

 

 I am using Terracotta 2.7, Tomcat 5.5, Spring 2.0, Hibernate 3.2.5, Acegi,

Sitemesh and etc. I read the

http://terracotta.org/web/display/orgsite/Tomcat+Integration and tried to go

through the instruction. I am using windows XP and I have added the

"terracotta installation folder/bin" and also JAVA_HOME to the global

variables.

 

 I have attached snapshots of session Configurator, logs of session

Configurator, tc-config.xml , catalina.bat that I use.

 

 

 

One of your colleagues suggested me to use the hibernate module in my

tc-config  (while he wasn't sure about it but he said it because may be

acegi is putting My user objects which are at first hibernate managed in

http session). Hibernate module is dependant to ehcache, cglib and ehcache

common which is quite unavailable. Another terracotta guy suggested me to

use tim-update feature but it is developed in terracotta 2.7.

 

If there is anything more you need to know to help me, please feel free to

ask.

 

 

 

What I need to do is to see the session Configurator load my web application

on two different ports 9081 and 9082 successfully. Please help me.

 

 

 

All The Best,

 

Ramin Farhanian

 

-------------- next part --------------

An HTML attachment was scrubbed...

URL: http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment.html

-------------- next part --------------

A non-text attachment was scrubbed...

Name: sessionConfigurator-server console.log

Type: application/octet-stream

Size: 6140 bytes

Desc: not available

Url : http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment.obj

-------------- next part --------------

A non-text attachment was scrubbed...

Name: sessionConfiguratorSnapShot.JPG

Type: image/jpeg

Size: 205210 bytes

Desc: not available

Url : http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment.jpe

-------------- next part --------------

A non-text attachment was scrubbed...

Name: sessionConfigurator-Tomcat9082.log

Type: application/octet-stream

Size: 2325 bytes

Desc: not available

Url : http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment-0001.obj

-------------- next part --------------

A non-text attachment was scrubbed...

Name: tc-config.xml

Type: text/xml

Size: 1635 bytes

Desc: not available

Url : http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment.xml

-------------- next part --------------

A non-text attachment was scrubbed...

Name: sessionConfigurator-Tomcat9081.log

Type: application/octet-stream

Size: 2325 bytes

Desc: not available

Url : http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment-0002.obj

-------------- next part --------------

An embedded and charset-unspecified text was scrubbed...

Name: catalina-bat.txt

Url: http://lists.terracotta.org/pipermail/tc-users/attachments/20080930/857812a6/attachment.txt

 

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

 

_______________________________________________

tc-users mailing list

tc-users@...

http://lists.terracotta.org/mailman/listinfo/tc-users

 

 

End of tc-users Digest, Vol 22, Issue 7

***************************************


_______________________________________________ tc-users mailing list tc-users@... http://lists.terracotta.org/mailman/listinfo/tc-users

_______________________________________________
tc-users mailing list
tc-users@...
http://lists.terracotta.org/mailman/listinfo/tc-users