Re: geronimo 2.1.4 on amd64 tomcat 5 shuts down automatically

2009-06-03 Thread Ivan
>From the log output, it seems that the JVM is shutdown smoothly, not a JVM
corruption. Turn on the TRACE may be useful, please attach the log files in
the email. Before you start the server, please clear the log file, and do a
compression, for TRACE option may make the log file much bigger.
Ivan

2009/6/3 Bill Brown 

>
> Hi Ivan:
>
> I did a search through the 3 webapps and none of them are doing a
> System.exit() call.  Do you have any other hints I could try?  Do you know
> if I enable TRACE for the log level if that may show something more?
>
> Thanks.
> Bill
>
>
>
> Ivan Xu wrote:
> >
> > Is it possible that there is some codes like ' System.exit();' in your
> > applications. In the past, I encountered this scenario, one of the
> > developers put a line like this in the codes while catching an exception.
> > Ivan
> >
> > 2009/6/3 Bill Brown 
> >
> >>
> >> Greetings:
> >>
> >> I am running geronimo-tomcat v2.1.4 on an amd64 linux with tomcat 5
> >> server.
> >> The server has shut down automatically without prompting after a period
> >> of
> >> idle time several times since install several days ago.  I have tuned
> the
> >> logs to DEBUG mode and there are no errors in the log.
> >>
> >> 2009-06-02 08:47:40,483 INFO  [Log4jService]
> >> $
> >> 2009-06-02 08:47:40,483 INFO  [Log4jService] Started Logging Service
> >> 2009-06-02 08:47:40,483 INFO  [Log4jService] Runtime Information:
> >> 2009-06-02 08:47:40,485 INFO  [Log4jService]   Install Directory =
> >> /opt/geronimo-tomcat6-$
> >> 2009-06-02 08:47:40,486 INFO  [JvmVendor] Sun JVM 1.5.0_14
> >> 2009-06-02 08:47:40,486 INFO  [Log4jService]   JVM in use = Sun JVM
> >> 1.5.0_14
> >> 2009-06-02 08:47:40,486 INFO  [Log4jService] Java Information:
> >> 2009-06-02 08:47:40,486 INFO  [Log4jService]   System property
> >> [java.runtime.name]  = Jav$
> >> 2009-06-02 08:47:40,486 INFO  [Log4jService]   System property
> >> [java.runtime.version]  = $
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [os.name
> ]
> >> = Li$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [os.version]
> >> = 2.$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [sun.os.patch.level]  = un$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [os.arch]
> >> = am$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [java.class.version]  = 49$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [locale]
> >> = en$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [unicode.encoding]= Un$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [file.encoding]   = UT$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [java.vm.name]= Ja$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [java.vm.vendor]  = Su$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [java.vm.version] = 1.$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [java.vm.info]= mi$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [java.home]
> >> = /u$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [java.classpath]  = nu$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [java.library.path]   = /u$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [java.endorsed.dirs]  = /o$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [java.ext.dirs]   = /o$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> >> [sun.boot.class.path] = /o$
> >> 2009-06-02 08:47:40,487 INFO  [Log4jService]
> >> $
> >> 2009-06-02 08:47:40,884 DEBUG [ExpressionFactory] Parsing expression:
> >> props['org.apache.g$
> >> 2009-06-02 08:47:40,898 DEBUG [ExpressionFactory] Parsing expression:
> >> props['org.apache.g$
> >> 2009-06-02 08:47:40,899 DEBUG [ExpressionFactory] Parsing expression:
> >> props['org.apache.g$
> >> 2009-06-02 08:47:40,900 DEBUG [ExpressionFactory] Parsing expression:
> >> props['org.apache.g$
> >> 2009-06-02 08:47:44,624 DEBUG [SimpleConfigurationManager] Loaded
> >> Configuration org.apach$
> >> 2009-06-02 08:47:44,725 DEBUG [SimpleConfigurationManager] Loaded
> >> Configuration org.apach$
> >> 2009-06-02 08:47:44,732 DEBUG [SimpleConfigurationManager] Loaded
> >> Configuration org.apach$
> >> 2009-06-02 08:47:44,812 DEBUG [SimpleConfigurationManager] Loaded
> >> Configuration org.apach$
> >> 2009-06-02 08:47:44,847 DEBUG [ExpressionFactory] Parsing expression:
> >> NamingPort + PortOf$
> >> 2009-06-02 08:47:44,861 DEBUG [ExpressionFactory] Parsing expression:
> >> ServerHostname;
> >> 2009-06-02 08:47:44,878 DEBUG [ExpressionFactory] Parsing expression:
> >> ServerHostname;
> >> 2009-06-02 08:47:44,879 DEBUG [ExpressionF

Re: Configure Oracle XA Datasource with Oracle XE (10g Express) in console dialog

2009-06-03 Thread Kevan Miller


On Jun 3, 2009, at 3:53 PM, rbaumhof wrote:



We found out the following settings for Oracle XA Datasource. These  
settings

have been tested with:
Java 1.5, Geronimo 2.1.3,2.1.4 and Oracle 10g Express (XE), 11g  
Express and

11 Production.
The jar File for connect was in all cases the appropriate 10g  
Express thin
jar file that is provided on oracle download site (version for java  
1.4 and

higher).

Settings:
User Name:  oracleuser(schema name)
Service Name:   xe
Password:   XXX
Confirm Password:   XXX
Port:   1521
Data Source Name:   oracle.jdbc.xa.client.OracleXADataSource
Network Protocol:   TCP
Database Name:  xe
TNS Entry Name: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(Host =
localhost)(Port = 1521))(CONNECT_DATA = (SID = xe)))
Driver Type:thin
Server Name:localhost

The appropriate value for Data Source Name is the name of the  
datasource

class in the jdbc driver jar file. The value for TNS Entry Name is the
appropriate entry in the tnsnames.ora file.

With geronimo 2.1.4 an error is reported when deploying the  
datasource and
also on every server startup. But this error can be ignored. The  
datasource
works as desired. Rollbacks are performed correctly and no erronous  
data

remains in the database in case of unchecked execptions.


Thanks for documenting this. What is the "error" that you're seeing on  
2.1.4? Would like to see it "fixed", if possible...


--kevan


Re: Configure Oracle XA Datasource with Oracle XE (10g Express) in console dialog

2009-06-03 Thread rbaumhof

We found out the following settings for Oracle XA Datasource. These settings
have been tested with:
Java 1.5, Geronimo 2.1.3,2.1.4 and Oracle 10g Express (XE), 11g Express and
11 Production. 
The jar File for connect was in all cases the appropriate 10g Express thin
jar file that is provided on oracle download site (version for java 1.4 and
higher).

Settings:
User Name:  oracleuser(schema name)
Service Name:   xe
Password:   XXX
Confirm Password:   XXX
Port:   1521
Data Source Name:   oracle.jdbc.xa.client.OracleXADataSource
Network Protocol:   TCP
Database Name:  xe
TNS Entry Name: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(Host =
localhost)(Port = 1521))(CONNECT_DATA = (SID = xe)))
Driver Type:thin
Server Name:localhost

The appropriate value for Data Source Name is the name of the datasource
class in the jdbc driver jar file. The value for TNS Entry Name is the
appropriate entry in the tnsnames.ora file.

With geronimo 2.1.4 an error is reported when deploying the datasource and
also on every server startup. But this error can be ignored. The datasource
works as desired. Rollbacks are performed correctly and no erronous data
remains in the database in case of unchecked execptions. 




rbaumhof wrote:
> 
> Console dialog displays the following Info on editing the database pool
> settings:
> 
> Pool Type:
>   TranQL XA Resource Adapter for Oracle
>   A resource adaptor that provides access to an Oracle database with XA
> transaction support. 
> 
> This is the plan:
> 
> http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
>  xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";>
> 
> console.dbpool
> oracle.dsa
> 1.0
> rar
> 
> 
> 
> oracle
> oracle
> jdbc14
> jar
> 
> 
> 
> 
> 
> 
>
> javax.sql.DataSource
> 
> oracle.erbreg.withplan
>  name="NetworkProtocol">tcp
>  name="PortNumber">1521
> 
> 
>  name="DataSourceName">OracleXADatasourceWithTranql
>  name="DriverType">thin
>  name="Password">xxx
>  name="ServerName">localhost
> 
> 
> 
>  name="ServiceName">XE
>  name="UserName">xxx
> 
> 
> 
> 
> 
> 10
> 0
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yes you'r right, i also want to use the datasource within login module.
> But so far i did not try access by program. I only used the test mode when
> configuring the security realm. This should work - it worked without
> problems when configuring the postgresql database.
> 
> Error on Deployment:
> Caused by: java.sql.SQLException: I/O Exception: Connect identifier was
> empty.
> at
> oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
> :112)
> at
> oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
> :146)
> at
> oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
> :255)
> at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
> at
> oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:
> 441)
> at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:165)
> at
> oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
> n.java:35)
> at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
> at
> oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSou
> rce.java:297)
> at
> oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXA
> DataSource.java:472)
> at
> oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXAData
> Source.java:159)
> at
> oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXAData
> Source.java:133)
> at
> org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnecti
> on(AbstractXADataSourceMCF.java:74)
> ... 42 more
> 09:49:53,817 ERROR [RecoveryController] javax.transaction.SystemException:
> Could
>  not obtain recovery XAResource for managedConnectionFactory
> XAMCF[jdbc:oracle:t
> hin:@]
> 
> Something seems to be wrong with the url of the connect
> 
> thanks for your help,
> Ralf
> 
> 
> 
> djencks wrote:
>> 
>> Could you please show the plan for the datasource  (fine to re

Exception when run Bank sample client in a command line window

2009-06-03 Thread Rodger
When the sample project is in Eclipse, I run the BankClient.class smoothly.But
in a command line window , by using the command:

java -classpath
"%classpath%;%SAMPLE_HOME%/applications/bank/bank-client/target/bank-client-2.1.1.2.jar;%SAMPLE_HOME%/applications/bank/bank-ejb/target/bank-ejb-2.1.1.2.jar;%GERONIMO_HOME%/repository/org/apache/openejb/openejb-client/3.0/openejb-client-3.0.jar;%GERONIMO_HOME%/repository/org/apache/geronimo/specs/geronimo-ejb_3.0_spec/1.0.1/geronimo-ejb_3.0_spec-1.0.1.jar"
org.apache.geronimo.samples.bank.client.BankClient

There are Exceptions:
==
javax.naming.NoInitialContextException: Failed to create InitialContext
using factory specified in hashtable
{java.naming.provider.url=ejbd://localhost:4201,
java.naming.factory.initial=org.apache.openejb.client.RemoteInitialContextFactory}
 [Root exception is java.lang.NullPointerException]
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:2
46)
at
javax.naming.InitialContext.initializeDefaultInitCtx(InitialContext.j
ava:327)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:357
)
at javax.naming.InitialContext.internalInit(InitialContext.java:295)
at javax.naming.InitialContext.(InitialContext.java:212)
at
org.apache.geronimo.samples.bank.client.BankClient.main(BankClient.ja
va:37)
Caused by: java.lang.NullPointerException
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:2
38)
... 5 more
==

Who can give me some suggestions? Thanks a lot.

Rodger


Re: geronimo 2.1.4 on amd64 tomcat 5 shuts down automatically

2009-06-03 Thread Bill Brown

Hi Ivan: 

I did a search through the 3 webapps and none of them are doing a
System.exit() call.  Do you have any other hints I could try?  Do you know
if I enable TRACE for the log level if that may show something more? 

Thanks.
Bill



Ivan Xu wrote:
> 
> Is it possible that there is some codes like ' System.exit();' in your
> applications. In the past, I encountered this scenario, one of the
> developers put a line like this in the codes while catching an exception.
> Ivan
> 
> 2009/6/3 Bill Brown 
> 
>>
>> Greetings:
>>
>> I am running geronimo-tomcat v2.1.4 on an amd64 linux with tomcat 5
>> server.
>> The server has shut down automatically without prompting after a period
>> of
>> idle time several times since install several days ago.  I have tuned the
>> logs to DEBUG mode and there are no errors in the log.
>>
>> 2009-06-02 08:47:40,483 INFO  [Log4jService]
>> $
>> 2009-06-02 08:47:40,483 INFO  [Log4jService] Started Logging Service
>> 2009-06-02 08:47:40,483 INFO  [Log4jService] Runtime Information:
>> 2009-06-02 08:47:40,485 INFO  [Log4jService]   Install Directory =
>> /opt/geronimo-tomcat6-$
>> 2009-06-02 08:47:40,486 INFO  [JvmVendor] Sun JVM 1.5.0_14
>> 2009-06-02 08:47:40,486 INFO  [Log4jService]   JVM in use = Sun JVM
>> 1.5.0_14
>> 2009-06-02 08:47:40,486 INFO  [Log4jService] Java Information:
>> 2009-06-02 08:47:40,486 INFO  [Log4jService]   System property
>> [java.runtime.name]  = Jav$
>> 2009-06-02 08:47:40,486 INFO  [Log4jService]   System property
>> [java.runtime.version]  = $
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [os.name]
>> = Li$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [os.version]
>> = 2.$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [sun.os.patch.level]  = un$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [os.arch]
>> = am$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [java.class.version]  = 49$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [locale]
>> = en$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [unicode.encoding]= Un$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [file.encoding]   = UT$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [java.vm.name]= Ja$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [java.vm.vendor]  = Su$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [java.vm.version] = 1.$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [java.vm.info]= mi$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [java.home]
>> = /u$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [java.classpath]  = nu$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [java.library.path]   = /u$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [java.endorsed.dirs]  = /o$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [java.ext.dirs]   = /o$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
>> [sun.boot.class.path] = /o$
>> 2009-06-02 08:47:40,487 INFO  [Log4jService]
>> $
>> 2009-06-02 08:47:40,884 DEBUG [ExpressionFactory] Parsing expression:
>> props['org.apache.g$
>> 2009-06-02 08:47:40,898 DEBUG [ExpressionFactory] Parsing expression:
>> props['org.apache.g$
>> 2009-06-02 08:47:40,899 DEBUG [ExpressionFactory] Parsing expression:
>> props['org.apache.g$
>> 2009-06-02 08:47:40,900 DEBUG [ExpressionFactory] Parsing expression:
>> props['org.apache.g$
>> 2009-06-02 08:47:44,624 DEBUG [SimpleConfigurationManager] Loaded
>> Configuration org.apach$
>> 2009-06-02 08:47:44,725 DEBUG [SimpleConfigurationManager] Loaded
>> Configuration org.apach$
>> 2009-06-02 08:47:44,732 DEBUG [SimpleConfigurationManager] Loaded
>> Configuration org.apach$
>> 2009-06-02 08:47:44,812 DEBUG [SimpleConfigurationManager] Loaded
>> Configuration org.apach$
>> 2009-06-02 08:47:44,847 DEBUG [ExpressionFactory] Parsing expression:
>> NamingPort + PortOf$
>> 2009-06-02 08:47:44,861 DEBUG [ExpressionFactory] Parsing expression:
>> ServerHostname;
>> 2009-06-02 08:47:44,878 DEBUG [ExpressionFactory] Parsing expression:
>> ServerHostname;
>> 2009-06-02 08:47:44,879 DEBUG [ExpressionFactory] Parsing expression:
>> NamingPort + PortOf$
>> 2009-06-02 08:47:44,880 DEBUG [ExpressionFactory] Parsing expression:
>> MinThreadPoolSize;
>> 2009-06-02 08:47:44,881 DEBUG [ExpressionFactory] Parsing expression:
>> MaxThreadPoolSize;
>> 2009-06-02 08:47:44,882 DEBUG [SimpleConfigurationManager] Loaded
>> Configuration org.apach$
>> 2009-06-02 08:47:45,048 DEBUG [RMIRegistryService] Started RMI Registry
>> on
>> port 1099
>> 2009-06-02 08:47:45,093 INFO  [KernelContextGBean] bound gbean
>> org.apache.geronimo.framew$
>

Re: geronimo 2.1.4 on amd64 tomcat 5 shuts down automatically

2009-06-03 Thread Ivan
Is it possible that there is some codes like ' System.exit();' in your
applications. In the past, I encountered this scenario, one of the
developers put a line like this in the codes while catching an exception.
Ivan

2009/6/3 Bill Brown 

>
> Greetings:
>
> I am running geronimo-tomcat v2.1.4 on an amd64 linux with tomcat 5 server.
> The server has shut down automatically without prompting after a period of
> idle time several times since install several days ago.  I have tuned the
> logs to DEBUG mode and there are no errors in the log.
>
> 2009-06-02 08:47:40,483 INFO  [Log4jService]
> $
> 2009-06-02 08:47:40,483 INFO  [Log4jService] Started Logging Service
> 2009-06-02 08:47:40,483 INFO  [Log4jService] Runtime Information:
> 2009-06-02 08:47:40,485 INFO  [Log4jService]   Install Directory =
> /opt/geronimo-tomcat6-$
> 2009-06-02 08:47:40,486 INFO  [JvmVendor] Sun JVM 1.5.0_14
> 2009-06-02 08:47:40,486 INFO  [Log4jService]   JVM in use = Sun JVM
> 1.5.0_14
> 2009-06-02 08:47:40,486 INFO  [Log4jService] Java Information:
> 2009-06-02 08:47:40,486 INFO  [Log4jService]   System property
> [java.runtime.name]  = Jav$
> 2009-06-02 08:47:40,486 INFO  [Log4jService]   System property
> [java.runtime.version]  = $
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [os.name]
> = Li$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [os.version]
> = 2.$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> [sun.os.patch.level]  = un$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [os.arch]
> = am$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> [java.class.version]  = 49$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [locale]
> = en$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> [unicode.encoding]= Un$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> [file.encoding]   = UT$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> [java.vm.name]= Ja$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> [java.vm.vendor]  = Su$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> [java.vm.version] = 1.$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> [java.vm.info]= mi$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [java.home]
> = /u$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> [java.classpath]  = nu$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> [java.library.path]   = /u$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> [java.endorsed.dirs]  = /o$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> [java.ext.dirs]   = /o$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
> [sun.boot.class.path] = /o$
> 2009-06-02 08:47:40,487 INFO  [Log4jService]
> $
> 2009-06-02 08:47:40,884 DEBUG [ExpressionFactory] Parsing expression:
> props['org.apache.g$
> 2009-06-02 08:47:40,898 DEBUG [ExpressionFactory] Parsing expression:
> props['org.apache.g$
> 2009-06-02 08:47:40,899 DEBUG [ExpressionFactory] Parsing expression:
> props['org.apache.g$
> 2009-06-02 08:47:40,900 DEBUG [ExpressionFactory] Parsing expression:
> props['org.apache.g$
> 2009-06-02 08:47:44,624 DEBUG [SimpleConfigurationManager] Loaded
> Configuration org.apach$
> 2009-06-02 08:47:44,725 DEBUG [SimpleConfigurationManager] Loaded
> Configuration org.apach$
> 2009-06-02 08:47:44,732 DEBUG [SimpleConfigurationManager] Loaded
> Configuration org.apach$
> 2009-06-02 08:47:44,812 DEBUG [SimpleConfigurationManager] Loaded
> Configuration org.apach$
> 2009-06-02 08:47:44,847 DEBUG [ExpressionFactory] Parsing expression:
> NamingPort + PortOf$
> 2009-06-02 08:47:44,861 DEBUG [ExpressionFactory] Parsing expression:
> ServerHostname;
> 2009-06-02 08:47:44,878 DEBUG [ExpressionFactory] Parsing expression:
> ServerHostname;
> 2009-06-02 08:47:44,879 DEBUG [ExpressionFactory] Parsing expression:
> NamingPort + PortOf$
> 2009-06-02 08:47:44,880 DEBUG [ExpressionFactory] Parsing expression:
> MinThreadPoolSize;
> 2009-06-02 08:47:44,881 DEBUG [ExpressionFactory] Parsing expression:
> MaxThreadPoolSize;
> 2009-06-02 08:47:44,882 DEBUG [SimpleConfigurationManager] Loaded
> Configuration org.apach$
> 2009-06-02 08:47:45,048 DEBUG [RMIRegistryService] Started RMI Registry on
> port 1099
> 2009-06-02 08:47:45,093 INFO  [KernelContextGBean] bound gbean
> org.apache.geronimo.framew$
> 2009-06-02 08:47:45,095 INFO  [KernelContextGBean] bound gbean
> org.apache.geronimo.framew$
> 2009-06-02 08:47:45,096 INFO  [KernelContextGBean] bound gbean
> org.apache.geronimo.framew$
> 2009-06-02 08:47:45,245 DEBUG [SimpleConfigurationManager] Loaded
> Configuration org.apach$
> 2009-06-02 08:47:45,300 DEBUG [SimpleConfigurationManager] Loaded
> Configuration org.apach$
> 

geronimo 2.1.4 on amd64 tomcat 5 shuts down automatically

2009-06-03 Thread Bill Brown

Greetings: 

I am running geronimo-tomcat v2.1.4 on an amd64 linux with tomcat 5 server.  
The server has shut down automatically without prompting after a period of
idle time several times since install several days ago.  I have tuned the
logs to DEBUG mode and there are no errors in the log. 

2009-06-02 08:47:40,483 INFO  [Log4jService]
$
2009-06-02 08:47:40,483 INFO  [Log4jService] Started Logging Service
2009-06-02 08:47:40,483 INFO  [Log4jService] Runtime Information:
2009-06-02 08:47:40,485 INFO  [Log4jService]   Install Directory =
/opt/geronimo-tomcat6-$
2009-06-02 08:47:40,486 INFO  [JvmVendor] Sun JVM 1.5.0_14
2009-06-02 08:47:40,486 INFO  [Log4jService]   JVM in use = Sun JVM 1.5.0_14
2009-06-02 08:47:40,486 INFO  [Log4jService] Java Information:
2009-06-02 08:47:40,486 INFO  [Log4jService]   System property
[java.runtime.name]  = Jav$
2009-06-02 08:47:40,486 INFO  [Log4jService]   System property
[java.runtime.version]  = $
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [os.name]

= Li$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [os.version] 

= 2.$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
[sun.os.patch.level]  = un$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [os.arch]

= am$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
[java.class.version]  = 49$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [locale] 

= en$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
[unicode.encoding]= Un$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
[file.encoding]   = UT$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
[java.vm.name]= Ja$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
[java.vm.vendor]  = Su$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
[java.vm.version] = 1.$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
[java.vm.info]= mi$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property [java.home]  

= /u$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
[java.classpath]  = nu$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
[java.library.path]   = /u$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
[java.endorsed.dirs]  = /o$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
[java.ext.dirs]   = /o$
2009-06-02 08:47:40,487 INFO  [Log4jService]   System property
[sun.boot.class.path] = /o$
2009-06-02 08:47:40,487 INFO  [Log4jService]
$
2009-06-02 08:47:40,884 DEBUG [ExpressionFactory] Parsing expression:
props['org.apache.g$
2009-06-02 08:47:40,898 DEBUG [ExpressionFactory] Parsing expression:
props['org.apache.g$
2009-06-02 08:47:40,899 DEBUG [ExpressionFactory] Parsing expression:
props['org.apache.g$
2009-06-02 08:47:40,900 DEBUG [ExpressionFactory] Parsing expression:
props['org.apache.g$
2009-06-02 08:47:44,624 DEBUG [SimpleConfigurationManager] Loaded
Configuration org.apach$
2009-06-02 08:47:44,725 DEBUG [SimpleConfigurationManager] Loaded
Configuration org.apach$
2009-06-02 08:47:44,732 DEBUG [SimpleConfigurationManager] Loaded
Configuration org.apach$
2009-06-02 08:47:44,812 DEBUG [SimpleConfigurationManager] Loaded
Configuration org.apach$
2009-06-02 08:47:44,847 DEBUG [ExpressionFactory] Parsing expression:
NamingPort + PortOf$
2009-06-02 08:47:44,861 DEBUG [ExpressionFactory] Parsing expression:
ServerHostname;
2009-06-02 08:47:44,878 DEBUG [ExpressionFactory] Parsing expression:
ServerHostname;
2009-06-02 08:47:44,879 DEBUG [ExpressionFactory] Parsing expression:
NamingPort + PortOf$
2009-06-02 08:47:44,880 DEBUG [ExpressionFactory] Parsing expression:
MinThreadPoolSize;
2009-06-02 08:47:44,881 DEBUG [ExpressionFactory] Parsing expression:
MaxThreadPoolSize;
2009-06-02 08:47:44,882 DEBUG [SimpleConfigurationManager] Loaded
Configuration org.apach$
2009-06-02 08:47:45,048 DEBUG [RMIRegistryService] Started RMI Registry on
port 1099
2009-06-02 08:47:45,093 INFO  [KernelContextGBean] bound gbean
org.apache.geronimo.framew$
2009-06-02 08:47:45,095 INFO  [KernelContextGBean] bound gbean
org.apache.geronimo.framew$
2009-06-02 08:47:45,096 INFO  [KernelContextGBean] bound gbean
org.apache.geronimo.framew$
2009-06-02 08:47:45,245 DEBUG [SimpleConfigurationManager] Loaded
Configuration org.apach$
2009-06-02 08:47:45,300 DEBUG [SimpleConfigurationManager] Loaded
Configuration org.apach$
2009-06-02 08:47:45,550 DEBUG [ExpressionFactory] Parsing expression:
ServerHostname;
2009-06-02 08:47:45,553 DEBUG [ExpressionFactory] Parsing expression:
JMXPort + PortOffse$
2009-06-02 08:47:45,554 DEBUG [ExpressionFactory] Parsing expression:
ServerHostname;
2009-06-02 08:47:45,555 DEBUG [ExpressionFactory] Parsing expression:
NamingPort + PortOf$
2009-06-02 08:47:45,558 

log into web applications of jetty contained in geronimo with the geronimo log4j.properties file

2009-06-03 Thread Gonima

Hi  community,
i have an application with geronimo as server and jetty as container,
and i want to log into some web applications deployed by jetty.
How can i configure the log4j.properties file of my geronimo, so that
i  can intercept these logs ???
So far, these outputs are high level and refer to http requests
Here is the cutout of my log4j.properties file concerning jetty

# Various Jetty startup/shutdown output
log4j.category.org.mortbay.http.HttpServer=WARN
log4j.category.org.mortbay.http.SocketListener=WARN
log4j.category.org.mortbay.http.ajp.AJP13Listener=WARN
log4j.category.org.mortbay.util.Container=WARN
log4j.category.org.mortbay.util.Credential=WARN
log4j.category.org.mortbay.util.ThreadedServer=WARN
log4j.category.org.mortbay.jetty.servlet.WebApplicationContext=WARN,
CONSOLE, FILE, DEBUG
log4j.category.org.mortbay.jetty.context=WARN

Thanks for help !!!
Gaetan

-- 
View this message in context: 
http://www.nabble.com/log-into-web-applications-of-jetty-contained-in-geronimo-with-the-geronimo-log4j.properties-file-tp23851786s134p23851786.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



LifecycleException failed deploy in SimpleConfigurationManager

2009-06-03 Thread Ron Lane

When trying to deploying a module, it didn't deploy, saying:
org.apache.geronimo.kernel.config.LifecycleException: start of
default/cust/1243785779213/war failed
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:547)

Any ideas as to its cause?

-- 
View this message in context: 
http://www.nabble.com/LifecycleException-failed-deploy-in-SimpleConfigurationManager-tp23848093s134p23848093.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: set openejb jndi format in geronimo

2009-06-03 Thread Rodger
Yes.Great.It's ok.
Thank you very much for your patient help!

Rodger.


Re: webapp run-as problems

2009-06-03 Thread Trygve Hardersen
Nothing much really.

In org.apache.geronimo.jetty6.connector.HTTPSelectChannelConnector we've
added support for a HTTP header that tells Jetty the request is really
secure (we have a proxy doing the encryption):

public HTTPSelectChannelConnector(JettyContainer container, ThreadPool
threadPool) {
super(container, new SelectChannelConnector(){

@Override
public void customize(EndPoint endpoint, Request request)
throws IOException {
super.customize(endpoint, request);
if(HTTPS.equals(request.getHeader(JX_SCHEME)))
request.setScheme(HTTPS);
}

@Override
public boolean isConfidential(Request request) {
if(request.getScheme() != null &&
request.getScheme().equals(HTTPS))
return true;
return super.isConfidential(request);
}

}, threadPool, "HTTPSelectChannelConnector");
}

If you would like to add this to the code base that would be great for us
:-)

We also excluded the org.apache.geronimo.configs.welcome-jetty plugin from
the org.apache.geronimo.plugingroups.javaee5-jetty plugingroup, and added
our Maven repository to the main pom.xml to allow deployment locally.

We used to have some stuff to allow the plugins to run on Java6 but that's
no longer needed. And from time to time we need to change minor stuff, like
we just did with using jetty6 instead of jetty7. I expect the need for this
to go away when the Geronimo 2.2 release is made.

Trygve

On Wed, Jun 3, 2009 at 8:37 AM, Jason Dillon  wrote:

> Curious what your minor hacks are?
> --jason
>
>
> On Jun 3, 2009, at 1:33 PM, Trygve Hardersen wrote:
>
> Thanks for looking into this David.
>
> We're building everything ourselves as we have minor hacks to the Geronimo
> code.
>
> I'll try to give it another shot sometime later this week, but right now I
> have to focus on other things. The Jetty6 build is working for us. I'll let
> you know what I find when I try again. Also see comments to your inline
> comments.
>
> Trygve
>
> On Wed, Jun 3, 2009 at 1:55 AM, David Jencks wrote:
>
>> I made a couple comments inline however I strongly suspect your problems
>> are caused by a jetty bug I had a hand in creating :-) that could cause the
>> FormAuthenticator to not recognize that the request is the data from the
>> login page.
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=278887
>>
>> I'm not sure how quickly jetty snapshots are getting pushed --- probably
>> daily.  Also you may want to wait until g. snapshots are available again
>> but if you build everything yourself you might find it's started working
>> again!
>>
>> thanks
>> david jencks
>>
>>
>> On Jun 1, 2009, at 9:55 AM, Trygve Hardersen wrote:
>>
>> Hello
>>
>> We have been building a relatively large and complex system using
>> Geronimo-2.2 for some time. We're now getting close to finishing the
>> project, and it's encouraging to see that the release of Geronimo 2.2 is
>> getting closer, and that branching is around the corner.
>>
>> However the latest Geronimo updates, I'm pretty sure it's the switch to
>> Jetty7, broke our security model. I've been trying to get make it work again
>> for some time, but with no luck. Hence this mail.
>>
>> First we have a realm and credential store plugin that is used by all
>> other parts of the application:
>>
>> # plan.xml
>> 
>> > 
>> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2
>> "
>> 
>> xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2
>> "
>> 
>> xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-2.0
>> "
>> 
>> xmlns:cs="http://geronimo.apache.org/xml/ns/credentialstore-1.0
>> ">
>> > class="org.apache.geronimo.security.realm.GenericSecurityRealm">
>> jotta-realm
>> true
>> 
>> 
>> 
>> > wrap-principals="false">
>>
>> jotta-admin
>>
>> org.apache.geronimo.security.realm.providers.PropertiesFileLoginModule
>> > name="usersURI">var/security/users.properties
>> > name="groupsURI">var/security/groups.properties
>> 
>> 
>> > wrap-principals="false">
>>
>> jotta-users
>>
>> no.jotta.backup.security.server.JottaLoginModule
>> 
>> 
>> 
>> 
>> ServerInfo
>> 
>> 
>> > class="org.apache.geronimo.security.credentialstore.SimpleCredentialStoreImpl">
>> 
>> 
>> 
>> 
>> anonymous

Re: set openejb jndi format in geronimo

2009-06-03 Thread Ivan
OK, try this:
set GERONIMO_OPTS="-Dopenejb.jndiname.format={ejbName}/{interfaceClass}
geronimo.bat start

2009/6/3 Rodger 

> I tried it.But the default format--{ejbName}{interfaceType.annotationName}
> still works,the format doesn't change to {ejbName}/{interfaceClass}.
> That is
> *initialContext.lookup("CalculatorRemote");* works
> but *
> initialContext.lookup("Calculator/org.apache.geronimo.samples.slsb.calculator.CalculatorRemote");
> *  failed.
>
> There are my ejb part:
> @Remote
> *interface CalculatorRemote*
>
> @Stateless
> *class Calculator implements **CalculatorRemote*
>



-- 
Ivan


Re: set openejb jndi format in geronimo

2009-06-03 Thread Rodger
I tried it.But the default format--{ejbName}{interfaceType.annotationName}
still works,the format doesn't change to {ejbName}/{interfaceClass}.
That is
*initialContext.lookup("CalculatorRemote");* works
but *
initialContext.lookup("Calculator/org.apache.geronimo.samples.slsb.calculator.CalculatorRemote");
*  failed.

There are my ejb part:
@Remote
*interface CalculatorRemote*

@Stateless
*class Calculator implements **CalculatorRemote*