Re: ActiveMQ configuration for Geronimo 3.0.1

2013-09-09 Thread chi runhua
For activeMQ configuration in Geronimo, you might need to look into the
ActiveMQ document at http://activemq.apache.org/

HTH.


On Tue, Sep 10, 2013 at 5:39 AM, Jack Cai  wrote:

> Hi,
>
>   Where can I find some doc or examples on configuration persistent
> storage for ActiveMQ? The config-substitutions.properties file only
> provides data directory, and MQName setting. I found the activemq.xml under
>
>
> repository/org/apache/geronimo/configs/activemq-broker-blueprint/3.0.1/activemq-broker-blueprint-3.0.1.car/OSGI-INF/blueprint
>
>  But that file says /var/activemq/conf/${ACTIVEMQ.BROKERNAME}.XML is the
> config file? I tried that, but it does not seem to do anything.
>
>   Can anyone help with the following?
>
> 1. Which directory is for activemq configuration directory?
>
>
>  
> repository/org/apache/geronimo/configs/activemq-broker-blueprint/3.0.1/activemq-broker-blueprint-3.0.1.car/OSGI-INF/blueprint
>
>   or
>
>var/activemq/config
>
> 2. What is the name of the configuration file?
>
>activemq.xml or ${ACTIVEMQ.BROKERNAME}.XML
>
>  3. How can a postgres DB be configured for activeMQ's persistence storage?
>
>   Thanks a lot!
>
> -Jack
>


Re: Geronimo and Maven3 building

2011-11-13 Thread chi runhua
Thanks~! Updated now.

Jeff

2011/11/11 Radim Kolar 

> branch 2-2 does not builds with maven3
> trunk does.
>
> https://cwiki.apache.org/**GMOxDOC22/building-geronimo-**with-maven.html<--
>  needs to be updated
>


Re: Grails application in Geronimo 3

2011-11-02 Thread chi runhua
Inline

Jeff C

On Wed, Nov 2, 2011 at 7:43 PM, Radim Kolar  wrote:

> > Hmm, virtual server is supported in Geronimo 3.0.
> If i remove deployement to virtual server, then applications deploys and
> starts. but not runs probably due to spring version conflict issue.
>
> java.lang.NullPointerException
>
>at org.codehaus.groovy.grails.**web.mapping.filter.**
> UrlMappingsFilter.**doFilterInternal(**UrlMappingsFilter.java:150)
>
>at org.springframework.web.**filter.OncePerRequestFilter.**
> doFilter(OncePerRequestFilter.**java:76)
>
>at org.apache.catalina.core.**ApplicationFilterChain.**
> internalDoFilter(**ApplicationFilterChain.java:**243)
>
>at org.apache.catalina.core.**ApplicationFilterChain.**doFilter(**
> ApplicationFilterChain.java:**210)
>
>at org.springframework.web.**filter.**CharacterEncodingFilter.**
> doFilterInternal(**CharacterEncodingFilter.java:**88)
>
>
>
>
>  Before I checking the exception, it will be better if you could directly
>> configure the virtual host in the server.xml file in the /var/catalina
>> directory.
>>
> Actually, configuring virtual hosts should be done easily in GUI console
> like in other application servers. configuration in config.xml is kinda
> cryptic.
>
>
> > BTW, due to the timeline of the incoming 3.0-beta-1 release, I did not
> have chance to merge the root context changes to that build. not sure it
> will affect your decision.
>
> I currently could not get anything grails made to run in 3.0 due to not
> yet discovered  classloading setup. I hoped that moving to OSGi will remove
> these kind of problems but it is worse because inverse classloading/non
> overitable classes combo is not supported in 3.0.
>
You may use  in your deployment plan for 3.0.


Re: Grails application in Geronimo 3

2011-11-01 Thread chi runhua
IIRC, virtual host is not supported in G3.0 yet.

I might be wrong...

Jeff

2011/11/2 Radim Kolar 

> I have problem running grails application in G3. I am trying it to deploy
> into virtual hosts using configuration from geronimo 2.
>
> It fails with:
>
> show/hideErrorThe application was not successfully started.
> start of hebeidomains/whois-web/1.0.1/**war failed
> org.apache.geronimo.kernel.**config.LifecycleException: start of
> hebeidomains/whois-web/1.0.1/**war failed
> at org.apache.geronimo.kernel.**config.**SimpleConfigurationManager.**
> startConfiguration(**SimpleConfigurationManager.**java:718)
> at org.apache.geronimo.kernel.**config.**SimpleConfigurationManager.**
> startConfiguration(**SimpleConfigurationManager.**java:681)
> at org.apache.geronimo.**deployment.plugin.local.**
> StartCommand.run(StartCommand.**java:67)
> at java.lang.Thread.run(Thread.**java:662)
> Caused by: org.apache.geronimo.kernel.**config.NoSuchConfigException:
> trying to start ancestor config for config hebeidomains/whois-web/1.0.1/**war,
> but not found (configId: hebeidomains/whois-web/1.0.1/**war) (configId:
> hebeidomains/whois-web/1.0.1/**war)
> at org.apache.geronimo.kernel.**config.**SimpleConfigurationManager.**
> startConfiguration(**SimpleConfigurationManager.**java:699)
> ... 3 more
>
> I have no idea what should be ancestor for config. Virtual host is defined
> here:
>
> 
>  name="org.apache.geronimo.**configs/tomcat7/3.0-SNAPSHOT/**
> car?ServiceModule=org.apache.**geronimo.configs/tomcat7/3.0-**
> SNAPSHOT/car,j2eeType=Host,**name=bean">
> org.apache.**catalina.core.StandardHost attribute>
>  name="initParams">name=whois.**hebeidomains.com
>appBase=
>workDir=work
> 
> 
>
> and geronimo-web,xml is simple:
>
> 
>  xmlns="http://geronimo.apache.**org/xml/ns/j2ee/web-2.0.1
> "
> 
> xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance
> "
> xsi:schemaLocation="http://**geronimo.apache.org/xml/ns/**
> j2ee/web-2.0.1 
> http://geronimo.apache.org/**
> xml/ns/j2ee/web-2.0.1 ">
>  xmlns="http://geronimo.apache.**org/xml/ns/deployment-1.2
> "
>xsi:schemaLocation="http://**geronimo.apache.org/xml/ns/**
> deployment-1.2 
>
> http://geronimo.apache.org/**xml/ns/deployment-1.2
> ">
> 
> hebeidomains
> whois-web
> 1.0.1
> war
> 
> 
> /whois
> whois.hebeidomains.com
> 
>


Re: [DISCUSSION] Geronimo 3.0 Release

2011-09-19 Thread chi runhua
You may find the migration doc from 2.x to 3.0 at
https://cwiki.apache.org/GMOxDOC30/migrating-from-g-2x-to-g-3x.html

Any comments are appreciated.

Jeff

On Mon, Sep 19, 2011 at 6:36 PM, Radim Kolar  wrote:

> Cool. Here you go: https://repository.apache.org/**
> content/groups/snapshots/org/**apache/geronimo/assemblies/**
> geronimo-tomcat7-javaee6/3.0-**SNAPSHOT/
>
> I did some testing and it looks in good shape for release as 3.0 Beta 1 for
> public beta test.
>


Re: Links to nable mailing

2011-09-05 Thread chi runhua
Fixed now.

Jeff

On Mon, Aug 29, 2011 at 12:16 PM, chi runhua  wrote:

> oops, I overlooked this one.  The links on the top of each page will need
> update to export templates of Confluence.
>
> Will fix it later.
>
> Thanks again.
>
> Jeff
>
>
> On Mon, Aug 29, 2011 at 12:10 PM, Radim Kolar  wrote:
>
>>  Dne 29.8.2011 4:39, chi runhua napsal(a):
>>
>> Thanks for reporting this.
>>
>> The links are fixed now.
>>
>> Links on top of every page are not fixed yet, I am talking about:
>>
>>
>>  User List <http://n3.nabble.com/Users-f328036.html> | Dev 
>> List<http://n3.nabble.com/Development-f342155.html>|
>> Wiki <http://cwiki.apache.org/geronimo> | Issue 
>> Tracker<http://issues.apache.org/jira/browse/GERONIMO>
>>
>
>


Re: missing XSD schemas on web

2011-08-28 Thread chi runhua
The schema files are actually under http://geronimo.apache.org/xml/ns/, not
sure it's the problem of GEP validation,  might need someone else to look
into the GEP code.


Jeff

2011/8/29 Radim Kolar 

> There is problem with some missing XSD schemas on located on geronimo web
> server.
>
> if you use schema location to make Eclipse validate XML document it
> complains
>
>  xmlns="http://geronimo.apache.**org/xml/ns/j2ee/web-2.0.1
> "
> 
> xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance
> "
> xsi:schemaLocation="http://**geronimo.apache.org/xml/ns/**
> j2ee/web-2.0.1 
> http://geronimo.apache.org/**
> xml/ns/j2ee/web-2.0.1 ">
>
> that it can not find geronimo-naming-1.2.xsd and geronimo-module-1.2.xsd
> these both files are referenced from http://geronimo.apache.org/**
> xml/ns/j2ee/web-2.0.1 Other 
> referenced files seems to be at correct location. Please upload these
> two too. There might be more missing files, if i will spot one, i will mail
> you.
>
>
>


Re: Links to nable mailing

2011-08-28 Thread chi runhua
oops, I overlooked this one.  The links on the top of each page will need
update to export templates of Confluence.

Will fix it later.

Thanks again.

Jeff

On Mon, Aug 29, 2011 at 12:10 PM, Radim Kolar  wrote:

>  Dne 29.8.2011 4:39, chi runhua napsal(a):
>
> Thanks for reporting this.
>
> The links are fixed now.
>
> Links on top of every page are not fixed yet, I am talking about:
>
>
>  User List <http://n3.nabble.com/Users-f328036.html> | Dev 
> List<http://n3.nabble.com/Development-f342155.html>|
> Wiki <http://cwiki.apache.org/geronimo> | Issue 
> Tracker<http://issues.apache.org/jira/browse/GERONIMO>
>


Re: Links to nable mailing

2011-08-28 Thread chi runhua
Thanks for reporting this.

The links are fixed now.

Jeff

2011/8/29 Radim Kolar 

> on geronimo homepage on the top links to user and dev list nabble archives
> are broken. I was not able to find correct links.
>
> on this page nabble links are broken too
> http://geronimo.apache.org/**mailing-lists.html
>
> please take a look on it and fix it. nabble is best web viewer for ML.
>


Re: Managed bean unknown when using ManagedBean annotation with Geronimo V3

2011-08-07 Thread chi runhua
The problem was also documented at

https://cwiki.apache.org/GMOxDOC30/development-issues.html#Developmentissues-Managedbeansnotfoundexceptionswhenusingannotation

Jeff

On Sat, Aug 6, 2011 at 10:15 PM, Ivan  wrote:

> Maybe it is the same issue with
> http://mail-archives.apache.org/mod_mbox/geronimo-dev/201108.mbox/%3ccals1ypbztvkmjk2rhiwujdqinpawyb-ftkh_rimrvkct7gl...@mail.gmail.com%3E
>
> 2011/8/6 horowitzathome 
>
>> I have made a simple Dynamic Web Project with Eclipse and Maven. I also
>> added
>> a managed bean which is defined like that:
>>
>> @ManagedBean(name = "testBean")
>> @SessionScoped
>> public class TestBean {
>>
>> When I try to access testBean from xhtml, I get an error that the bean is
>> unknown.   A workaround is to define the bean in faces-config.xml as a
>> managed bean but defining the bean with annotations should also work.
>>
>> I do not know, maybe the whole problem is related to my last post, see
>> 'javax.faces.* classes do not show up with Geronimo 3 runtime in Eclipse':
>>
>> http://apache-geronimo.328035.n3.nabble.com/javax-faces-classes-do-not-show-up-with-Geronimo-3-runtime-in-Eclipse-td3229637.html
>>
>> http://apache-geronimo.328035.n3.nabble.com/javax-faces-classes-do-not-show-up-with-Geronimo-3-runtime-in-Eclipse-td3229637.html
>>
>> Currently I am using geronimo-tomcat7-javaee6-3.0-20110805.060355-254.
>>
>> Best Regards,
>> Georg
>>
>> --
>> View this message in context:
>> http://apache-geronimo.328035.n3.nabble.com/Managed-bean-unknown-when-using-ManagedBean-annotation-with-Geronimo-V3-tp3229662p3229662.html
>> Sent from the Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Ivan
>


Re: javax.faces.* classes do not show up with Geronimo 3 runtime in Eclipse

2011-08-07 Thread chi runhua
Might be the problem of ManagedBean scan problem as noted in G3.0 document.

https://cwiki.apache.org/GMOxDOC30/development-issues.html#Developmentissues-Managedbeansnotfoundexceptionswhenusingannotation

HTH.

Jeff

On Mon, Aug 8, 2011 at 9:19 AM, Kevan Miller  wrote:

>
> On Aug 5, 2011, at 3:30 PM, horowitzathome wrote:
>
> > I have made a simple Dynamic Web Project with Eclipse and Maven. I also
> added
> > a managed bean and included the annotations
> > - javax.faces.bean.ManagedBean and
> > - javax.faces.bean.SessionScoped.
> >
> > I added no dependencies in the POM.
> >
> > I enabled the Project Facets (in the properties window of the web
> project)
> > and added Dynamic Web Module 3.0, Java 1.6 and JavaServer Faces 2.0.
> >
> > As target runtime I specified Geronimo 3.
> >
> > Clicking the Java Build Path and selecting the Libraries tab the Geronimo
> > Runtime is included.
> >
> > Having this configuration, Eclipse complains, that the ManagedBean and
> > SessionScoped annotations are unknown.
> >
> > One solution is to add org.apache.myfaces.core:myfaces-api with scope
> > 'provided' to the dependencies in the POM.
> >
> > I am wondering why this is necessary because I would have expected, that
> > adding the dependency to the POM is not necessary because the Geronimo
> > runtime is already included via the properties of the web project.
> >
> > When I do nothing else than changing to Geronimo V3-M1, Eclipse finds
> both
> > annotations, even when the myfaces-api is not included in the POM.
> >
> > Is this a bug or is the actual snapshot behavior the expected one?
> >
> > Currently I am using geronimo-tomcat7-javaee6-3.0-20110805.060355-254.
>
> What version of the Geronimo Eclipse Plugin are you using?
>
> --kevan
>
>


Re: Problems with Geronimo 3.0 and Hibernate

2011-08-02 Thread chi runhua
Hi Steve,  can you share with us more details about the exception?  And one
change regarding artifact name is about client-transaction component,  in
3.0, the artifact name is org.apache.geronimo.configs/client-transaction
-1_6/3.0/client-transaction-1_6-3.0-SNAPSHOT.car

Jeff

On Sun, Jul 31, 2011 at 7:25 PM, Steve Higham  wrote:

> I’m trying to port a web app using Hibernate from Geronimo 2.x to 3.0. I
> have the 3.0 Geronimo build and the 3.0 GEP installed and everything’s
> working fine.
>
> ** **
>
> However my application needs to access the packages
> org.apache.geronimo.gbean and org.apache.geronimo.kernel for the Transaction
> Manager Lookup method required by Hibernate integration. This builds fine
> when connected to a 2.x server but Eclipse is flagging a “Import … cannot be
> resolved” error when the runtime is set to Geronimo 3.0. Which jar contains
> these interfaces / classes?
>
> ** **
>
> Any help appreciated J
>
> ** **
>
> Steve
>
> ** **
>
> Steve Higham
>
> ** **
>
>  
>


Re: Microsoft SQL Server JDBC Problem with Geronimo 3.0 M1

2011-06-20 Thread chi runhua
On Tue, Jun 21, 2011 at 10:42 AM, chi runhua  wrote:

> Datasource portlet is not enabled on 3.0-M1.  You may try the datasource
> wizard on 3.0 and use @resource annotation in your sample code.
>
> 3.0-SNAPSHOT in trunk.

>
> HTH.
>
> Jeff
>
>
> On Tue, Jun 21, 2011 at 12:32 AM, Tyson P. Patterson <
> tpatter...@carnes.com> wrote:
>
>> I am getting the ClassNotFound exception trying to use the Microsoft SQL
>> Driver with Geronimo 3.0 M1.
>>
>> Here is the setup:
>> I am running Windows XP Professional 32 bit.
>> I have Eclipse Helios SR 2 with the Geronimo Eclipse Plugin 3.0 M1 for
>> my development environment.  I am using 6.0.23 for the JRE version.
>> I installed Microsoft SQL Server Express 2008 R2.  I installed Microsoft
>> JDBC Driver 3.0.
>>
>> From inside Eclipse I was able to establish a database connection to the
>> SQL Express database using the sqljdbc4.jar file from the Microsoft JDBC
>> Driver installation.
>>
>> I loaded the sqljdbc4.jar file into Geronimo 3.0's Repository using the
>> console.  I specified com.microsoft.sqlserver.jdbc as the group,
>> SQLServerDriver as the artifact, 3.0 as the version and jar as the type.
>>
>> I started a new JSF project in Eclipse.  In the Geronimo Deployment
>> Plan, I selected the SQLServerDriver I loaded in the repository from the
>> drop down list of Server Dependencies.  Eclipse generated the dependency
>> in geronimo-web.xml as follows:
>>
>>
>>com.microsoft.sqlserver.jdbc
>>SQLServerDriver
>>3.0
>>jar
>>
>>
>> I created a session bean and put the connection information in the
>> constructor for the class:
>>
>> Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
>> String connectionUrl = "jdbc:sqlserver://localhost:1433;" +
>>"databaseName=;user=;password=;";
>> conn = DriverManager.getConnection(connectionUrl);
>>
>> After publishing the application and starting it, I got the exception:
>> java.lang.ClassNotFoundException:
>> com.microsoft.sqlserver.jdbc.SQLServerDriver
>>
>> I was unable to find how to set the SQL Server connection information on
>> the Geronimo 3.0 server as a database pool using the console.
>>
>> Any ideas on where I went wrong or what step I forget?
>>
>> Tyson Patterson
>> Carnes Company
>>
>>
>> ##
>> CONFIDENTIALITY NOTICE: This email and any files transmitted with it are
>> confidential and intended
>> solely for the use of the individual or entity to whom they are addressed.
>> It may contain confidential,
>> privileged, and/or proprietary information. Any review, dissemination,
>> distribution, copying, printing,
>> or other use of this email by persons or entities other than the addressee
>> and his/her authorized agent
>> is prohibited.
>>
>> If you have received this email in error please notify the originator of
>> the message and delete the
>> material from your computer.
>>
>> ##
>>
>
>


Re: Microsoft SQL Server JDBC Problem with Geronimo 3.0 M1

2011-06-20 Thread chi runhua
Datasource portlet is not enabled on 3.0-M1.  You may try the datasource
wizard on 3.0 and use @resource annotation in your sample code.


HTH.

Jeff

On Tue, Jun 21, 2011 at 12:32 AM, Tyson P. Patterson
wrote:

> I am getting the ClassNotFound exception trying to use the Microsoft SQL
> Driver with Geronimo 3.0 M1.
>
> Here is the setup:
> I am running Windows XP Professional 32 bit.
> I have Eclipse Helios SR 2 with the Geronimo Eclipse Plugin 3.0 M1 for
> my development environment.  I am using 6.0.23 for the JRE version.
> I installed Microsoft SQL Server Express 2008 R2.  I installed Microsoft
> JDBC Driver 3.0.
>
> From inside Eclipse I was able to establish a database connection to the
> SQL Express database using the sqljdbc4.jar file from the Microsoft JDBC
> Driver installation.
>
> I loaded the sqljdbc4.jar file into Geronimo 3.0's Repository using the
> console.  I specified com.microsoft.sqlserver.jdbc as the group,
> SQLServerDriver as the artifact, 3.0 as the version and jar as the type.
>
> I started a new JSF project in Eclipse.  In the Geronimo Deployment
> Plan, I selected the SQLServerDriver I loaded in the repository from the
> drop down list of Server Dependencies.  Eclipse generated the dependency
> in geronimo-web.xml as follows:
>
>
>com.microsoft.sqlserver.jdbc
>SQLServerDriver
>3.0
>jar
>
>
> I created a session bean and put the connection information in the
> constructor for the class:
>
> Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
> String connectionUrl = "jdbc:sqlserver://localhost:1433;" +
>"databaseName=;user=;password=;";
> conn = DriverManager.getConnection(connectionUrl);
>
> After publishing the application and starting it, I got the exception:
> java.lang.ClassNotFoundException:
> com.microsoft.sqlserver.jdbc.SQLServerDriver
>
> I was unable to find how to set the SQL Server connection information on
> the Geronimo 3.0 server as a database pool using the console.
>
> Any ideas on where I went wrong or what step I forget?
>
> Tyson Patterson
> Carnes Company
>
>
> ##
> CONFIDENTIALITY NOTICE: This email and any files transmitted with it are
> confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> It may contain confidential,
> privileged, and/or proprietary information. Any review, dissemination,
> distribution, copying, printing,
> or other use of this email by persons or entities other than the addressee
> and his/her authorized agent
> is prohibited.
>
> If you have received this email in error please notify the originator of
> the message and delete the
> material from your computer.
>
> ##
>


Re: Attemptinng to create mysql datasource as standalone JEE

2011-06-07 Thread chi runhua
On Wed, Jun 8, 2011 at 1:53 AM, 4lorn  wrote:

> Hello all,
>
> I've been attempting to follow these instructions:
> https://cwiki.apache.org/GMOxDOC22/configuring-a-mysql-datasource.html
> https://cwiki.apache.org/GMOxDOC22/configuring-a-mysql-datasource.html
>
> I've installed the mysql Jar using the console, but when attempting to
> deploy, I get:
> org.apache.geronimo.common.DeploymentException: File not
> found:mysql-sa-da-plan-standalone.xml. (I've renamed from the sample.)
>

Could you show us the command you were using?   "File not found" exception
means the path to the deployment plan is incorrect.  You might want to see
if there is any typo within the command.


Jeff



>
> I tried running the deployment instructions with the xml file in
> [GERONIMO_HOME]/bin, then again with the file in [GERONIMO_HOME].
> Permissions on the file mirror that of the entire directory.
>
> Please advise.  Thanks!
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/Attemptinng-to-create-mysql-datasource-as-standalone-JEE-tp3035647p3035647.html
> Sent from the Users mailing list archive at Nabble.com.
>


Re: Apache Geronimo 3.0M1 DB Manager missing in console DB Manager does not appear in console

2011-06-06 Thread chi runhua
Hi Ryan, DB-manager related portlets are not enabled in Geronimo 3.0-M1.  If
you'd like to try to enable it over 3.0-M1, you may refer to Geronimo-5597.

https://issues.apache.org/jira/browse/GERONIMO-5597

G3.0 docs are now pairing with what's happening in 3.0-trunk.

Let us know if you have any questions.

Jeff C



On Sat, Jun 4, 2011 at 12:28 PM, Ryan Zoerner  wrote:

> I have downloaded and unzipped the Apache Geronimo v3.0-M1 
> Release.
>
> I have started the console. I do not find the DB Manager or the Embedded DB
> tab in the menu on the left-hand side of the console.
>
> I do not find debug views either, which I may need.
>
> Incidentally, the plugin screen, using the url
> http://geronimo.apache.org/plugins/geronimo-3.0/ and got the response:
>
> Http 400
>
> Problem accessing
> /console/portal/3-9/Applications/Plugins/__pmplugin0x2ImportExport!-459187804%7C0_view/__wsplugin0x2ImportExport!-459187804%7C0_maximized/__rpplugin0x2ImportExport!-459187804%7C0_repository/http0xc3A0xc2F0xc2Fgeronimo0x2apache0x2org0xc2Fplugins0xc2Fgeronimo-30x200xc2F/__rpplugin0x2ImportExport!-459187804%7C0_mode/list.
> Reason:
>
> XSSXSRFFilter blocked HttpServletRequest due to invalid FORM content.
>
>
>
> The first two things that I brought up are a big problem, the third is just 
> fyi. I see that derby is there in the folders.
>
> Is there something that I should be installing or a line that I should be 
> adding to a config file? I find nothing in the
> readme. I cannot find the term DB Manager in the documentation online, except 
> articles which already assume that
>
> it is there. One sentence says "available DB Manager" which makes me wonder 
> what I need to do to make it available.
>
> This seems like it would be a common problem, but I found nothing about it on 
> the mailing list either.
>
>
> Thanks,
>
> Ryan Zoerner
>
>
>


Re: ActiveMQ is not configured correctly in G3.0-SNAPSHOT

2011-05-31 Thread chi runhua
Thanks for spotting this, please go ahead and file a JIRA for the problem.

Jeff C

On Wed, Jun 1, 2011 at 5:37 AM, Russell E Glaue  wrote:

> I am testing with geronimo-tomcat7-javaee6-web-3.0-SNAPSHOT,
> geronimo-tomcat7-javaee6-web-3.0-20110523.171218-97
>
> ActiveMQ is configured to run as
> "org.apache.geronimo.home.dir/var/activemq" ,
> and does not cooperate with multi-server configurations. This is the use of
> the
> "org.apache.geronimo.server.name" option. (see:
> https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> )
>
> When wanting to run more than a single server instance, the ActiveMQ
> startup
> will block waiting for the lock file "$GERONIMO_HOME/var/activemq/lock" to
> become available.
>
> Obviously this causes any server instance started after the first server
> instance is started to block during startup while waiting for the lock file
> to
> become available.
>
>
> Steps to repeat:
>
> 1. Download and unpack G3.0 SNAPSHOT (3.0-20110523 tested)
>
> 2. Create the server instances:
> -- 2A. cd ${GERONIMO_HOME}
> -- 2B-1. mkdir gserver1
> -- 2B-2. cp -rp var gserver1/
> -- 2B-3. cp -rp etc gserver1/
> -- 2B-4. cp -rp repository gserver1/
> -- 2C-1. mkdir gserver1
> -- 2C-2. cp -rp var gserver1/
> -- 2C-3. cp -rp etc gserver1/
> -- 2C-4. cp -rp repository gserver1/
>
> -- (the "deploy:new-server-instance" only does step 1 and 2, create base
> directory and var/ directory, you still have to manually copy/create etc
> and
> repository)
>
> 3. update the "PortOffset" parameter in
> var/config/config-substitutions.properties in each instance
>
> 4. Start the server instances:
> -- env GERONIMO_OPTS=-Dorg.apache.geronimo.server.name=server1 bin/startup
> -- env GERONIMO_OPTS=-Dorg.apache.geronimo.server.name=server2 bin/startup
>
> 5. `tail -f server2/var/logs/geronimo.log` and you will see this as the
> last
> line that outputs:
> "2011-05-31 16:26:39,609 WARN  [AMQPersistenceAdapter] Waiting to Lock the
> Store
> var/activemq"
> The server waits here indefinitely.
>
> 6. Shutdown the "server1" instance and you will see the "server2" instance
> continue on in the startup procedures.
>
> * When I first start the "server1" instance, the directory
> "${GERONIMO_HOME}/var/activemq" is created and populated. Instead it should
> be
> "${GERONIMO_HOME}/org.apache.geronimo.server.name/var/activemq" that is
> created
> and populated.
>
>
> I believe this is a bug.
> Does anyone concurr?
> I will file a bug report unless someone can explain to me I should be
> configuring something else other than "PortOffset" in the
> "config-substitutions.properties" file to avoid ths issue.
>
> -RG
>
>


Re: JDBC parameters for DB2 on i

2011-05-24 Thread chi runhua
what about iso in the datasource plan file?

Assume that DATETIME is the property name. You might need to find out the
correct one.

HTH.

Jeff

On Wed, May 25, 2011 at 5:05 AM,  wrote:

> We are using the new pool type "TranQL XA Resource Adapter for DB2 on
> ISeries" and it is working well.
>
> I need to set the parameter ";date format=iso".  What's the best way to do
> that?
>
> Should I file a bug requesting an enhancement to add a field for that, or
> maybe just an "Other Parameters" field?
>
> *David Frahm*
> Huber & Associates
> Office: 573-634-5000, Mobile: 573-298-1040
> 
>
>
>


Re: GBeans fails with missing dependency, but it's shown in the Console

2011-04-28 Thread chi runhua
Could you show us the document link you are following?  Maybe I can try to
reproduce the problem and update the doc accordingly.


Jeff



> On Apr 28, 2011, at 9:46 AM, WinnieNicklaus wrote:
>
> > So, all three of the following fail with that error message:
> >
> > java -jar /bin/deployer.jar --user  --password
> >  deploy resources_deployment_plans/deploy_ds.xml
> >
> /repository/org/tranql/tranql-connector-ra/1.3/tranql-connector-ra-1.3.rar
> >
> > java -jar /bin/deployer.jar --user  --password
> >  deploy resources_development_plans/deploy_jms.xml
> >
> /repository/org/apache/geronimo/modules/geronimo-activemq-ra/2.0.1/geronimo-activemq-ra-2.0.1.rar
> >
> > java -jar /bin/deployer.jar --user  --password
> >  deploy eP-EAR.ear
> > ***
> > The contents of deploy_ds.xml:
> >
> > 
> > http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
> > > xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";>
> >
> >console.dbpool
> >epims_ds
> >1.0
> >rar
> >
> >
> >
> >lib
> >postgresql
> >8.1.407.jdbc3
> >jar
> >
> >
> >
> >
> >
> >
> >
> >
> javax.sql.DataSource
> >
> >epims_ds
> > > name="Password">
> > > name="Driver">org.postgresql.Driver
> > > name="UserName">postgres
> > > name="ConnectionURL">jdbc:postgresql://127.0.0.1/ePimsDB
> 
> >
> >
> >
> >10
> >0
> >
> >
> >
> >
> >
> >
> >
> > 
> > **
> > The contents of deploy_jms.xml are similar, but longer, so I won't post
> them
> > right now.  This is a dependency in it, however:
> >
> >
> >
> >org.apache.geronimo.configs
> >activemq-broker
> >car
> >
> >
> >
> > *
> > eP-EAR.ear is the ear for the application.  As for using 2.0.1, the
> > application is somewhat old and not actively developed, and the
> > documentation for it says it was tested on Geronimo 2.0.1, so I figure
> > that's what I ought to stick with.
> >
> > Any ideas?  Thanks much!
> >
> > --
> > View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/GBeans-fails-with-missing-dependency-but-it-s-shown-in-the-Console-tp2871955p2875416.html
> > Sent from the Users mailing list archive at Nabble.com.
>
>


Re: AS/400 config JPA and Database Pools

2011-03-10 Thread chi runhua
See if the following page would do any help.

[1].
http://geronimo.apache.org/schemas-2.1/docs/geronimo-connector-1.2.xsd.html#h213116836



Jeff

On Thu, Mar 10, 2011 at 11:51 PM,  wrote:

> Thanks for your response.  I know its been awhile, but I needed time to
> analyze your information.
>
> I'm not sure how to use the DB2-specific adapters with an AS/400 database.
> The fields don't seem to match up for me.  However, we will try out the
> v2.1.1.5 DB2 iSeries adapter.
>
> Where can I find documentation on database type values (XA, Local, None)?
> I didn't think I needed distributed tx support, but even before your
> suggestion here I was getting the impressions that things would work better
> if I used XA in Geronimo.  I'd really like to understand why though.
>
> I'm attaching a sample JPA exception with rollback errors.  One of the
> confusing things in the stacktrace are the conflicting messages of "The
> transaction has been rolled back" and "Unable to rollback".
>
> *- David Frahm*
>
>
> -David Jencks   wrote:
> -
>
> To: user@geronimo.apache.org
> From: David Jencks  
> Date: 01/27/2011 11:46AM
> Subject: Re: AS/400 config JPA and Database Pools
>
> Hi DFrahm,
>
> Can you be more explicit about the rollback problems?  That might point
> towards the cause.
>
> in my experience when a non-jta-datasource is needed and missing, nothing
> works so it's really obvious there is a problem.  If many things work you
> might not need the non-jta-datasource but I would add it anyway.  Once you
> have everything working properly you can experiment with removing it and see
> if new problems show up.   It is most likely to be needed for DDL (e.g.
> initial table creation) and key value/sequence generation.
>
> You should definitely use the db2 specific adapters.  We have an ISeries
> specific db2 adapter now but I doubt it is included in your was ce version
> (I think it is in the latest version if you can upgrade).  You can get it at
>
>
> http://repo2.maven.org/maven2/org/tranql/tranql-connector-db2ISeries-xa/1.0/tranql-connector-db2ISeries-xa-1.0.rar
>
> You wont be able to deploy this directly from the admin console, but what
> you can do is use the admin console to generate a plan for one of the
> included db2 adapters, copy it to a file, and deploy the adapter + plan
> using the command line or the admin console.
>
> You should set up the jta datasource using xa-transaction and
> transaction-caching (the plan should look like this:
>
> 
>   
> 
> )  If you leave out the transaction-caching element you will eventually get
> very strange errors where 2 transactions try to use the same connection or a
> commit/rollback is tried on a closed connection.
>
> The non-jta datasource should be set up with no-transaction support.
>
> Hope this helps!
> david jencks
>
> On Jan 27, 2011, at 5:07 AM, dfr...@teamhuber.com wrote:
>
> I'm using JPA with an AS/400 (DB2/i) in an EJB/EAR application.
>
> We're having trouble with rollbacks, which also has me wondering what else
> might work better if I knew how to configure this correctly.
>
> Does anyone have any best practices for this setup?  Do I need both a JTA
> and non-JTA datasource defined for JPA? (I've read posts where that was
> needed for Derby.)
>
> Also, when I create the server Database Pools, what values should I use?
> Specifically, I've been using Database Type "Other", but does using that
> reduce my functionality?  Should I be using one of the "DB2" values, even
> though its on the i? And what about Transaction Type?
>
> We're running WASCE 2.1.1.3.  Thanks!
>
> *David Frahm*
> Huber & Associates
> Office: 573-634-5000, Mobile: 573-298-1040
>
>
>
>
>
>


Re: Deploy application in Eclipse, get blank page

2011-03-10 Thread chi runhua
On Thu, Mar 10, 2011 at 1:30 PM, burn-x  wrote:

> Hi!
>
> I feel kind of silly posting this, but I've been trying to figure out why
> when I deploy a simple project (the HelloWorld example in the Apache
> Geronimo Documentation) I get a blank page with no source code.  The title
> of the tab in Eclipse for the page is "about:blank".  The console also
> doesn't indicate that any request as been sent to Geronimo server.
>
> When I deploy the application through Geronimo Console, the application
> runs
> fine when I access it through a internet browser.
>
> I'm running on Eclipse Helios with Apache Geronimo v3.0 Server Adapter.
> Apache Geronimo version is 2.2.1 (Jetty)
>

eh~~.. I might overlooked this line

You might want use Geronimo V2.2 Server Adapter to hook up with Geronimo
Server 2.2.1.  Likewise, GEP3.0 for Geronimo 3.0 server.



 Jeff C



> Thanks,
>
> Burn-X
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/Deploy-application-in-Eclipse-get-blank-page-tp2659194p2659194.html
> Sent from the Users mailing list archive at Nabble.com.
>


Re: Deploy application in Eclipse, get blank page

2011-03-09 Thread chi runhua
To deploy on GEP, follow the steps below:

   1. In the *Servers* view, right click on *Apache Geronimo v2.2 Server at
   localhost* and select *Add and Remove Projects*.
   2. In the *Add and Remove Projects* dialog, select the project
under *Available
   projects* and click on *Add* button. The project will now be listed under
   *Configured projects*.
   3. Click *Finish*.

HTH.

Jeff C

On Thu, Mar 10, 2011 at 1:30 PM, burn-x  wrote:

> Hi!
>
> I feel kind of silly posting this, but I've been trying to figure out why
> when I deploy a simple project (the HelloWorld example in the Apache
> Geronimo Documentation) I get a blank page with no source code.  The title
> of the tab in Eclipse for the page is "about:blank".  The console also
> doesn't indicate that any request as been sent to Geronimo server.
>
> When I deploy the application through Geronimo Console, the application
> runs
> fine when I access it through a internet browser.
>
> I'm running on Eclipse Helios with Apache Geronimo v3.0 Server Adapter.
> Apache Geronimo version is 2.2.1 (Jetty)
>
> Thanks,
>
> Burn-X
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/Deploy-application-in-Eclipse-get-blank-page-tp2659194p2659194.html
> Sent from the Users mailing list archive at Nabble.com.
>


Re: Any example on how to implement a programmatic login with geronimo security?

2011-02-22 Thread chi runhua
And IIRC, you also need to add your realm as a dependency in the deployment
plan of your application.

 geronimo-application.xml
...
 
console.realm
my_security_realm
car

...

HTH.

Jeff


On Tue, Feb 22, 2011 at 1:59 AM, David Jencks wrote:

> Hi Andreas,
>
> I think (but haven't checked) that if you do this kind of programatic use
> of a named security realm you have to mark the realm  name="global">true.  IIRC the built in code does some more
> lookup to find the actual login Configuration object for a non-global realm
> and you probably don't want to mess with that unless you need several realms
> all with the same name for different apps.
>
> thanks
> david jencks
>
> On Feb 21, 2011, at 9:21 AM, Andreas Bohnert wrote:
>
>  hello david,
>
> thanks for you quick response!
> the servlet 3.0 implementation seems to be a much nicer approach. but at
> the moment I stuck with geronimo 2.2.
>
> > LoginContext lc =
> org.apache.geronimo.security.ContextManager.login(realm, callbackHandler);
> > ContextManager.registerSubject(lc.getSubject());
> > ContextManager.setCallers(lc.getSubject(), lc,getSubject());
>
> that is what I wanted to know. thanks.
> unfortunately I get an exception when I try this. the exception says that
> there are no LoginModules configured for the given realm.
>
> I created the realm according to this document:
> https://cwiki.apache.org/GMOxDOC22/database-sql-realm.html
> I tested the realm, it's working.
>
> As far as I understand, if I create a realm with the geronimo adminstration
> console, the realm is fully configured and I can reference the realm in my
> war without further configuration:
>
> LoginContext lc  =
> org.apache.geronimo.security.ContextManager.login("my_security_realm",
> this);
>
> because this was not working ( ... no LoginModules configured for the given
> realm ...), I also tried to add deployment plan of this realm to my ear
> (geronimo-application.xml). but still I get the exception.
>
> so my deployment plan for my realm look like this:
>  xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2";
> >
> 
> 
> console.realm
> my_security_realm
> 1.0
> car
> 
> 
> 
> org.apache.geronimo.framework
> j2ee-security
> car
> 
> 
> console.dbpool
> SecurityDatabasePool
> 1.0
> car
> 
> 
> 
>  class="org.apache.geronimo.security.realm.GenericSecurityRealm"
> xsi:type="dep:gbeanType" xmlns:dep=
> "http://geronimo.apache.org/xml/ns/deployment-1.2";xmlns:xsi=
> "http://www.w3.org/2001/XMLSchema-instance";
> >
> my_security_realm
> false
> 
> ServerInfo
> 
> 
>  "http://geronimo.apache.org/xml/ns/loginconfig-2.0";
> >
>  wrap-principals="false">
>
> eusoda_security_realm
>
> org.apache.geronimo.security.realm.providers.SQLLoginModule
> select username,
> groupname from groups where username=?
>  name="dataSourceApplication">null
> select username, password
> from users where username=?
>  name="dataSourceName">SecurityDatabasePool
> 
>  wrap-principals="false">
>
> eusoda_security_realm-Audit
>
> org.apache.geronimo.security.realm.providers.FileAuditLoginModule
>  name="file">var/log/security_log.log
> 
> 
> 
> 
> 
>
> if I put this plan in my ear, the geronimo-application.xml look like this:
>
> 
>  "http://geronimo.apache.org/xml/ns/j2ee/application-2.0";xmlns:client=
> "http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0";xmlns:conn=
> "http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";xmlns:dep=
> "http://geronimo.apache.org/xml/ns/deployment-1.2";xmlns:ejb=
> "http://openejb.apache.org/xml/ns/openejb-jar-2.2";xmlns:log=
> "http://geronimo.apache.org/xml/ns/loginconfig-2.0";xmlns:name=
> "http://geronimo.apache.org/xml/ns/naming-1.2";xmlns:pers=
> "http://java.sun.com/xml/ns/persistence";xmlns:pkgen=
> "http://openejb.apache.org/xml/ns/pkgen-2.1";xmlns:sec=
>

Re: Where is the document or schema of geronimo datasource parameters?

2011-02-20 Thread chi runhua
See whether [1] would do any help.

[1].
http://geronimo.apache.org/schemas-2.2/docs/geronimo-connector-1.2.xsd.html

An you may use *value* to configure
datasources as long as the driver supports.

HTH.

Jeff Chi

On Sat, Feb 19, 2011 at 10:23 AM, ext2  wrote:

> Hi:
>I saw some samples of datasource in the Geronimo; But I am not sure
> if these samples have illustrate all configuration parameters of
> datasource;
>Does anyone know where is the document which describe the parameters
> of Geronimo datasource completely?
>If no such a document, the schema of datasource xml will also be
> appreciate.
>Thanks for any suggestion;
> Best regard
>
>
>


Re: How to use JASPI module in the deployment plan

2011-01-27 Thread chi runhua
David, thanks a lot for the info.

The sample code helps a lot as well as those in /components/jaspi directory.

I'll update the thread if I have any other questions.

Jeff Chi


On Thu, Jan 27, 2011 at 4:23 PM, David Jencks wrote:

> Hi Jeff,
>
> I never wrote up much in the way of instructions.  There is a sample
> project using jaspic for openid under
> https://svn.apache.org/repos/asf/geronimo/sandbox/djencks/samples/security/openid/openid-samplewhich
>  includes the jaspic configuration for the geronimo openid jaspic
> component (which I dont think we ever released).
>
> I think I also talked about this in an apachecon presentation from 2008.
> http://people.apache.org/~djencks/Geronimo%20Security.pdf<http://people.apache.org/%7Edjencks/Geronimo%20Security.pdf>
>
> I'm not sure the openid stuff has been tested on geronimo 3.
>
> thanks!
> david jencks
>
> On Jan 25, 2011, at 11:30 PM, chi runhua wrote:
>
> > Hi, I am trying to update the deployment plan docs according to the
> latest schema files in 3.0 but failed to find any how-to instructions in
> either org.apache.geronimo.config.geronimo.security package or testsuite
> folder.
> >
> > Could anyone shed some light on me?  Thanks a lot.
> >
> >
> > Jeff
>
>


How to use JASPI module in the deployment plan

2011-01-25 Thread chi runhua
Hi, I am trying to update the deployment plan docs according to the latest
schema files in 3.0 but failed to find any how-to instructions in either
org.apache.geronimo.config.geronimo.security package or testsuite folder.

Could anyone shed some light on me?  Thanks a lot.


Jeff


Re: tomcat logs

2011-01-09 Thread chi runhua
On Mon, Jan 10, 2011 at 1:53 PM, jcyim  wrote:

>
> hello.
>
> I am using geronimo 2.2 with tomcat in redhat linux.
> I was trying to see logs when lifecycle of Web Application (WAR) changed.
> because I wanted to check whether Web Application properly
> installed/uninstalled/started/stopped using viewing geronimo log files.
>
> You might want to look into /var/bin/Catalina/logs folder for
Tomcat-specfic logs.

I was struggling with the server configuration file which is
> server-log4j.properties, especially I modified the configuration of
> catalina
> log setting part of the server configuration file serveral times in a
> different way.
>
> but, I could not get the any log related tomcat in geronimo.log or/and
> geronimo.out.
> It seems to me that the configuration for catalina parts has no any effect.
>
> (I am not talking about access log-it works fine for me)
>
> anyone knows answer?
>
> one more question, according to default setting of server-log4j.properties,
> I expect that
> logs in geronimo.out and geronimo.log are supposed to be almost same. but
> the contents of two log files are quite different. why is that?
>

geronimo.out is the file that Geronimo's stdout and stderr streams will be
redirected to if Geronimo is started in the background.
geronimo.log is the log4j appender file which you can direct server runtime
logs into according to the server-log4j.propertie configuration.

HTH.

Jeff C

>
> TIS.
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/tomcat-logs-tp2225093p2225093.html
> Sent from the Users mailing list archive at Nabble.com.
>


Re: Welcome viola.lu as a new committer

2011-01-05 Thread chi runhua
Congrats, Viola~!

Jeff C

On Thu, Jan 6, 2011 at 12:10 AM, Kevan Miller wrote:

> Congrats Viola! Great to have you joining the project.
>
> --kevan
> On Dec 30, 2010, at 12:57 AM, Ivan wrote:
>
> > I would like to welcome viola.lu aboard, as she recently accepted the
> Geronimo PMC invitation to become a committer.  Her account was just created
> this morning (viola.lu), so you should start seeing some commits from her
> soon.
> > Ivan
>
>


Re: hudson on geronimo v.3

2010-11-14 Thread chi runhua
I just tried on G2.2 with the following deployment plan, the hudson.war was
deployed successfully.  While lots of unmarshall exceptions were thrown out
when deploying on G3.0.


http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1";>
http://geronimo.apache.org/xml/ns/deployment-1.2";>

dev.java.net
hudson
1.384
war



hudson

geronimo-admin












  


You might want to file a JIRA for the issue.


Jeff C



On Sat, Nov 13, 2010 at 12:53 AM,  wrote:

> Greeting
>
> Could you please help me to do the things, described at
> https://cwiki.apache.org/GMOxSAMPLES/running-hudson-on-geronimo.html
>
> on Geronimo v. 3
>
> I was tried the following geronimo-web.xml and it doesn't work.
>
> http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1";>
> http://geronimo.apache.org/xml/ns/deployment-1.2";>
> 
> net.java.dev.hudson
> hudson
> 1.384
> war
> 
> 
>   
> org.apache.geronimo.framework
> j2ee-security
> 3.0-M1
> car
>   
>   
> org.apache.geronimo.framework
> geronimo-security
> 3.0-M1
> jar
>   
> 
>
> 
> org.apache.commons.lang.
> org.apache.commons.jexl.
> 
> 
>
> /hudson
> hudson-realm
>   
> 
>class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
> />
> 
> 
>   
> 
>class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal"
> />
> 
>  class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
> />
>   
> 
>   
> 
>
>
>
> Regards,
> Boris
>
> ___
>
>
>
> The information contained in this message may be privileged and conf
> idential and protected from disclosure. If you are not the original intended
> recipient, you are hereby notified that any review, retransmission,
> dissemination, or other use of, or taking of any action in reliance upon,
> this information is prohibited. If you have received this communication in
> error, please notify the sender immediately by replying to this message and
> delete it from your computer. Thank you for your cooperation. Troika Dialog,
> Russia.
>
> If you need assistance please contact our Contact Center (+7495) 258 0500
> or go to www.troika.ru/eng/Contacts/system.wbp
>
>
>


How to generate schema logical diagram on Geronimo website?

2010-09-28 Thread chi runhua
Hi, anyone still remember how to achieve this, I am trying to create the
similar logical diagrams as in
http://geronimo.apache.org/schemas-2.1/docs/geronimo-tomcat-2.0.1.xsd.html?


Thanks in advance.

Jeff


Re: Newbie problem with web.xml

2010-09-14 Thread chi runhua
I didn't see any problems neither with the geronimo-web.xml nor web.xml
file.  And I just tried on my machine with the exact steps on Geronimo2.2
and it works as expected.

If you were using 3.0M1 or later versions, --inPlace is not supported yet
and we already have a JIRA(1) for it.

Please try with 2.2 or 2.1.* versions.

(1). https://issues.apache.org/jira/browse/GERONIMO-5488

HTH.

Jeff


On Tue, Sep 14, 2010 at 6:47 PM, chi runhua  wrote:

> Which version of Geronimo you are using?
>
> Jeff
>
>
> On Tue, Sep 14, 2010 at 6:11 PM, albu77  wrote:
>
>>
>> I'm starting with Geronimo, install it, started oK
>> Try the demo as exposed on:
>>
>> https://cwiki.apache.org/GMOxDOC22/quick-start-apache-geronimo-for-the-impatient.html#Quickstart-ApacheGeronimofortheimpatient-Startingtheserver
>>
>> When I want to deploy with
>> deploy --user system --password manager deploy --inPlace applications
>>
>> I get an error message:
>>
>> c:\Apache\Geronimo\bin>deploy --user system --password manager deploy
>> --inPlace
>> c:\Apache\Geronimo\applications
>> Using GERONIMO_HOME:   c:\Apache\Geronimo
>> Using GERONIMO_TMPDIR: var\temp
>> Using JRE_HOME:C:\Program Files\Java\jre6
>> 2010-09-14 10:27:33,594 ERROR [DeployTool] Error:
>> org.apache.geronimo.common.DeploymentException: Unable to deploy
>> applications: E
>> rror parsing web.xml for .
>>error: Unexpected element: CDATA
>>Unexpected element: CDATA
>>
>>at
>> org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(CommandDe
>> ploy.java:45)
>>at
>> org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(Co
>> mmandDistribute.java:149)
>>at
>> org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandD
>> istribute.java:125)
>>at
>> org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java
>> :168)
>>at
>> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(Ma
>> inConfigurationBootstrapper.java:45)
>>at
>> org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
>>at
>> org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31
>> )
>>
>>
>> c:\Apache\Geronimo\bin>
>>
>>
>> I don't understand I paste the code from the site concerning the two xml
>> file, even pass them through NotePad++ to avoid bad characters insertion..
>> Restarted the server after saving the files from the Editor.
>>
>> Can somebody have a an advise.
>>
>> Regards
>>
>> Alain
>>
>> geronimo-web-xml:
>> 
>> http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1";>
>>
>>
>>org.apache.geronimo.samples
>>HelloWorldApp
>>2.2
>>war
>>
>>
>>/hello
>> 
>>
>>
>> web.xml:
>> 
>> http://java.sun.com/xml/ns/j2ee";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
>>
>>HelloWorld.jsp
>>
>> 
>> --
>> View this message in context:
>> http://apache-geronimo.328035.n3.nabble.com/Newbie-problem-with-web-xml-tp1472065p1472065.html
>> Sent from the Users mailing list archive at Nabble.com.
>>
>
>


Re: Newbie problem with web.xml

2010-09-14 Thread chi runhua
Which version of Geronimo you are using?

Jeff

On Tue, Sep 14, 2010 at 6:11 PM, albu77  wrote:

>
> I'm starting with Geronimo, install it, started oK
> Try the demo as exposed on:
>
> https://cwiki.apache.org/GMOxDOC22/quick-start-apache-geronimo-for-the-impatient.html#Quickstart-ApacheGeronimofortheimpatient-Startingtheserver
>
> When I want to deploy with
> deploy --user system --password manager deploy --inPlace applications
>
> I get an error message:
>
> c:\Apache\Geronimo\bin>deploy --user system --password manager deploy
> --inPlace
> c:\Apache\Geronimo\applications
> Using GERONIMO_HOME:   c:\Apache\Geronimo
> Using GERONIMO_TMPDIR: var\temp
> Using JRE_HOME:C:\Program Files\Java\jre6
> 2010-09-14 10:27:33,594 ERROR [DeployTool] Error:
> org.apache.geronimo.common.DeploymentException: Unable to deploy
> applications: E
> rror parsing web.xml for .
>error: Unexpected element: CDATA
>Unexpected element: CDATA
>
>at
> org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(CommandDe
> ploy.java:45)
>at
> org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(Co
> mmandDistribute.java:149)
>at
> org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandD
> istribute.java:125)
>at
> org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java
> :168)
>at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(Ma
> inConfigurationBootstrapper.java:45)
>at
> org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
>at
> org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31
> )
>
>
> c:\Apache\Geronimo\bin>
>
>
> I don't understand I paste the code from the site concerning the two xml
> file, even pass them through NotePad++ to avoid bad characters insertion..
> Restarted the server after saving the files from the Editor.
>
> Can somebody have a an advise.
>
> Regards
>
> Alain
>
> geronimo-web-xml:
> 
> http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1";>
>
>
>org.apache.geronimo.samples
>HelloWorldApp
>2.2
>war
>
>
>/hello
> 
>
>
> web.xml:
> 
> http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
>
>HelloWorld.jsp
>
> 
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/Newbie-problem-with-web-xml-tp1472065p1472065.html
> Sent from the Users mailing list archive at Nabble.com.
>


Re: XML Log4j configuration

2010-08-31 Thread chi runhua
Hi Mik, thanks a lot for contributing back to the community.

I've put the How-to information in G2.2 document at

https://cwiki.apache.org/GMOxDOC22/configuring-application-specific-logging-with-log4j.html


Jeff

On Tue, Aug 31, 2010 at 9:37 PM, Kevan Miller wrote:

>
> On Aug 31, 2010, at 8:27 AM, Mik wrote:
>
> >
> > Hi Kevan
> >
> > Thanks for your reply. Looking through the code in Log4jService.java made
> > the difference..
> >
> > // Allow users to override the configurationFile which is hardcoded
> > // in config.ser and cannot be updated by config.xml, as the
> > // AttrbiuteManager comes up after this GBean
> > String cfgFile = System
> >.getProperty(LOG4JSERVICE_CONFIG_PROPERTY);
> > if ((cfgFile != null) && (!cfgFile.equals(""))) {
> >this .configurationFile = cfgFile;
> > }
> >
> > So the config file value can be overridden at server startup by using
> > org.apache.geronimo.log4jservice.configuration system property, and it
> also
> > seems to accept the xml format :-)
>
> Hi Mik,
> Great. Good work digging through the source!. Forgot that this GBean
> attribute couldn't be overridden... Normally, the config.xml override would
> work. As indicated by above comment, this is an edge case due to order of
> server startup...
>
> --kevan
>
>


Re: XML Log4j configuration

2010-08-30 Thread chi runhua
see if the page could do any help.

https://cwiki.apache.org/GMOxDOC22/configuring-application-specific-logging-with-log4j.html



Jeff

On Mon, Aug 30, 2010 at 7:47 PM, Mik  wrote:

>
> Hi all.
>
> It it possible to configure Geronimo server so that it will utilize log4j
> XML configuration instead of the default server-log4j.properties?
>
> I would really like to use the level filter option in XML configuration,
> but
> still would like to have logging configured on server level...
>
> Thanks.
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/XML-Log4j-configuration-tp1388271p1388271.html
> Sent from the Users mailing list archive at Nabble.com.
>


Re: "wrong number of arguments" calling ejb webservice in geronimo 2.2

2010-08-16 Thread chi runhua
Or you can try the document at
https://cwiki.apache.org/GMOxDOC22/substituting-one-module-with-another.html

See
if this page could help.

Jeff C

On Mon, Aug 16, 2010 at 8:58 PM, Ivan  wrote:

> The url for the latest snapshot is
> http://people.apache.org/builds/geronimo/server/binaries/2.2/20100815/
> And we do have plan for a new 2.2.2 release, it should be out soon.
>
> 2010/8/16 
>
> Hi,
>>
>> I am currently porting an application from jboss to geronimo and I am
>> encountering problems when calling a web-service:
>>
>>  java.lang.IllegalArgumentException: wrong number of arguments: The bean
>> encountered a non-application exception; nested exception is:
>>java.lang.IllegalArgumentException: wrong number of arguments
>>at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>>at
>> org.apache.geronimo.axis2.ejb.EJBMessageReceiver.receive(EJBMessageRe
>> ceiver.java:105)
>>at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>>at
>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
>> uest(HTTPTransportUtils.java:167)
>>at
>> org.apache.geronimo.axis2.Axis2WebServiceContainer.processXMLRequest(
>> Axis2WebServiceContainer.java:437)
>>at
>> org.apache.geronimo.axis2.Axis2WebServiceContainer.processPOSTRequest
>> (Axis2WebServiceContainer.java:386)
>>at
>> org.apache.geronimo.axis2.Axis2WebServiceContainer.doService2(Axis2We
>> bServiceContainer.java:308)
>>at
>> org.apache.geronimo.axis2.Axis2WebServiceContainer.doService(Axis2Web
>> ServiceContainer.java:243)
>>
>>
>> I think the issue is similar to the problem mentioned here:
>>
>> http://mail-archives.apache.org/mod_mbox/geronimo-user/201006.mbox/%3c4c062c91.7030...@optitool.de%3e
>>
>> It occurs independently of using axis2 or cxf. I am using geronimo-2.2
>> with tomcat with jdk 6.
>>
>> The proposed solution was to get a 2.2.1 snapshot, however, I could not
>> find such a snapshot release. Have I to build it myself by using maven? Is
>> there possibly some other workaround?
>>
>> Best regards and thanks,
>> Hans-Peter
>>
>>
>
>
> --
> Ivan
>


Re: Geronimo v2.2 and Hudson

2010-07-15 Thread chi runhua
In G2.2, you need to add a dependency of your security realm in the
deployment plan.


Jeff

On Thu, Jul 15, 2010 at 11:27 PM, chi runhua  wrote:

> Could you show us the page you were referring to?
>
> Jeff
>
>
> On Thu, Jul 15, 2010 at 6:23 PM, Michael Richter wrote:
>
>> There's a note on the web site on how to get Geronimo and Hudson to work
>> together but the configuration provided doesn't seem to work -- the
>> geronimo-web.xml format used there seems to be different from 2.2's format.
>>  Are there any notes or tips available on how to get Hudson integrated with
>> Geronimo 2.2?  I tried to use the plan creator and was far more successful
>> but got stymied at the end by the system complaining about "realms".
>>
>> --
>> "Perhaps people don't believe this, but throughout all of the discussions
>> of entering China our focus has really been what's best for the Chinese
>> people. It's not been about our revenue or profit or whatnot."
>> --Sergey Brin, demonstrating the emptiness of the "don't be evil" mantra.
>>
>
>


Re: Geronimo v2.2 and Hudson

2010-07-15 Thread chi runhua
Could you show us the page you were referring to?

Jeff

On Thu, Jul 15, 2010 at 6:23 PM, Michael Richter wrote:

> There's a note on the web site on how to get Geronimo and Hudson to work
> together but the configuration provided doesn't seem to work -- the
> geronimo-web.xml format used there seems to be different from 2.2's format.
>  Are there any notes or tips available on how to get Hudson integrated with
> Geronimo 2.2?  I tried to use the plan creator and was far more successful
> but got stymied at the end by the system complaining about "realms".
>
> --
> "Perhaps people don't believe this, but throughout all of the discussions
> of entering China our focus has really been what's best for the Chinese
> people. It's not been about our revenue or profit or whatnot."
> --Sergey Brin, demonstrating the emptiness of the "don't be evil" mantra.
>


Re: meaning of property-name="local" in Farming

2010-07-10 Thread chi runhua
On Sat, Jul 10, 2010 at 9:44 PM, chi runhua  wrote:

>
>
> On Mon, Nov 9, 2009 at 8:33 PM, Amit Puri  wrote:
>
>> Hi All
>>
>> Could you please tell me what is the significance of property name="local"
>> in org.apache.geronimo.farm.config.BasicNodeInfo.
>> When I give "local"= true in clustering environment and try to deploy one
>> application, I am getting error like "Configuration already exists".
>
>
IIUC, when the property local is true, geronimo kernel will look up a
directory with the farming repository first during deployment.

See
https://svn.apache.org/repos/asf/geronimo/server/tags/2.1.4/plugins/clustering/geronimo-farm/src/main/java/org/apache/geronimo/farm/deployment/BasicClusterConfigurationStoreClient.java


HTH.
Jeff C


Re: meaning of property-name="local" in Farming

2010-07-10 Thread chi runhua
On Mon, Nov 9, 2009 at 8:33 PM, Amit Puri  wrote:

> Hi All
>
> Could you please tell me what is the significance of property name="local"
> in org.apache.geronimo.farm.config.BasicNodeInfo.
> When I give "local"= true in clustering environment and try to deploy one
> application, I am getting error like "Configuration already exists". I have
> also checked cluster-repository dir of app server dir, one new empty dir has
> been created there.
>
> I have followed these steps:
>
> 1. Installed two geronimo instances A and B at different paths
>
> 2. Made the following changes to Geronimo A
> For var\config\config-substitutions.properties
> clusterNodeName=NODE --> clusterNodeName=NODE-A
>
> For var\config\config.xml, add the following contents to module:
> org.apache.geronimo.configs/farming/2.1.4/car
> -
>  name="org.apache.geronimo.configs/farming/2.1.4/car?ServiceModule=org.apache.geronimo.configs/farming/2.1.4/car,j2eeType=NodeInfo,name=NODE-B"
> gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
> NODE-B
>  propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor"
> name="extendedJMXConnectorInfo">
>  class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo"
> xmlns:ns4="http://geronimo.apache.org/xml/ns/attributes-1.2"; xmlns:ns="
> http://geronimo.apache.org/xml/ns/deployment/javabean-1.0"; xmlns="">
> system
> manager
> rmi
> localhost
> 1109
> JMXConnector
> true
> 
> 
> -
>
> 3. Made the following changes to Geronimo B
> For var\config\config-substitutions.properties
> clusterNodeName=NODE --> clusterNodeName=NODE-B
> PortOffset=0 --> PortOffset=10
>
> For var\config\config.xml, add the following contents to module:
> org.apache.geronimo.configs/farming/2.1.4/car
> -
>  name="org.apache.geronimo.configs/farming/2.1.4/car?ServiceModule=org.apache.geronimo.configs/farming/2.1.4/car,j2eeType=NodeInfo,name=NODE-A"
> gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
> NODE-A
>  propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor"
> name="extendedJMXConnectorInfo">
>  class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo"
> xmlns:ns4="http://geronimo.apache.org/xml/ns/attributes-1.2"; xmlns:ns="
> http://geronimo.apache.org/xml/ns/deployment/javabean-1.0"; xmlns="">
> system
> manager
> rmi
> localhost
> 1099
> JMXConnector
> true
> 
> 
> -
>
> 4. Started both Geronimo A and B
>
> 5. Ran the following commands in Geronimo_A_Path\bin
> deploy --user system --password manager start
> org.apache.geronimo.configs/farming/2.1.4/car
> deploy --user system --password manager --port 1109 start
> org.apache.geronimo.configs/farming/2.1.4/car
>
> 6. Deployed one sample hello2.war in Geronimo_A_Path\bin
>
> deploy --user system --password manager deploy --targets
> org.apache.geronimo.configs/farming/2.1.4/car?ServiceModule=org.apache.geronimo.configs/farming/2.1.4/car,j2eeType=ConfigurationStore,name=MasterConfigurationStore
> %PATH_SAMPLE%\hello2.war
>
> Getting errors in command prompt:
>
> 
> Error: Unable to deploy hello2.war: java.io.IOException: See nested
>
> See nested
>
> Configuration already exists:
> org.geronimo.samples/hello_G_SLAVE/2.1.1.2/car
> -
>

It might be a bug. The module name on the slave node for hello2.war should
be org.geronimo.samples/hello2_G_SLAVE/2.1.1.2/car.

Could you try the scenario that your second web application name is
SecondHello.war, and see what happens?

>
> I have checked in the app server dir and new dir
> %Location%\NODE_A\cluster-repository\org\geronimo is created now but its an
> empty one.
>
> Geronimo_A Log output:
>
> 2009-11-09 16:05:46,875 ERROR [RepositoryConfigurationStore]
> %Location%\NODE_A\cluster-repository\org\geronimo\samples\hello_G_SLAVE\2.1.1.2\hello_G_SLAVE-2.1.1.2.car
> is not an empty directory
> 2009-11-09 16:05:47,171 ERROR [Deployer] Deployment failed due to
> java.io.IOException: See nested
> at
> org.apache.geronimo.farm.deployment.BasicClusterConfigurationStoreClient.install(BasicClusterConfigurationStoreClient.java:122)
> at
> org.apache.geronimo.farm.deployment.BasicClusterConfigurationStoreClient.install(BasicClusterConfigurationStoreClient.java:78)
> at
> org.apache.geronimo.farm.deployment.MasterConfigurationStore.install(MasterConfigurationStore.java:128)
>
>
> Thanks and Regards
> Amit
>


Re: System Derby Database question

2010-06-18 Thread chi runhua
Updated for both 2.1 and 2.2 doc.

See:
[1].
https://cwiki.apache.org/GMOxDOC21/configuring-databases-in-geronimo.html
[2].
https://cwiki.apache.org/GMOxDOC22/configuring-databases-in-geronimo.html

Jeff

On Fri, Jun 18, 2010 at 10:18 AM, chi runhua  wrote:

> I'll doc this and post here the linkage.
> Thank you all!
>
> Jeff
>
> On Jun 18, 2010 4:00 AM, "Tim McConnell"  wrote:
>
> Thanks Kevan, this works beautifully -- both relative and explicit
> locations !!
>
>
>
> On 6/17/2010 3:29 PM, Kevan Miller wrote:
> >
> >
> > On Jun 17, 2010, at 2:40 PM, Tim McConnell wrote:
> ...
> --
> Thanks,
> Tim McConnell
>
>


Re: System Derby Database question

2010-06-17 Thread chi runhua
I'll doc this and post here the linkage.
Thank you all!

Jeff

On Jun 18, 2010 4:00 AM, "Tim McConnell"  wrote:

Thanks Kevan, this works beautifully -- both relative and explicit locations
!!



On 6/17/2010 3:29 PM, Kevan Miller wrote:
>
>
> On Jun 17, 2010, at 2:40 PM, Tim McConnell wrote:
...
-- 
Thanks,
Tim McConnell


Re: geronimo plan creater GUI gives error

2010-05-07 Thread chi runhua
What's your Geronimo version? The structure of your application? It could be
more helpful if you can attach a sample application.

Jeff


On Fri, May 7, 2010 at 2:37 PM, Tapas Mishra  wrote:

> I am using geronimo plan creator to deploy a new grails application to
> geronimo.
> After I upload the war file I get the following error.
>
>
> HTTP ERROR 500
>
> Problem accessing
>
> /console/portal/Applications/Plan%20Creator/__ac0x3plan-creator0x2PlanCreator!-1613367423|0.
> Reason:
>
>Server Error
>
> Caused by:
>
> java.lang.NullPointerException
>at
> org.apache.geronimo.console.configcreator.GetArchiveHandler.actionAfterView(GetArchiveHandler.java:69)
>at
> org.apache.geronimo.console.MultiPagePortlet.processAction(MultiPagePortlet.java:114)
>at
> org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218)
>at
> org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:145)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>at
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530)
>at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:426)
>at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:118)
>at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:495)
>at
> org.apache.geronimo.jetty7.handler.JaccSecurityHandler.handle(JaccSecurityHandler.java:89)
>at
> org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:179)
>at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930)
>at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:361)
>at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
>at
> org.apache.geronimo.jetty7.handler.GeronimoWebAppContext.doScope(GeronimoWebAppContext.java:107)
>at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:116)
>at org.eclipse.jetty.server.Dispatcher.include(Dispatcher.java:189)
>at
> org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167)
>at
> org.apache.pluto.core.DefaultPortletInvokerService.action(DefaultPortletInvokerService.java:85)
>at
> org.apache.pluto.core.PortletContainerImpl.doAction(PortletContainerImpl.java:217)
>at
> org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:121)
>at
> org.apache.pluto.driver.PortalDriverServlet.doPost(PortalDriverServlet.java:167)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>at
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530)
>at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1211)
>at
> org.apache.geronimo.console.filter.PlutoURLRebuildFilter.doFilter(PlutoURLRebuildFilter.java:48)
>at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1182)
>at
> org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(XSSXSRFFilter.java:130)
>at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1182)
>at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:424)
>at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:118)
>at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:447)
>at
> org.apache.geronimo.jetty7.handler.JaccSecurityHandler.handle(JaccSecurityHandler.java:89)
>at
> org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:179)
>at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930)
>at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:361)
>at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
>at
> org.apache.geronimo.jetty7.handler.GeronimoWebAppContext.doScope(GeronimoWebAppContext.java:107)
>at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:116)
>at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:243)
>at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
>at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:112)
>at org.eclipse.jetty.server.Server.handle(Server.java:337)
>at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:552)
>at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:993)
>at org.eclipse.je

Re: how in the world do you get the org.apache.geronimo.system.sharedlib.SharedLib to work?

2010-05-06 Thread chi runhua
Complete the deployment plan with reference to ServerInfo as followed,
then try again.


*classesDirs attribute is used for shared files while *

* var/shared/lib  *

*   shall be used if you are using shared libraries(jar files).*


Hope this helps.


Jeff


>
> 
>
>  http://geronimo.apache.org/xml/ns/j2ee/application-2.0"*
>
> xmlns:client=*"
> http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0"*
>
> xmlns:conn=*"http://geronimo.apache.org/xml/ns/j2ee/connector-1.2"*
>
> xmlns:dep=*"http://geronimo.apache.org/xml/ns/deployment-1.2"*
>
> xmlns:ejb=*"http://openejb.apache.org/xml/ns/openejb-jar-2.2"*
>
> xmlns:log=*"http://geronimo.apache.org/xml/ns/loginconfig-2.0"*
>
> xmlns:name=*"http://geronimo.apache.org/xml/ns/naming-1.2"*
>
> xmlns:pers=*"http://java.sun.com/xml/ns/persistence"*
>
> xmlns:pkgen=*"http://openejb.apache.org/xml/ns/pkgen-2.1"*
>
> xmlns:sec=*"http://geronimo.apache.org/xml/ns/security-2.0"*
>
> xmlns:web=*"http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"*
>
> application-name=*"MyAppEAR"*>
>
> 
>
> 
>
> MyGroup
>
> *MyApp*
>
> 1.4
>
> ear
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> MyAppWeb.war
>
> 
>
> 
>
> 
>
> MyGroup
>
> MyAppWeb
>
> 2.4
>
> war
>
> 
>
> 
>
> /MyAppWeb
>
>  "org.apache.geronimo.system.sharedlib.SharedLib"* name=*"mylib"*>
>
>  >c:/mypropertiesdir,c:/myxmldir
> 
>
 

 ServerInfo

  

> 
>
> 
>
> 
>
>
>
> 
>
>
>
> *
> *
>


Re: [GEP] Source path lookup for web module's depending libraries.

2010-04-22 Thread chi runhua
Tianchen,

You may file a JIRA for the request and attach the patch on it for review.

thanks for your contribution.

Jeff C


On Fri, Apr 23, 2010 at 7:42 AM, Tianchen Jiang wrote:

> I was able to spend some time and create a plugin to fix this sourcepath
> lookup issue. Attached is the archive of my plugin. After it is installed in
> your eclipse, eclipse should be able to automatically locate the source path
> attached to jars. And this applies to the jars in Maven dependencies.
>
> You can also get the latest version on the update site:
> https://spleg.svn.sourceforge.net/svnroot/spleg/update
>
> Let me know if you have issues in using this plugin. Please also drop me a
> note if you find it useful. :)
>
> Thanks,
> Kenneth
>
> On Mon, Apr 19, 2010 at 8:34 AM, Tianchen Jiang 
> wrote:
>
>> Hi Geronimo dev-tool team,
>>
>> When I was developing a web module using Geronimo Eclipse Plugin, I was
>> unable to have Eclipse to load the source code for the libraries that my web
>> module depends on. To outline the steps to reproduce my problem:
>> 1. Create a Dynamic Web Project in Eclipse
>> 2. Enable Maven by click "Maven" -> "Enable Dependency Management"
>> 3. Add a library (dependency in Maven) to my web project, for example,
>> Freemarker, using Maven plugin
>> 4. Attach source code by clicking "Maven" -> "Download Sources"
>> 5. Launch a Geronimo server to debug my web project
>> 6. Add a break point in one of Freemarker's class.
>> 7. When the breakpoint is hit, Eclipse will complain that Freemarker
>> source code is not found.
>>
>> When I digged deeper, I found out that my problem seems to be relatd with
>> the way how the class
>> "org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoSourcePathComputerDelegate.java"
>> is implemented. Below is a code snippet from its method
>> "computeSourceContainers"
>> ...
>>  // populate list of java projects and their source
>> folders
>> processModules(modules, javaProjectList, server, monitor);
>>
>>// create a ProjectRuntime classpath entry for each
>> JavaProject
>> IRuntimeClasspathEntry[] projectEntries = new
>> IRuntimeClasspathEntry[javaProjectList.size()];
>> for (int i = 0; i < javaProjectList.size(); i++) {
>> projectEntries[i] =
>> JavaRuntime.newProjectRuntimeClasspathEntry((IJavaProject)
>> javaProjectList.get(i));
>> }
>> ...
>> IRuntimeClasspathEntry[] resolved =
>> JavaRuntime.resolveSourceLoo
>> kupPath(entries, configuration);
>> ISourceContainer[] defaultContainers =
>> JavaRuntime.getSourceCont
>> ainers(resolved);
>> ...
>>
>> It seems to make Eclipse add only the web project to sourcepath lookup,
>> rather than the libraries it depends on.
>>
>> I feel it is a useful feature to make source code of all depending
>> libraries available to Eclipse when debugging, and it seems to be a very
>> intuitive way to integrate with Maven.
>>
>> Did I miss anything here? Please let me what your solution was.
>>
>> Thanks,
>> Kenneth
>>
>
>


Re: How to configure ActiveMQ (persistence, flow control etc.)

2010-04-07 Thread chi runhua
On Thu, Apr 8, 2010 at 3:26 AM, easyl  wrote:

>
> that helps me really really a lot!!! thanks!!!
>
> but, Why can't I find such information on Geronimo doc?
> --


Thanks for bringing this into our attention.

Generally, we would suggest users to configure embedded artifacts via the
GUI console,  therefore you can only find relevant informations like [1]
instead of specified APIs and the exact ways to override the default
configurations. We also collect informations from Q&A on mailing-list and
put them into the documents constantly.

We learned the documents should be improved to provide
more sophisticated usages and tunning methods. And we would love users to
ask more questions about how to use Geronimo and in return we could enrich
the documents. We also welcome more people to contribute to the document
directly sharing their experiences and thoughts by signing up as a
contributor. If you are interested in this, I can show you how to become a
contributor.

As for the improvements in G2.2, you may find the brief summary at [2].

I'll append the GBean configuration of ActiveMQ that Kevan mentioned into
[1] within days.

[1]. http://cwiki.apache.org/GMOxDOC21/configuring-the-jms-server.html

[2]. http://cwiki.apache.org/GMOxDOC22/new-features-and-enhancements.html

Any comments, we'd love to know.

Jeff C


Re: when using an application client to consume a secure ejb, who perform the authentication?

2010-04-06 Thread chi runhua
Assume we want use properties files realm for user auditing. On Geronimo
server, deploy a module as followed:

http://geronimo.apache.org/xml/ns/deployment-1.2";>


console.realm
test-realm
1.0
car



org.apache.geronimo.framework
j2ee-security
car



http://geronimo.apache.org/xml/ns/deployment-1.2"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>
test-realm

ServerInfo


http://geronimo.apache.org/xml/ns/loginconfig-2.0";>


 test-realm
<
log:login-module-class>org.apache.geronimo.security.realm.providers.PropertiesFileLoginModule
var/security/demo_users.properties
var/security/demo_groups.properties







Then deploy a client-side-realm for application client to authenticate with
OpenEJB container as followed:

http://geronimo.apache.org/xml/ns/deployment-1.2";>


console.realm
remote-openejb-realm
1.0
car



org.apache.geronimo.framework
j2ee-security
car

 
   org.apache.geronimo.modules
   geronimo-openejb
   jar



http://geronimo.apache.org/xml/ns/deployment-1.2"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>
remote-openejb-realm

ServerInfo


http://geronimo.apache.org/xml/ns/loginconfig-2.0";>


 remote-openejb-realm

org.apache.geronimo.openejb.OpenejbRemoteLoginModule
 test-realm
ejbd://localhost:4201






In your geronimo-application-client.xml, specify the client-side-realm
module as its dependency and realm name. Aslo you need to profide your
 as David J mentioned earlier. See the snippet as
followed:



http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0";
  xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2";
  xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2";
  xmlns:security="http://geronimo.apache.org/xml/ns/security-2.0";
  xmlns:connector="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>

 
  
  org.apache.geronimo.samples
  Myclient
  2.2.0
  jar
  
  
  
console.realm
remote-openejb-realm
1.0
car
  

 

  
   
   org.apache.geronimo.samples
   MyServer
   2.2.0
   jar
   
   
  
console.realm
remote-openejb-realm
1.0
car
  

  

  remote-openejb-realm
  org.apache.geronimo.samples.Myclient.appClient.
MyCallbackHandler


Hope this helpls.

Jeff C


On Tue, Apr 6, 2010 at 11:16 PM, Sarah.kho  wrote:

>
> Hi,
>
> I studied the page but it does not have the name of the deployment
> descriptor which I should include those sample code inside it. should I
> include them inside the geronimo-application-client.xml?
>
> it also says that the realm should also be specified at the server side. i
> think it means in the openejb-jar.xml. can you give me the sample snippet
> for that one as well?
>
> thanks
> --
> View this message in context:
> http://n3.nabble.com/when-using-an-application-client-to-consume-a-secure-ejb-who-perform-the-authentication-tp699700p700639.html
> Sent from the Users mailing list archive at Nabble.com.
>


Re: when using an application client to consume a secure ejb, who perform the authentication?

2010-04-06 Thread chi runhua
See this page for reference.

http://cwiki.apache.org/GMOxDOC22/configuring-javaee-app-client-security.html

Jeff
C

On Tue, Apr 6, 2010 at 3:49 PM, Sarah.kho  wrote:

>
> hi,
>
> can you please let me know when we use an application client and a secure
> ejb, which container perform authentication?
>
> thank you.
> --
> View this message in context:
> http://n3.nabble.com/when-using-an-application-client-to-consume-a-secure-ejb-who-perform-the-authentication-tp699700p699700.html
> Sent from the Users mailing list archive at Nabble.com.
>


Re: how to add authentication to a web application?

2010-04-01 Thread chi runhua
Add the realm module as a dependency in your geronimo-application.xml like:
 ...

  

console.realm
derby_security_realm
1.0
car
  
...

   ...

Hope this helps.

Jeff

On Fri, Apr 2, 2010 at 4:30 AM, Sarah.kho  wrote:

>
> Thank you Chi.
>
> Can you please let me know how we can determine one security realm for all
> modules included in the ear file?
>
> i know that it has something to do with the geronimo-application.xml but no
> more details.
>
> thanks.
> --
> View this message in context:
> http://n3.nabble.com/how-to-add-authentication-to-a-web-application-tp681613p691598.html
> Sent from the Users mailing list archive at Nabble.com.
>


Re: how to add authentication to a web application?

2010-03-28 Thread chi runhua
See if this doc[1] could do any help.

[1]  http://cwiki.apache.org/GMOxDOC22/database-sql-realm.html

Jeff

On Sun, Mar 28, 2010 at 11:45 PM, Sarah.kho  wrote:

>
> Hi,
>
> I want to add authentication and access control to my web application.
> so far, I know that i should add which roles can access which resource
> collection in the web.xml. after this step, I do not know how to do the
> rest
> in geronimo. I know that the following steps are required, but i do not
> know
> how to do some of them.
>
> - in geronimo-web.xml add the role mappings (i know how to do this)
> - a security realm like an SQL o file realm should be defined and used (I
> do
> not know how to do this step).
>
>
> Thanks.
> --
> View this message in context:
> http://n3.nabble.com/how-to-add-authentication-to-a-web-application-tp681613p681613.html
> Sent from the Users mailing list archive at Nabble.com.
>


Re: ERROR [AbstractEncryption] Unable to decrypt

2010-03-15 Thread chi runhua
Try *which java *to see what the actual JAVA executable is in you system.

If you want to put JAVA_HOME in your PATH variables, you might need to run
the following to override the one already in your PATH:

export PATH=$JAVA_HOME/bin:$PATH

See if this helps.

Anything else, just let us know.

Jeff



On Sun, Mar 14, 2010 at 5:57 AM, Kevan Miller wrote:

>
> On Mar 13, 2010, at 10:05 AM, curious4 wrote:
>
> >
> > Hi,
> >
> > I have a problem when starting Geromino in Ubuntu Linux with the command:
> > bash start-server
> > I'm getting a series of error messages of which the first is:
> > ERROR [AbstractEncryption] Unable to decrypt
> >
> > java.io.EOFException
> >
> > However, despite the error messages, Geromino is able to start and I do
> get
> > the web page in http://localhost:8080/
> >
> > I did set up in my home directory .bashrc and .bash_profile these lines:
> > export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
> >
> > export PATH=$PATH:$JAVA_HOME/bin
> >
> > when I shutdown I see this:
> > Using JRE_HOME:/usr/lib/jvm/java-6-openjdk/jre
> > (compare it to how I set JAVA_HOME).
> >
> > What can be the problem? How can I fix it?
>
> Hmm. Sounds like a problem with your JAVA_HOME setting. You shouldn't need
> to update your PATH...
>
> You don't mention geronimo version, ubuntu level, or openjdk level.
>
> Geronimo 2.1.4 and 2.2 start fine for me with the following:
>
> JAVA_HOME=/usr/lib/jvm/java-6-openjdk/ ./start-server
>
> In var/log/geronimo.log, information similar to the following will be
> logged during startup:
>
> 2010-03-13 05:00:30,504 INFO  [Log4jService] Started Logging Service
> 2010-03-13 05:00:30,504 INFO  [Log4jService] Runtime Information:
> 2010-03-13 05:00:30,505 INFO  [Log4jService]   Install Directory =
> /home/kevan/geronimo-tomcat6-javaee5-2.1.4
> 2010-03-13 05:00:30,506 INFO  [JvmVendor] Sun JVM 1.6.0_0
> 2010-03-13 05:00:30,506 INFO  [Log4jService]   JVM in use = Sun JVM 1.6.0_0
> 2010-03-13 05:00:30,506 INFO  [Log4jService] Java Information:
> 2010-03-13 05:00:30,506 INFO  [Log4jService]   System property [
> java.runtime.name]  = OpenJDK Runtime Environment
> 2010-03-13 05:00:30,506 INFO  [Log4jService]   System property
> [java.runtime.version]  = 1.6.0_0-b14
> 2010-03-13 05:00:30,506 INFO  [Log4jService]   System property [os.name]
>   = Linux
> 2010-03-13 05:00:30,506 INFO  [Log4jService]   System property [os.version]
>  = 2.6.28-18-generic
> 2010-03-13 05:00:30,506 INFO  [Log4jService]   System property
> [sun.os.patch.level]  = unknown
> 2010-03-13 05:00:30,506 INFO  [Log4jService]   System property [os.arch]
>   = i386
> 2010-03-13 05:00:30,506 INFO  [Log4jService]   System property
> [java.class.version]  = 50.0
> 2010-03-13 05:00:30,506 INFO  [Log4jService]   System property [locale]
>  = en_US
> 2010-03-13 05:00:30,506 INFO  [Log4jService]   System property
> [unicode.encoding]= UnicodeLittle
> 2010-03-13 05:00:30,506 INFO  [Log4jService]   System property
> [file.encoding]   = UTF-8
> 2010-03-13 05:00:30,507 INFO  [Log4jService]   System property [
> java.vm.name]= OpenJDK Client VM
> 2010-03-13 05:00:30,507 INFO  [Log4jService]   System property
> [java.vm.vendor]  = Sun Microsystems Inc.
> 2010-03-13 05:00:30,507 INFO  [Log4jService]   System property
> [java.vm.version] = 14.0-b08
> 2010-03-13 05:00:30,507 INFO  [Log4jService]   System property [
> java.vm.info]= mixed mode
> 2010-03-13 05:00:30,507 INFO  [Log4jService]   System property [java.home]
>   = /usr/lib/jvm/java-6-openjdk/jre
> 2010-03-13 05:00:30,507 INFO  [Log4jService]   System property
> [java.classpath]  = null
> 2010-03-13 05:00:30,507 INFO  [Log4jService]   System property
> [java.library.path]   = /usr/lib/jvm/java-6-openjdk/jre/lib/i386/\
>
> client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/us\
> r/lib
> 2010-03-13 05:00:30,507 INFO  [Log4jService]   System property
> [java.endorsed.dirs]  = /home/kevan/geronimo-tomcat6-javaee5-2.1.\
> 4/lib/endorsed:/usr/lib/jvm/java-6-openjdk/jre/lib/endorsed
> 2010-03-13 05:00:30,507 INFO  [Log4jService]   System property
> [java.ext.dirs]   = /home/kevan/geronimo-tomcat6-javaee5-2.1.\
>
> 4/lib/ext:/usr/lib/jvm/java-6-openjdk/jre/lib/ext:/usr/java/packages/lib/ext
> 2010-03-13 05:00:30,507 INFO  [Log4jService]   System property
> [sun.boot.class.path] = /home/kevan/geronimo-tomcat6-javaee5-2.1.\
>
> 4/lib/endorsed/yoko-spec-corba-1.0.jar:/home/kevan/geronimo-tomcat6-javaee5-2.1.4/lib/endorsed/yoko-rmi-spec-1.0.jar:/usr/lib/jv\
>
> m/java-6-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/sunrsasign\
>
> .jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-6-openjdk/jre/li\
>
> b/charsets.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar:/usr/lib/jvm/java-6-openjdk/jre/classes
>

Re: How to configure a FARM in Geronimo

2010-02-11 Thread chi runhua
See if this page could do any help.

http://cwiki.apache.org/GMOxDOC22/farming-using-deployment.html

Any questions,please let us know.

Jeff Chi


> On Fri, Feb 5, 2010 at 5:29 PM, zeros wrote:
>
>>
>> Good morning:
>>
>>I'm trying to configure a farm to deploy an EAR in two servers. I'm
>> following the instructions given in the documentation but something is
>> missing. First of all my configuration is the next one.
>>
>> GERONIMO1/config.xml
>>
>> 
>>
>>${ClusterNodeName}
>>
>>
>>${FarmName}
>>
>>>
>> name="org.apache.geronimo.configs/farming/2.2/car?ServiceModule=org.apache.geronimo.configs/farming/2.2/car,j2eeType=NodeInfo,name=NODE2"
>> gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
>>NODE2
>>>
>> propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor"
>> name="extendedJMXConnectorInfo">
>>> class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo"
>> xmlns="" xmlns:ns29="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns="http://geronimo.apache.org/xml/ns/deployment/javabean-1.0";
>> xmlns:ns25="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns26="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns27="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns28="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns21="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns22="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns23="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns24="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns20="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns40="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns16="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns17="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns14="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns15="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns38="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns39="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns36="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns18="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns37="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns19="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns9="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns34="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns35="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns32="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns33="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns5="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns12="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns30="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns6="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns13="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns31="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns7="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns10="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns8="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns11="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns4="http://geronimo.apache.org/xml/ns/attributes-1.2";>
>>system
>>manager
>>rmi
>>192.168.30.11
>>1099
>>JMXConnector
>>false
>>
>>
>>
>>
>>
>>
>> GERONIMO2/config.xml
>>
>> 
>>
>>${ClusterNodeName}
>>
>>
>>${FarmName}
>>
>>>
>> name="org.apache.geronimo.configs/farming/2.2/car?ServiceModule=org.apache.geronimo.configs/farming/2.2/car,j2eeType=NodeInfo,name=NODE1"
>> gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
>>NODE1
>>>
>> propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor"
>> name="extendedJMXConnectorInfo">
>>> class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo"
>> xmlns="" xmlns:ns29="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns="http://geronimo.apache.org/xml/ns/deployment/javabean-1.0";
>> xmlns:ns25="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns26="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns27="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns28="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns21="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns22="http://geronimo.apache.org/xml/ns/attributes-1.2";
>> xmlns:ns23="http://geronimo.

Re: How to configure Single Sign On for G 2.2 with Tomcat

2010-01-28 Thread chi runhua
I've filed a JIRA to track this problem.

https://issues.apache.org/jira/browse/GERONIMO-5052


Jeff C

On Fri, Jan 22, 2010 at 11:03 AM, Ivan  wrote:

> I am afraid that Geronimo 2.2 might not support the SSO function provided
> by Tomcat, as all the authentication work has been taken over by Geronimo.
> Maybe you could try some other solutions, like CAS, etc, personally, it is
> stronger.
>
> 2010/1/21 boes 
>
>
>> Hi,
>>
>> I'm trying to configure Single Sign On (SSO) in Geronimo 2.2 with Tomcat,
>> but I can't get it to work. In Geronimo 2.1.4 the SSO configuration is
>> done
>> by adding a gbean in config.xml and I had no problem to make that work.
>>
>> In the documentation for 2.2 I found that SSO configuration is similar as
>> for 2.1.4, as explained in
>>
>> http://cwiki.apache.org/GMOxDOC22/managing-valve.html#ManagingValve-AddasecondValve
>>
>> But copying the example from the documentation into config.xml results in
>> a
>> failure at startup. The following error message is printed in geronimo.out
>> :
>> ERROR [GBeanInstanceState] Error while starting; GBean is now in the
>> FAILED
>> state:
>>
>> abstractName="org.apache.geronimo.configs/tomcat6/2.2/car?configurationName=org.apache.geronimo.configs/tomcat6/2.2/car"
>> org.apache.geronimo.kernel.config.InvalidConfigException: New GBeans must
>> be
>> specified with a GBeanInfo and a full AbstractName
>> configuration=org.apache.geronimo.configs/tomcat6/2.2/car
>> gbeanName=AccessLogValve
>>
>> In the release notes at
>> http://www.apache.org/dist/geronimo/2.2/RELEASE_NOTES-2.2.txt I found
>> that:
>> "The Tomcat server is now configured through native server.xml
>> configuration
>> files rather than gbeans." So I tried to enable SSO by uncommenting the
>> following entry:
>> 
>>
>> But that didn't make any difference. The SSO doesn't work.
>>
>> What is the preferred method of configuring Tomcat, gbean or server.xml?
>> Did
>> someone manage to configure SSO for G 2.2 and Tomcat? How did you do it?
>> Any
>> suggestions?
>>
>> Thanks for any help,
>> Boes
>>
>> --
>> View this message in context:
>> http://old.nabble.com/How-to-configure-Single-Sign-On-for-G-2.2-with-Tomcat-tp27259739s134p27259739.html
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Ivan
>


Re: How could I access webservice by certificate?

2010-01-26 Thread chi runhua
Thanks Ivan for the reply.  I've incorporated the solution to G2.2 doc as
followed.

http://cwiki.apache.org/GMOxDOC22/web-services-issues.html#WebServicesissues-AccessingWebServicebycertificateusingWebServiceclient

To Stevens,  could you please let us know if the solution works and we are
happy to have your feedback.


Jeff C

On Wed, Jan 27, 2010 at 11:13 AM, Ivan  wrote:

> For the webservice client, while using client-cert, you might need to ask
> the server to add your cert to his trusted key store. In the meanwhile, you
> need to get the server's cert, add it to your local key store ( Geronim
> admin should be able help to do it ).
> IIRC, you might need to set some options below before starting the server.
> set GERONIMO_OPTS=-Djavax.net.ssl.trustStore=YOUR_CLIENT_TRUSTED_KEY_STORE
> -Djavax.net.ssl.trustStorePassword=YOUR_CLIENT_TRUSTED_KEY_STORE_PASSWORD
> -Djavax.net.ssl.keyStore=YOUR_CLIENT_KEY_STORE
> -Djavax.net.ssl.keyStorePassword=YOUR_CLIENT_KEY_STORE_PASSWORD
> Then, you should be able to access the remote webservice as usual.
> Wish it helps !
>
> 2010/1/26 chi runhua 
>
> There is a page about this topic for G2.2. Not sure if it helps.
>>
>> http://cwiki.apache.org/GMOxDOC22/securing-web-service.html
>>
>> Jeff C
>>
>> On Tue, Jan 26, 2010 at 6:16 PM, stevens_wu  wrote:
>>
>>>
>>> I have configured geronimo-jetty6 2.1 for using axis2 webservice through
>>> these steps:
>>> 1.Download axis2.war.
>>> 2.Write deployment plan.
>>> 3.Deploy axis2 in console.
>>> 4.Now I can upload webservice in url http://localhost:8080/axis2.
>>> 5.Webservice test ok.
>>> This is my deployment plan.
>>> http://geronimo.apache.org/xml/ns/j2ee/web-1.1";>
>>>>> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>
>>>
>>>axis2group
>>>axis2
>>>1.0
>>>war
>>>
>>>
>>>org.apache.commons
>>>org.jdom
>>>org.apache.axis2
>>>org.apache.axiom
>>>
>>>
>>>/MyProxyService
>>> 
>>> Now I must connect to an existing webservice that requires client
>>> certificate authentication for meeting my client's requirements.How could
>>> I
>>> do?I have configured keystore exactly. Thanks!
>>> --
>>> View this message in context:
>>> http://old.nabble.com/How-could-I-access-webservice-by-certificate--tp27320444s134p27320444.html
>>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>
>
> --
> Ivan
>


Re: How could I access webservice by certificate?

2010-01-26 Thread chi runhua
There is a page about this topic for G2.2. Not sure if it helps.

http://cwiki.apache.org/GMOxDOC22/securing-web-service.html

Jeff C

On Tue, Jan 26, 2010 at 6:16 PM, stevens_wu  wrote:

>
> I have configured geronimo-jetty6 2.1 for using axis2 webservice through
> these steps:
> 1.Download axis2.war.
> 2.Write deployment plan.
> 3.Deploy axis2 in console.
> 4.Now I can upload webservice in url http://localhost:8080/axis2.
> 5.Webservice test ok.
> This is my deployment plan.
> http://geronimo.apache.org/xml/ns/j2ee/web-1.1";>
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>
>
>axis2group
>axis2
>1.0
>war
>
>
>org.apache.commons
>org.jdom
>org.apache.axis2
>org.apache.axiom
>
>
>/MyProxyService
> 
> Now I must connect to an existing webservice that requires client
> certificate authentication for meeting my client's requirements.How could I
> do?I have configured keystore exactly. Thanks!
> --
> View this message in context:
> http://old.nabble.com/How-could-I-access-webservice-by-certificate--tp27320444s134p27320444.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Can not login to geronimo 2.2 console

2010-01-25 Thread chi runhua
Hi, I just tried a clean installation of g2.2-tomcat6 on my Ubuntu with IBM
JDK 1.6, and then changed PortOffset into 10.

After the server is started, I can log in with system/manager via
http://locahost:8090/ successfully.

Can you show us the environment you are using or maybe take a clean
installation and see if the problem still exists?

Jeff C

On Tue, Jan 26, 2010 at 2:55 AM, rbaumhof  wrote:

>
> Hi,
>
> after 2 years of experience with Geronimo application server, i decided to
> evaluate the actual version 2.2 for our project. After installation the
> server starts up with setting PortOffset=10 in
> config-substitutions.properties. Trying the well known url
> localhost:8090/console succeds, but there is no possibility to log in, At
> the upper rigth side only the Log out link is displayed. At the left handed
> side where the menu usuallay is placed only the welchome link is shown (see
> picture).
>
> In the log i find:
> 2010-01-25 19:41:58,859 INFO  [Runtime] Starting OpenJPA 1.2.1
> 2010-01-25 19:41:58,968 INFO  [JDBC] Using dictionary class
> "org.apache.openjpa.jdbc.sql.DerbyDictionary".
> 2010-01-25 19:42:04,093 INFO  [StartupUtil] DWR Version 3.0.M1 starting.
> 2010-01-25 19:42:04,093 INFO  [StartupUtil] - Servlet Engine: Apache
> Geronimo (Embedded Tomcat/6.0.20.0)
> 2010-01-25 19:42:04,093 INFO  [StartupUtil] - Java Version:   1.6.0_14
> 2010-01-25 19:42:04,093 INFO  [StartupUtil] - Java Vendor:Sun
> Microsystems Inc.
> 2010-01-25 19:42:04,656 INFO  [DefaultConverterManager] Probably not an
> issue: org.jdom.Document is not available so the jdom converter will not
> load. This is only an problem if you wanted to use it.
> 2010-01-25 19:42:04,656 INFO  [DefaultConverterManager] Probably not an
> issue: org.jdom.Element is not available so the jdom converter will not
> load. This is only an problem if you wanted to use it.
> 2010-01-25 19:42:04,703 INFO  [AnnotationsConfigurator] Adding class
> org.apache.geronimo.console.ejbserver.EjbHelper as EjbHelper
> 2010-01-25 19:42:36,953 INFO  [ExpressionEvaluatorProxy] Attempting to
> utilize expression evaluator proxy
> 'org.apache.pluto.tags.el.JSP21ExpressionEvaluatorProxy'
> 2010-01-25 19:42:36,953 INFO  [ExpressionEvaluatorProxy]
> ExpressionEvaluator
> Proxy Found: org.apache.pluto.tags.el.JSP21ExpressionEvaluatorProxy
> 2010-01-25 19:42:37,125 INFO  [SupportedModesServiceImpl] Portlet mode
> 'edit' not found for portletId: '/console-base.Welcome!-1397214398|0'
> 2010-01-25 19:42:44,296 INFO  [SupportedModesServiceImpl] Portlet mode
> 'edit' not found for portletId: '/console-base.Welcome!-1397214398|0'
> 2010-01-25 19:42:47,421 INFO  [SupportedModesServiceImpl] Portlet mode
> 'edit' not found for portletId: '/console-base.Welcome!-1397214398|0'
>
>
> Any idea what happended to my installation??
>
> Thanks in advance for your help.
> http://old.nabble.com/file/p27311450/geronimo2.2console.jpg
> geronimo2.2console.jpg
> --
> View this message in context:
> http://old.nabble.com/Can-not-login-to-geronimo-2.2-console-tp27311450s134p27311450.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Geronimo/Jetty and CGI for a complete newbie

2010-01-08 Thread chi runhua
Looks like there is a JIRA about this issue already, but there is no patch
yet.

http://issues.apache.org/jira/browse/GERONIMO-4200


Jeff C



On Fri, Jan 8, 2010 at 6:35 PM, Michael Richter wrote:

> I'm wrestling with this right now and not getting much traction.  For
> reasons of legacy app support I'd like to get CGI support in my
> Geronimo/Jetty 2.2 setup running.  The documentation on getting CGI support
> up in Jetty is frustratingly vague to begin with, but I finally found some.
> Unfortunately it references a file that simply doesn't exist anywhere in my
> Geronimo setup (the creatively-named "jetty.xml" file) so I'm kind of stuck.
>
> Can anybody give me some pointers -- or if such pointers exist somewhere in
> the docs (but they don't appear to; I've Googled and clicked until my
> fingers were nubs on this) just pointing me to the URL -- on how to get this
> up and running?  Even if it's something as basic as "the file you want to
> modify is in " would be fine.  I'm not afraid to crack open a config
> file and experiment.  I just don't know where to do this experimentation
> right now.
>


Re: Geronimo 2.2 GEP [Resolution]

2010-01-07 Thread chi runhua
I am not sure if this sentence at [1] could explain the situation more
clearly.

If not, I can help with the doc by adding a new section in [2] to elaborate
the problem you encountered.

[1]
http://cwiki.apache.org/GMOxDOC22/installing-geronimo-eclipse-plugin.html#InstallingGeronimoEclipsePlugin-UninstallingGEP
[2]  http://cwiki.apache.org/GMOxDOC22/development-issues.html

Jeff C

On Thu, Jan 7, 2010 at 10:49 PM, Russell Collins <
russell.coll...@mclaneat.com> wrote:

>  Thank you for the clarification.  I was not aware that it was recommend
> to install on a clean Eclipse.  Is this in the documentation?  If so, then I
> completely missed it and that is my fault.  If not, I think this should be
> clarified in the documentation as much as possible.  I could see more novice
> Eclipse/Geronimo users having problems with this.  Of course, I am speaking
> from my experience with my team members when I say this.  Thanks.
>
>
>
> *From:* Delos [mailto:dait...@gmail.com]
> *Sent:* Thursday, January 07, 2010 3:19 AM
>
> *To:* user@geronimo.apache.org
> *Subject:* Re: Geronimo 2.2 GEP [Resolution]
>
>
>
> In fact, the problem you find is due to the GEP upgrading issue. GEP never
> support upgrading.
>
> Each time a release comes out, we recommend user to install it with a clean
> eclipse. That means you can't install two versions of GEP in the same
> eclipse.
>
> Since WAS CE eclipse plugin is based on GEP, the truth above is also
> applied to WAS CE eclipse plugin. From your description, I guess you're
> using WASCE eclipse plugin based on GEP 2.1.4. Because you can't install
> both GEP 2.1.4 and 2.2 together, you failed to install GEP 2.2 into eclipse
> with WAS CE plugin installed.
>
> Hope it clarifies!
>
> BTW, if you have any good idea to enable GEP upgrading, you're welcome to
> raise a discussion in the dev mailing list.
>
> Thanks!
>
> 2010/1/6 Russell Collins 
>
> Thank you for your help.  Here is how the problem was solved and I hope
> this helps someone in a similar situation.
>
>
>
> 1.The first thing I did was upgrade from Eclipse Ganymede to Galileo.
> When I did this, the 2.1.x GEP did not install.
>
> 2.I found that some people were getting around this issue by
> installing the WASCE plug-in.  This worked.  I was able to use Geronimo
> 2.1.4 as I was before on Eclipse Ganymede.
>
> 3.Geronimo 2.2 is released and the GEP tool is available (not
> released).  I try to install various versions of the software.  No success.
> The main error I keep getting is that the 2.2 adapter cannot be installed
> since the WASCE adapter is in there.
>
> 4.I try to install and remove every trace of WASCE.  No success.  I
> get the same error.
>
> 5.I get a fresh copy of Eclipse Galileo and it installs without a
> problem.
>
>
>
> Observations: WASCE does not uninstall cleanly.  GEP 2.2 does not know how
> to get around an installation that has/had WASCE installed.  I don’t know if
> this is something that is fixable on the Eclipse side or Apache side (or IBM
> side).  Bottom line, they do not play well together (probably more so WASCE
> takes control and does not let go) so be careful.
>
>
>
> *From:* Delos [mailto:dait...@gmail.com]
> *Sent:* Tuesday, January 05, 2010 7:54 PM
> *To:* user@geronimo.apache.org
> *Subject:* Re: Geronimo 2.2 GEP
>
>
>
> No need to install core feature with adapter 2.2. Just select adapter 2.2
> to install it.
>
> 2010/1/5 Russell Collins 
>
> Ok.  I switched up the site.  I try to get the Geronimo Core 2.1.1 and
> Geronimo Adapter 2.2.  I get the following error:
>
>
>
> Cannot complete the install because one or more required items could not be
> found.
>
>   Software being installed: Geronimo Core Feature 2.1.1
> (org.apache.geronimo.feature.feature.group 2.1.1)
>
>   Missing requirement: Geronimo Core Feature 2.1.1
> (org.apache.geronimo.feature.feature.group 2.1.1) requires
> 'org.eclipse.jst.feature.group [2.0.0,3.0.0)' but it could not be found
>
>
>
>
>
> I am using Eclipse Galileo.  I have tried updating with as many jst
> features as I can get on Eclipse through their update site.  How can I
> correct this error?  Do I need to install the core feature with adapter 2.2?
>
>
>
> *From:* Delos [mailto:dait...@gmail.com]
> *Sent:* Monday, January 04, 2010 7:46 PM
> *To:* user@geronimo.apache.org
> *Subject:* Re: Geronimo 2.2 GEP
>
>
>
> Hi Russell,
>
> I'm sorry to tell you that the package at
> http://people.apache.org/dist/geronimo/eclipse/unstable/updates is out of
> date.
>
> Due to authorization problem, I can't update the packages there. Currently,
> you can try the site here:
>
> http://people.apache.org/dist/geronimo/eclipse/2.2.0/RC1/staging_site/updates/
>
> 2010/1/5 Russell Collins 
>
> I am trying to install the Eclipse plug-in for Geronimo 2.2.  I am using
> this site:
>
>
>
> http://people.apache.org/dist/geronimo/eclipse/unstable/updates
>
>
>
> When it try to perform the update, I am getting this error:
>
>
>
> Cannot complete the install bec

Re: Welcome "Jack" Jun Jie Cai as a new committer

2010-01-04 Thread chi runhua
Congrats Jack!

Jeff


On Tue, Jan 5, 2010 at 1:52 AM, Jay D. McHugh  wrote:

> Congratulations Jack!
>
> Jay
>
> Ivan wrote:
> > I would like to welcome Jack aboard, as he recently accepted the
> > Geronimo PMC invitation to become a committer.  His account was just
> > created this morning (caijunj), so you should start seeing some commits
> > from him soon.
> >
> > --
> > Ivan
>


Re: deployement axis2 ws to G 2.1.4 failed - TribesClusterManager not found

2009-12-22 Thread chi runhua
Looks like you need to install org.apache.axis2.axis2-clustering.${version}.jar
into Geronimo repository. And then specify the dependency to this module in
the deployment plan as followed:


org.apache.axis2
axis2-clustering
${version}
jar



Hope this helps.

Jeff C


On Wed, Dec 23, 2009 at 3:06 AM, Radim Kolar  wrote:

>
> my WS fails to deploy:
>
> org.apache.axis2.deployment.DeploymentException: Clustering implementation
> class org.apache.axis2.clustering.tribes.TribesClusterManager not found
>
> Its probably related to this axis2 1.3 issue because G 2.1 is using axis2
> 1.3:
>
> https://issues.apache.org/jira/browse/AXIS2-3079
>
> anybody knows workaround or what jar i need to install into G repository?
>
> --
> View this message in context:
> http://old.nabble.com/deployement-axis2-ws-to-G-2.1.4-failed---TribesClusterManager-not-found-tp26891770s134p26891770.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: defining Context root

2009-12-01 Thread chi runhua
Hi, a geronimo deployment plan can help you with all these request. You can
define the Context-root and moduleId in the deployment plan, eventually you
war application will be installed into Geronimo repository, /repository
directory,  with the name convention that you specified for its moduleId.

A very short deployment plan is as followed.


http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1";>


org.apache.geronimo.samples
HelloWorldApp
2.2
war


/hello


For more information about deployment plan for a WAR application, you
may refer to

http://cwiki.apache.org/GMOxDOC22/geronimo-webxml.html

Hope this helpls.

Anything else, just let us know.

Jeff C



On Wed, Dec 2, 2009 at 9:30 AM, nileshnjoshi  wrote:

>
> Hi,
>
> I am using geronimo-tomcat6-javaee5-2.1.4. I need inputs on few things:
>
> 1.  I am not able to write correct context root. Details steps will
> help a
> lot.
> History: I have deployed a war file on apache-tomcat 6.0.20 and I access
> the
> application like:
> http://abc.test.com/MailApp
>
> Now I have switched to geronimo-tomcat6. I have deployed same war which
> works fine. However I want to change the context root. I want to access the
> application on URL below:
> http://abc.test.com/test/mail/
>
> Before creating a new war file, I have created a file called
> ‘geronimo-web.xml’ and placed in WEB-INF. However I observed that file is
> not available after deploying application.
>
> What all things I need to do to achieve above.
>
>
> 2.  I would like to define the directory where I can deploy new
> applications.
>
> When I deploy an application using GUI, it created directory structure like
> below:
>
>
> /opt/geronimo-tomcat6-javaee5-2.1.4/repository/default/MailApp/2258680823503/MailApp-2258680823503.war
>
> I want to get rid of MailApp/1258680823503 and number. I would like to have
> directory structure like:
> /opt/geronimo-tomcat6-javaee5-2.1.4/repository/default/MailApp.war
>
> I need this structure so that my scripts can deploy war file directly.
>
> 3.  Can geronimo-tomcat6 create directory for MailApp.war similar to
> tomcat?
>
>
> The help is really appreciated.
>
> Thanks and Regards,
> -Nilesh
>
> --
> View this message in context:
> http://old.nabble.com/defining-Context-root-tp26601435s134p26601435.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: ActiveMQ questions

2009-11-26 Thread chi runhua
Go to /var/activemq/conf directory and update activemq.xml
file according to your needs. You can have the same experiences as you can
do for a standalone ActiveMQ server.
If you need to update ActiveMQ default port in Geronimo, you may update the
value of ActiveMQPort in /var/config/config-substitutions.properties file.

Hope this helps.

Jeff C



On Tue, Nov 24, 2009 at 11:09 PM, easyl  wrote:

>
> I use geronimo 2.1.2.
> It seems that the only way to configurate embedded AMQ is through
> "ServerUrl".
>
> For example:
> 
> name="ServerUrl">tcp://localhost:61616?jms.copyMessageOnSend=false&jms.watchTopicAdvisories=false&socket.tcpNoDelay=true&wireFormat.tcpNoDelayEnabled=true
>
>
> Now I want to completely disable advisory message.
> See: http://activemq.apache.org/advisory-message.html
> The configuration is through XML config data.
>  ...
>
> How can I do that in geronimo?
> I try to follow the instructions from
> http://activemq.apache.org/resource-adapter-properties.html
>
> To add this in deploy plan...
>  name="BrokerXmlConfig">xbean:config.xml
>
> But geronimo can not handle xbean schema.
> ...did not start because Failed to startup an embedded broker:
> xbean:config.xml, due to: java.io.IOException: Could load xbean
> factory:java.lang.NoClassDefFoundError:
> org/springframework/beans/BeansException
>
>
>
>
>
> --
> View this message in context:
> http://old.nabble.com/ActiveMQ-questions-tp6326283s134p26497537.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: fetching deployed server instance value

2009-11-26 Thread chi runhua
See the implementation in Geronimo for reference.

https://svn.apache.org/repos/asf/geronimo/server/branches/2.2/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/WaitForServerCommand.groovy

Jeff C

On Mon, Nov 23, 2009 at 4:17 AM, anshukpal
wrote:

>
> I am deploying a web app on geronimo application server. I would like to
> know
> whether there are any specific apis from which would allow to fetch the
> specific application server instance value, the reason being the same
> application would be deployed on two different application server instances
> and the unique application server instance would be required to do some
> operations.
>
> Anshuk
>
> --
> View this message in context:
> http://old.nabble.com/fetching-deployed-server-instance-value-tp26467881s134p26467881.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Geronimo logging for connection pool events

2009-11-26 Thread chi runhua
You may refer to [1] to see whether it helps.

http://cwiki.apache.org/GMOxDOC22/configuring-application-specific-logging-with-log4j.html

Jeff C

On Thu, Nov 26, 2009 at 8:43 PM, andyhan  wrote:

>
> I have a database connection pool of type TranQL Generic JDBC Resource
> Adapter with oracle.jdbc.OracleDriver.
> We need to monitor all about connection life-cycle: when they were open and
> closed.
>
> How can I configure server-log4j.properties so that this information
> appears
> in log?
>
> This doesn't work:
> log4j.logger.oracle.jdbc.pool.OracleConnectionCacheManager=INFO
> log4j.logger.org.tranql.connector.jdbc.AbstractLocalDataSourceMCF=INFO
>
> log4j.logger.apache.geronimo.connector.outbound.MCFConnectionInterceptor=INFO
>
> If not configurable: Is there any possibility do it another way?
> --
> View this message in context:
> http://old.nabble.com/Geronimo-logging-for-connection-pool-events-tp26528939s134p26528939.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Remote Deployment: Connection Refused

2009-11-24 Thread chi runhua
If you want to deploy applications to B, then edit the value of
RemoteDeployHostname in config-subsitutions.properties file on B.

Then on A, use the deploy command like

./deploy.sh -host  -u system -p manager deploy 

BTW, Kevan opened a
JIRA(*GERONIMO-4959
*) for 2.1.4 Geronimo-Jetty assembly. You may want to try remote deploy on
Geronimo-Tomcat one.

Any questions, please let us know.

Jeff

On Wed, Nov 25, 2009 at 12:27 AM, MDiamond  wrote:

>
> On which machine should I change that information? A or B?
>
> I tried it on both in various combinations and still get the same error. As
> I understand it, I'm supposed to change it on B only, but, again, this
> results in the same error. Thoughts?
>
> P.S. If it matters, the relevant portion of my config.xml is (which I
> believe is the default):
> name="org.apache.geronimo.framework/geronimo-gbean-deployer/2.1.4/car">
>
> name="remoteDeployAddress">http://${RemoteDeployHostname}:${HTTPPort
> +PortOffset}
>
>
>
> --
> View this message in context:
> http://old.nabble.com/Remote-Deployment%3A-Connection-Refused-tp26421415s134p26498548.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Could not build Geronimo server from SVN branch 2.2

2009-11-10 Thread chi runhua
If you intend to build the 2.2 server, you may download the very .jar from
[1] and then place it in your local maven repository.

[1]
http://www.jarvana.com/jarvana/browse/com/envoisolutions/sxc/sxc-runtime/0.7.2/

This workaround can bypass the build error successfully.

Any problem, please let us know.

Jeff C


On Tue, Nov 10, 2009 at 9:42 PM, ericp56 wrote:

>
> It looks like the build process has the same problem:
>
>
> http://old.nabble.com/-BUILD--branches-2.2%3A-Failed-for-Revision%3A-834455-ts26283051s134.html
>
> http://old.nabble.com/-BUILD--branches-2.2%3A-Failed-for-Revision%3A-834455-ts26283051s134.html
>
> I've had problems in the past - mostly windows issues.
>
> I've had success building, using Maven 2.2.0 and Java JDK 6_0_14.
>
> I've been trying recently and I'm running into issues, too.  I see David
> Jencks making comments about build dependency issues.
>
> I'm guessing the Geronimo-Dev is a better forum for build issues?  I'll see
> you there...
>
> Eric
> --
> View this message in context:
> http://old.nabble.com/Could-not-build-Geronimo-server-from-SVN-branch-2.2-tp26273831s134p26283602.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Help me

2009-11-06 Thread chi runhua
I just update the page[1] in G2.2 doc to make it more clear for users when
they're trying to build a 2.2 server.

[1]   http://cwiki.apache.org/GMOxDOC22/building-geronimo-with-maven.html

Thanks Xasima for spotting this out.

Jeff C

On Fri, Nov 6, 2009 at 5:48 PM, Forrest Xia  wrote:

> Hi Xasima,
> Seems to me you are building geronimo 3.0 from the trunk. If you tend to
> build G 2.2, you are supposed to check out from
> http://svn.apache.org/repos/asf/geronimo/server/branches/2.2/.
>
> Forrest
>
>


Re: Trying to set up a MDB

2009-11-02 Thread chi runhua
Hi, two issues I noticed in your application:

1)  you need to use geronimo-applicaiton.xml for your ear to be deployed on
Geronimo successfully, which shall be put in the same directory with
application-xml
2)  jms resource should have a module name in the form of
groupId/artifactId/version/type

The plans for your reference:

geronimo-application.xml


http://geronimo.apache.org/xml/ns/j2ee/application-2.0";>
http://geronimo.apache.org/xml/ns/deployment-1.2";>

org.apache.geronimo.samples
jms-mdb-ear
2.1.4
car



   geronimo-activemq-ra-2.1.4.rar
   jms-resources.xml



jms-resources.xml (this file should be placed under root instead of
/root/META-INF)

http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
http://geronimo.apache.org/xml/ns/deployment-1.2";>

org.apache.geronimo.samples
jms-resources
2.1.4
rar




org.apache.geronimo.configs
activemq-broker
car






jms-resources
http://geronimo.apache.org/xml/ns/naming-1.2";>
DefaultWorkManager





javax.jms.ConnectionFactory

OrderConnectionFactory

javax.jms.QueueConnectionFactory

javax.jms.TopicConnectionFactory














javax.jms.Queue

org.apache.activemq.command.ActiveMQQueue


OrderQueue
OrderQueue




javax.jms.Topic

org.apache.activemq.command.ActiveMQTopic

 

Furthermore, you may check out this URL to find out the exact plans for
jms-mdb sample application.

https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1/samples/jms-mdb/

Any questions, please let us know.

Jeff C



On Mon, Nov 2, 2009 at 8:18 PM, Antonio Fornié wrote:

>
> Any help? If nobody can help for my specific problem, at least can anybody
> help me setting up this basic sample (I think it's the easier one in the
> docs):
>
> http://cwiki.apache.org/GMOxDOC21/jms-mdb-jms-and-mdb-sample-application.html
>
> Did anybody get it running only following the tutorial? Isn't there
> anything
> missing? I tried to follow the tutorial setp by step several times but it
> was never working.
>
> Otherwise, can anybody recommend me another tutorial or another way to have
> JMS and an MDB running easier than this one?
>
> Thank you very much!
>
> Antonio
> --
> View this message in context:
> http://old.nabble.com/Trying-to-set-up-a-MDB-tp26137988s134p26156693.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Inactivate eclipse autodeploy (autopublishing)

2009-10-30 Thread chi runhua
Juan, you may refer to this page and see if it helps.

http://cwiki.apache.org/GMOxDOC22/quick-debugging-jsps-of-your-application.html

Anything else, please let us know.

Jeff C

2009/10/30 Juan Andrés Sanín Pineda 

> Hi.
>
> Every time I modify some resource in my web project: a JSP, JSF, XHTML,
> class, etc. Eclipse automatically re-publish the entire project. It takes me
> a lot of time, specially if I am working only on the view (XHTML, JSF). I
> understand the re-publishing if I change a class, or a web.xml,
> faces-config.xml or geronimo-web.xml. But can I avoid this for XHTML, JSF,
> JSP, etc. Or can I just inactivate this feature? and How would I do this?
>
> Thanks!
>
> --
> Nauj10
>
> Este correo y cualquier archivo anexo pertenecen a PRAGMA S.A. y son para uso 
> exclusivo del destinatario intencional. Esta comunicacion puede contener 
> informacion confidencial o de acceso privilegiado. Si usted ha recibido este 
> correo por error, equivocacion u omision favor notificar en forma inmediata 
> al remitente y eliminar dicho mensaje con sus anexos. La utilizacion, copia, 
> impresion, retencion, divulgacion, reenvio o cualquier accion tomada sobre 
> este mensaje y sus anexos queda estrictamente prohibida y puede ser 
> sancionada legalmente.
>
> This e-mail and any attached files belong to PRAGMA S.A. and they are for the 
> sole use of the intended recipient(s). This communication may contain 
> confidential or privileged information. If you are not the intended 
> recipient, please contact the sender by reply this e-mail and destroy all 
> copies of the original message. Any unauthorised review, use, disclosure, 
> dissemination, forwarding, printing or copying of this email or any action 
> taken in reliance on this e-mail is strictly prohibited and may be unlawful
>
>
>


Re: Help

2009-10-28 Thread chi runhua
 You may also look into this page for reference.
http://cwiki.apache.org/GMOxDOC22/accessing-jms-in-web-applications.html

Any problems, please let us know.

Jeff C

>
>
> On Tue, Oct 27, 2009 at 5:48 PM, Petroianu Marian
>  wrote:
> > Hello,
> >
> > I have a hard time in configuring Geronimo with ActiveMQ. If a press
> the
> > link from "Web App WARs", i'll get a "HTTP 404 Error". The same happens
> with
> > the other links. I don't what to do anymore and the documentation from
> your
> > site isn't enough to make me understand. Can you help me with this
> problem
> > by putting an example on your site or by sending me an example?
> >
> > Best Regards,
> > Petroianu Marian Florin
> >
> >
> >
>


Re: Disable username/password authentication while server shutdown

2009-10-16 Thread chi runhua
Another option would be to use the GShell command deploy/login by updating
your server to v2.1.1.2 or above, which is based on G2.1.4.

You only need to input the username/password once, after that you won't be
bothered to input them from command line interface any more.

Similar information was documented in G2.1 doc at

http://cwiki.apache.org/GMOxDOC21/tools-and-commands.html#Toolsandcommands-Login


Jeff C


On Fri, Oct 16, 2009 at 5:05 PM, Quintin Beukes wrote:

> Is this a Linux O/S?
>
> If so, do you have an init script that does the shutdown. If it's
> Linux I assume so, because the alternative would be a kill signal.
>
> So, to do this in Linux I stored my username and password in file
> which only root can read, then I have these added to the geronimo.sh
> script's arguments. Something like:
> /path/to/geronimo/bin/geronimo.sh stop --user
> `
> Quintin Beukes
>
>
>
> On Fri, Oct 16, 2009 at 7:21 AM, jithesh  wrote:
> >
> > Hi,
> >
> > I am using wasce 2.0 as my appserver. I am running it under my wmware
> > instance. My problem is if I shutdown the wmware instance , the wasce
> asks
> > the username and password and waits there. This halts wmware from
> shutiing
> > down. Is it possible to disable this feature while shutdown process.
> >
> > Thanks
> > JIthesh PM.
> > --
> > View this message in context:
> http://www.nabble.com/Disable-username-password-authentication-while-server-shutdown-tp25919987s134p25919987.html
> > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
> >
> >
>


Re: How to deploy plain html-files with geronimo?

2009-10-14 Thread chi runhua
I found the following pages regarding the default servlet for Tomcat and
Jetty. Hope they are the docs that David mentioned.

Tomcat:  http://tomcat.apache.org/tomcat-6.0-doc/default-servlet.html
Jetty:
http://www.mortbay.org/jetty/jetty-6/apidocs/org/mortbay/jetty/servlet/DefaultServlet.html

Juhanay, we're looking forward your sharing on how to enable the feature on
Geronimo. I'm pretty sure that your experiences would help others alot.

Thanks

Jeff C

On Wed, Oct 14, 2009 at 3:42 PM, Quintin Beukes wrote:

> Now I learn something new. Thanks :>
>
> Quintin Beukes
>
>
>
> On Tue, Oct 13, 2009 at 8:35 PM, David Jencks 
> wrote:
> >
> > On Oct 13, 2009, at 10:12 AM, Quintin Beukes wrote:
> >
> >> Why does it have to have a servlet at all?
> >
> > You need a default servlet to serve static content.  Jetty and tomcat
> > install one by default in each web app (unless you override it) but these
> > automatic default servlets serve content from inside the war.  If you
> pack
> > stuff up in a war, you shouldn't need any servlet :-).  If you want the
> > content served from somewhere else, you need to configure a default
> servlet
> > to tell it where the "somewhere else" is.
> >
> > hope this is clearer :-)
> > david jencks
> >
> >
> >>
> >> Quintin Beukes
> >>
> >>
> >>
> >> On Tue, Oct 13, 2009 at 7:05 PM, David Jencks 
> >> wrote:
> >>>
> >>> On Oct 13, 2009, at 8:31 AM, juhanay wrote:
> >>>
> 
>  Hi
>  My problem is simple. How to deploy plain html-files or a directory to
> a
>  user without packing these things is a war file(like apache web server
>  does). So that the user may browse the directory stucture with the
>  browser.
>  WAR-file is not viable option since i cannot pack all the files in a
> war
>  file.
> >>>
> >>> Why not?
> >>>
> >>> Assuming you have a good answer to that question :-)  you can set up a
> >>> web
> >>> app that has only the default servlet for the web container you are
> using
> >>> (jetty or tomcat) and configure it to serve static content from
> wherever
> >>> it
> >>> actually is.  Unfortunately I don't have an example of how to do this
> >>> handy,
> >>> but I suspect either jetty or tomcat documentation might explain how to
> >>> do
> >>> this.  It would be a good thing to get into our docs as well (assuming
> it
> >>> isn't already there and I just don't know about it).
> >>>
> >>> thanks
> >>> david jencks
> >>>
>  --
>  View this message in context:
> 
> 
> http://www.nabble.com/How-to-deploy-plain-html-files-with-geronimo--tp25875139s134p25875139.html
>  Sent from the Apache Geronimo - Users mailing list archive at
>  Nabble.com.
> 
> >>>
> >>>
> >
> >
>


Usage of cluster/heartbeat?

2009-10-12 Thread chi runhua
Hi all, I'm trying to work out the documents of 2 new GShell commands added
in G2.2.

(1) Cluster/deploy
(2) Cluster/heartbeat

Cluster/deploy is quite easy to understand but I am confused about the usage
of (2). What does the heartbeat mean here, a newly added farm node?  What's
the scenario when a user want to use this command?

Could anyone shed more light on me, if you can provide a sample, that would
be much appreciated.

Thanks in advance.

Jeff


Re: Adding Trinidad JSF library

2009-10-11 Thread chi runhua
Hi granite:

Steps to follow:
 1. Add Trinidad JSF library into Geronimo repository;
 2. Add the dependency to Geronimo deployment plan of your war file;
 3. deploy the war

See
http://cwiki.apache.org/GMOxDOC22/adding-jars-to-the-geronimo-repository.htmlfor
the details.

Jeff C

On Mon, Oct 12, 2009 at 8:45 AM, granite  wrote:

> I have an existing application running on Tomcat that I want to migrate to
> Geronimo. However, the deployment failed because it cannot find Trinidad
> classes. I tried to add to my war file, Geronimo repository. Nothing worked
> so far. Anybody can help me to add Trinidad to Geronimo is greatly
> appreciated.
> --
> View this message in context: Adding Trinidad JSF 
> library
> Sent from the Apache Geronimo - Users mailing list 
> archiveat Nabble.com.
>


Re: Including Deployment Plans in the Archive

2009-09-16 Thread chi runhua
Sure. you may put the deployment plan file under /WEB-INF as long as you
follow the name covention for Geronimo.

Refer to the doc at
http://cwiki.apache.org/GMOxDOC22/understanding-deployment-plans.html

Jeff C


On Wed, Sep 16, 2009 at 6:22 PM, Quintin Beukes  wrote:

> Hey,
>
> Everytime I deploy I have to include the .xml plan file. This is fine,
> I don't mind. I was curious though if it's possible to wrap them in
> the archives?
>
> --
> Quintin Beukes
>


ERROR [Connector] Protocol handler pause failed when trying to stop GEP2.2 in Eclipse

2009-09-09 Thread chi runhua
Hi, I installed GEP2.2 on Eclipse Galileo and started the server instance
successfully.

When I click the stop button from GEP pop-up list, the following error shows
up:

2009-09-09 16:01:57,291 ERROR [Connector] Protocol handler pause failed
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:352)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:214)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:201)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
at java.net.Socket.connect(Socket.java:530)
at java.net.Socket.connect(Socket.java:480)
at java.net.Socket.(Socket.java:377)
at java.net.Socket.(Socket.java:220)
at
org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:487)
at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:284)
at org.apache.jk.server.JkMain.pause(JkMain.java:683)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
at org.apache.catalina.connector.Connector.pause(Connector.java:1073)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:563)
at
org.apache.geronimo.tomcat.TomcatContainer.doStop(TomcatContainer.java:253)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.destroyInstance(GBeanInstance.java:)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStop(GBeanInstanceState.java:340)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstanceState.java:189)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.java:546)
at
org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.java:421)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstanceState.java:150)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.java:546)
at
org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.java:421)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstanceState.java:150)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.java:546)
at
org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.java:421)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager$ShutdownHook.run(KernelConfigurationManager.java:339)
at
org.apache.geronimo.kernel.basic.BasicKernel.notifyShutdownHooks(BasicKernel.java:661)
at
org.apache.geronimo.kernel.basic.BasicKernel.shutdown(BasicKernel.java:638)
at org.apache.geronimo.kernel.KernelGBean.shutdown(KernelGBean.java:382)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:850)
at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:237)
at
org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
at
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1437)
at
javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:83)
at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1275)
at
java.security.AccessController.doPrivileged(AccessController.java:284)
at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1377)
at
javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:799)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:310)
at sun.rmi.transport.Transport$1.run(Transport.java:171)
at
java.security.AccessController.doPrivileged(AccessController.java:284)
at sun.rmi.transport.Transport.serviceCall(Transport.java:167)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:547)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:802)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:661)
at
java.util.concurrent.ThreadPoolE

Re: Welcome "Rex" Lei Wang as a new committer

2009-09-01 Thread chi runhua
Congrats! Rex

Jeff C

On Tue, Sep 1, 2009 at 9:39 PM, Lin Sun  wrote:

> Congrats!
>
> Lin
>
> On Mon, Aug 31, 2009 at 6:48 PM, David Jencks
> wrote:
> > I would like to welcome Rex, as he recently accepted the Geronimo PMC
> > invitation to become a committer.   We are still waiting for his account
> to
> > be created, but hope to get that straightened out shortly and start
> seeing
> > commits.
> >
> > Congratulations!
> > david jencks
> >
> >
>


Re: Welcome Ivan Xu as a new PMC member

2009-09-01 Thread chi runhua
Congrats! Ivan~!

Jeff C

On Tue, Sep 1, 2009 at 9:38 PM, Lin Sun  wrote:

> Congrats!
>
> Lin
>
> On Mon, Aug 31, 2009 at 6:48 PM, David Jencks
> wrote:
> > I would like to welcome Ivan as he recently accepted the Geronimo PMC
> >  invitation to join the PMC.  We look forward to working with him to
> > maintain oversight of the Geronimo project.
> >
> > Welcome!
> > david jencks
> >
> >
>


Re: Question about deployment using farming plugin in G2.2

2009-08-26 Thread chi runhua
Gianny, thanks alot.

The page was updated accordingly.

http://cwiki.apache.org/GMOxDOC22/farming-using-deployment.html

Anything incorrect, please let me know.

Jeff

On Wed, Aug 26, 2009 at 7:30 PM, Gianny Damour <
gianny.dam...@optusnet.com.au> wrote:

> Hi Jeff,
>
> You are correct. The name mangling has been reversed as it was causing
> pattern based GBean look-ups (e.g. finding DataSources) to fail.
>
> To undeploy across the farm, users need to execute the undeploy command on
> the same node that they used to deploy/distribute their application across
> the farm. Note that this node acts as a kind of Administration Server,
> whereby it is the only node whose farming configuration needs to be
> maintained to reflect farm members and any lifecycle operations against
> farmed modules (e.g. start/stop) are propagated to the other nodes.
>
> Thanks,
> Gianny
>
>
> On 26/08/2009, at 4:28 PM, chi runhua wrote:
>
>  Hi,
>>
>> In http://cwiki.apache.org/GMOxDOC22/farming-using-deployment.html,  it
>> says that a '_G_SLAVE' is appended to the configuration name in
>> ClusterStore.
>>
>> While using deploy/distribute in G2.2, a _G_MASTER is appended to the
>> configuration name in MasterConfigurationStore. And the target application
>> was deployed to ClusterStore with its pre-defined name on the other nodes.
>>
>> To undeploy the application across a cluster, user should perform
>> deploy/undeploy command on the exact same node that he used to
>> deploy/distribute the application.
>>
>> Am I correct? if so, I will update the doc later.
>>
>> Thanks in advance.
>>
>> Jeff C
>>
>>
>>
>>
>>
>


Question about deployment using farming plugin in G2.2

2009-08-25 Thread chi runhua
Hi,

In http://cwiki.apache.org/GMOxDOC22/farming-using-deployment.html,  it says
that a '_G_SLAVE' is appended to the configuration name in ClusterStore.

While using deploy/distribute in G2.2, a _G_MASTER is appended to the
configuration name in MasterConfigurationStore. And the target application
was deployed to ClusterStore with its pre-defined name on the other nodes.

To undeploy the application across a cluster, user should perform
deploy/undeploy command on the exact same node that he used to
deploy/distribute the application.

Am I correct? if so, I will update the doc later.

Thanks in advance.

Jeff C


Re: VM Arguments without Eclipse

2009-08-21 Thread chi runhua
Thanks Kevan for the info.  I've update the G22 doc to reflect these
options.

http://cwiki.apache.org/confluence/display/GMOxDOC22/Runtime+issues

Anything incorrect, please let me know.

Jeff C

On Thu, Aug 20, 2009 at 7:45 PM, Kevan Miller wrote:

>
> On Aug 19, 2009, at 1:48 AM, Florian Schaetz wrote:
>
>  Hi,
>>
>> I just searched for a while but I didn't find anything: How do I set VM
>> arguments for geronimo without using Eclipse (on a windows machine)? In
>> Eclipse it's easy and well documented, but where do I set them in the config
>> files?
>>
>> I tried adding...
>>
>> set JAVA_OPTS=...
>>
>> ...in the setjavaenv.bat file, but Geronimo seems to ignore that.
>>
>
>
> Depends on how you're starting Geronimo.
>
> 1) startserver.sh or geronimo.sh run/etc
>
>   a) JAVA_OPTS environment variable:
>
>JAVA_OPTS="-Xmx256m -XX:MaxPermSize=128m
> -XX:+HeapDumpOnOutOfMemoryError" ./bin/geronimo.sh run
>
>   b) and/or create bin/setenv.sh (or .bat) file. Contents (for .sh) could
> look like:
>
>if [ -z "$JAVA_OPTS" ]; then
>   JAVA_OPTS="-Xmx256m -XX:MaxPermSize=128m
> -XX:+HeapDumpOnOutOfMemoryError"
>fi
>
> 2) start-server or gsh geronimo/start-server
>
>a) edit etc/rc.d/start-server,default.groovy:
>
>// Append some reasonable java flags if none were configured already
>if (command.javaFlags.empty) {
>command.javaFlags << '-Xmx256m'
>command.javaFlags << '-XX:MaxPermSize=128m'
>command.javaFlags << '-XX:+HeapDumpOnOutOfMemoryError'
>}
>
>b) or use -J flag:
>
>./bin/gsh geronimo/start-server  -J -Xmx256m -J -XX:MaxPermSize=128m
> -J -XX:+HeapDumpOnOutOfMemoryError"
>
> --kevan
>


Re: Deploying a connector module (geronimo-ra.xml problem)

2009-08-21 Thread chi runhua
Here is a topic for your reference:
http://cwiki.apache.org/GMOxDOC21/sendmail-using-geronimos-default-javamail-session.html

If you could elaborate the exact steps when you deployed the connector on
Geronimo, it would do more help.


Jeff C

On Fri, Aug 21, 2009 at 8:01 PM, sim085  wrote:

>
> Hi,
>
> I am trying to deploy the sample JEE connector mailconnector.rar. However I
> am getting an error message telling me that "A connector module must be
> deployed using a Geronimo deployment plan".
>
> I went to Geronimo documentation (for version 2.1) and there I found that
> the "The geronimo-ra.xml deployment plan is an optional file". If so, why
> am
> I getting the above error for not having the geronimo-ra.xml file when such
> a file is optional?
>
> I also tried to install the same connector on GlassFish and the connector
> was deployed successfully. The reason why I am mentioning this is NOT to
> compare the two, but rather as assurance that the connector is packaged
> correctly.
>
> Regards,
> Sim085
> --
> View this message in context:
> http://www.nabble.com/Deploying-a-connector-module-%28geronimo-ra.xml-problem%29-tp25077958s134p25077958.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: plugin classloader question

2009-08-19 Thread chi runhua
Cool~! Glad it can help.

Jeff C

On Wed, Aug 19, 2009 at 9:34 PM, Trygve Hardersen  wrote:

> I believe the relevant G22 documentation is located here:
>
> http://cwiki.apache.org/GMOxDOC22/classloading.html
>
> On "hidden-classes" it says:
>
> Including a filter in a hidden-classes element prevents matching classes
> from being loaded from any parent classloader. This is used when the current
> module depends on a different version or when the class represents a
> framework that must be initialized independently from the same framework
> used by the parent.
> This feature is a bit odd. In addition, all child classloaders will not be
> able to load the class from any parent.
>
> There's also some good information in geronimo-module.xsd:
>
> A list of classes which will never be loaded from parent ClassLoaders of
> this module. For example, if Log4J was listed here, the module would never
> see Geronimo's copy of Log4J. If the module provided it's own Log4J JAR it
> would use that, otherwise it would not be able to load Log4J at all.
>
> The classes are specified in zero or more child "filter" elements where
> each filter element specifies a fully-qualified class name or prefix.
> Essentially, any class that starts with one of the prefixes listed here will
> be treated as hidden. For example, if you specify two filter elements
> containing "java.util" and "java.lang" then you would really screw up your
> application. :)
>
> Based on this I added a "hidden-classes" filter on "org.quartz" to my
> plugin deployment descriptor so Quartz is never loaded from the parent
> classloader. In general this works well, the only problem is that Quartz
> loads its version number and probably some other stuff from properties
> files. The version number properties file is called "build.properties" and
> lives on the root of the Quartz JAR. I'm unable to exclude it using a
> "hidden-classes" filter on "build.properties" or "/build.properties". I
> guess it would be possible to exclude it with a filter on "build", but that
> is rather risky as it might collide with other dependencies.
>
> Thanks for your help!
>
> Trygve
>
>
> On Wed, Aug 19, 2009 at 2:59 PM, chi runhua  wrote:
>
>> I can think of 2 approaches for your scenario, you may take a try:
>>
>> 1. use  tag in your deployment plan, you may refer to
>> deployment plan section in G2.2 doc;
>>
>> 2. update /var/config/artifacts-aliaes.properties, you may
>> refer to  substituting one module with another topic in G2.2 doc;
>>
>> I can't open G22 doc website from home recently.:-( so you might want
>> to find the page by yourself.
>>
>> Jeff C
>>
>>
>> On Wed, Aug 19, 2009 at 1:02 AM, Trygve Hardersen wrote:
>>
>>> Sometimes asking the questions makes you think
>>>
>>> It seems this can be achieved using the "hidden-classes" element in the
>>> module definition. I was probably fooled by Quartz logging version "1.5.2"
>>> even if the version really was "1.6.5". I looked at the Quartz source and
>>> they are loading the version numbers from a file "build.properties":
>>>
>>> is = QuartzScheduler.class.getResourceAsStream("/build.properties");
>>>
>>> I tried to add a "hidden-classes" filter on both "build.properties" and
>>> "/build.properties", but I don't think it is excluded. I guess the
>>> "hidden-classes" functionality treats this as a package name. Any way to
>>> escape it?
>>>
>>> Thanks!
>>>
>>> Trygve
>>>
>>>
>>> On Tue, Aug 18, 2009 at 6:17 PM, Trygve Hardersen wrote:
>>>
>>>> Hello
>>>>
>>>> I'm having some problems with classloading and Geronimo plugins.
>>>> Hopefully some of you can share your insight into this.
>>>>
>>>> I want to use the OpenSymphony Quartz scheduler in my application. The
>>>> current version is opensymphony/quartz/1.6.5. OpenEJB also uses Quartz,
>>>> but an older version quartz/quartz/1.5.2. The Geronimo plugin I want to
>>>> use Quartz from also depends on
>>>> org.apache.geronimo.configs/openejb/2.2-SNAPSHOT, which comes with Quartz
>>>> since it depends on OpenEJB.
>>>>
>>>> The problem I'm having is making my plugin load Quartz from the
>>>> classloader of my plugin, not from the org.apache.geronimo.config

Re: Different server instances on Geronimo 2.2

2009-08-19 Thread chi runhua
yes, you can set up multiple repositories specified to different instances.
I am sure there are some infos in G2.2 doc.

You may take a look at G22 doc, I can't access G Doc website right now
otherwise I would provide the linkage for your reference.

Jeff C

On Wed, Aug 19, 2009 at 9:29 PM, rpal...@gmail.com wrote:

> Is it possible to create two different directories for the Geronimo
> deployments instead of using the same ones for each instance?  It seems like
> that would resolve your issues, even though it creates a slightly more
> complex environment.
>
> Robert P
>
>
> On Wed, Aug 19, 2009 at 9:08 AM, chi runhua  wrote:
>
>> Because both instances share the same repository, I guess it's as
>> designed.  The only difference would be as followed:
>>
>> 1.  on the instance you deployed the application, such as 8080 port by
>> default, config.xml was updated with its moduleId as > name="com/yourcompany/foo/1.0/car">
>>
>> 2. while on another instance, the module info was written into config.xml
>> as well, but with the following info > name="com/yourcompany/foo/1.0/car" load="false">
>>
>> Anything incorrect with my understanding, please chime in.
>>
>> Jeff C
>>
>> On Wed, Aug 19, 2009 at 6:13 PM, Lu Jiang  wrote:
>>
>>>
>>> Environment:
>>> Windows+JDK6+Geronimo2.2
>>>
>>> I setted up another server instance besides the default one. The defaut
>>> one
>>> is on 8080,and the other on 8090.They both work well and share the same
>>> repository.
>>>
>>> If I deploy an application on one server instance,for example, the 8080
>>> one,then it'll be simultaneously deployed on the 8090 server
>>> instance.This
>>> action changes the config.xml of both the default one and the new server
>>> instance. After that ,I tried to deploy the same application to the 8090
>>> instance. It failed and warned that the application already exists.
>>>
>>> I wonder ,in the case of multiple server instances,if an application is
>>> deployed on one server instance,should  the other server instances share
>>> the
>>> application?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Different-server-instances-on-Geronimo-2.2-tp25041402s134p25041402.html
>>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>


Re: VM Arguments without Eclipse

2009-08-19 Thread chi runhua
Gshell will initiate another JVM, so if you use Gshell command to manage
Geronimo, you might want to try the solution that David said.

Other than that, you can use scripts in /bin, such as
startup.bat, pass in arguments using

startup.bat [JAVA_OPTS]

setjavaenv.bat is used to locate JAVA_HOME/JRE_HOME for geronimo instance to
start, I thing options you set in there will not be executed.

Anything incorrect, please let me know.

Jeff C



On Wed, Aug 19, 2009 at 2:47 PM, David Jencks wrote:

> I recommend using gshell and setting this stuff in
> etc/rc.d/start-server,default.groovy
>
> thanks
> david jencks
>
>
> On Aug 18, 2009, at 10:48 PM, Florian Schaetz wrote:
>
>  Hi,
>>
>> I just searched for a while but I didn't find anything: How do I set VM
>> arguments for geronimo without using Eclipse (on a windows machine)? In
>> Eclipse it's easy and well documented, but where do I set them in the config
>> files?
>>
>> I tried adding...
>>
>> set JAVA_OPTS=...
>>
>> ...in the setjavaenv.bat file, but Geronimo seems to ignore that.
>>
>> Flo
>>
>
>


Re: Different server instances on Geronimo 2.2

2009-08-19 Thread chi runhua
Because both instances share the same repository, I guess it's as designed.
The only difference would be as followed:

1.  on the instance you deployed the application, such as 8080 port by
default, config.xml was updated with its moduleId as 

2. while on another instance, the module info was written into config.xml as
well, but with the following info 

Anything incorrect with my understanding, please chime in.

Jeff C

On Wed, Aug 19, 2009 at 6:13 PM, Lu Jiang  wrote:

>
> Environment:
> Windows+JDK6+Geronimo2.2
>
> I setted up another server instance besides the default one. The defaut one
> is on 8080,and the other on 8090.They both work well and share the same
> repository.
>
> If I deploy an application on one server instance,for example, the 8080
> one,then it'll be simultaneously deployed on the 8090 server instance.This
> action changes the config.xml of both the default one and the new server
> instance. After that ,I tried to deploy the same application to the 8090
> instance. It failed and warned that the application already exists.
>
> I wonder ,in the case of multiple server instances,if an application is
> deployed on one server instance,should  the other server instances share
> the
> application?
> --
> View this message in context:
> http://www.nabble.com/Different-server-instances-on-Geronimo-2.2-tp25041402s134p25041402.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: plugin classloader question

2009-08-19 Thread chi runhua
I can think of 2 approaches for your scenario, you may take a try:

1. use  tag in your deployment plan, you may refer to
deployment plan section in G2.2 doc;

2. update /var/config/artifacts-aliaes.properties, you may
refer to  substituting one module with another topic in G2.2 doc;

I can't open G22 doc website from home recently.:-( so you might want to
find the page by yourself.

Jeff C

On Wed, Aug 19, 2009 at 1:02 AM, Trygve Hardersen  wrote:

> Sometimes asking the questions makes you think
>
> It seems this can be achieved using the "hidden-classes" element in the
> module definition. I was probably fooled by Quartz logging version "1.5.2"
> even if the version really was "1.6.5". I looked at the Quartz source and
> they are loading the version numbers from a file "build.properties":
>
> is = QuartzScheduler.class.getResourceAsStream("/build.properties");
>
> I tried to add a "hidden-classes" filter on both "build.properties" and
> "/build.properties", but I don't think it is excluded. I guess the
> "hidden-classes" functionality treats this as a package name. Any way to
> escape it?
>
> Thanks!
>
> Trygve
>
>
> On Tue, Aug 18, 2009 at 6:17 PM, Trygve Hardersen  wrote:
>
>> Hello
>>
>> I'm having some problems with classloading and Geronimo plugins. Hopefully
>> some of you can share your insight into this.
>>
>> I want to use the OpenSymphony Quartz scheduler in my application. The
>> current version is opensymphony/quartz/1.6.5. OpenEJB also uses Quartz,
>> but an older version quartz/quartz/1.5.2. The Geronimo plugin I want to
>> use Quartz from also depends on
>> org.apache.geronimo.configs/openejb/2.2-SNAPSHOT, which comes with Quartz
>> since it depends on OpenEJB.
>>
>> The problem I'm having is making my plugin load Quartz from the
>> classloader of my plugin, not from the org.apache.geronimo.configs/openejb
>> classloader. The problem with loading it from that classloader is, besides
>> getting the old Quartz version, that commons-dbcp/commons-dbcp is not
>> available in that classloader. commons-dbcp is needed to use Quartz with a
>> JDBC JobStore (at least with MySQL):
>>
>> java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
>> in classloader org.apache.geronimo.configs/openejb/2.2-SNAPSHOT/car
>>
>> I've tried to update OpenEJB to use the same Quartz version as I do so the
>> groupid and artifactid are the same, but I'm still unable to exclude it from
>> the classloader of my plugin. Does anyone know how this can be achieved?
>> What I want is to create a Geronimo plugin that depends on
>> org.apache.geronimo.configs/openejb but loads Quartz from its own
>> classloader, not that of org.apache.geronimo.configs/openejb.
>>
>> Or to put it more generally, how can I prevent classes defined in
>> dependent plugins from being used in the current plugin?
>>
>> Many thanks!
>>
>> Trygve Hardersen
>> Jotta AS
>>
>
>
>


Re: war framework / external jar setup

2009-08-06 Thread chi runhua
Quote from Doc "The --inPlace option allows you point to and deploy an
application directly from a directory external to Geornimo without the need
for even packaging the application."

So the jar should be unpacked and in its full-blown structure. In this way,
you can update the classes within it without redeploying.

After the directory is deployed, insert the dependency in the deployment
plan of your WAR.

Hope this answers your question.

Jeff C


Re: war framework / external jar setup

2009-08-06 Thread chi runhua
Unpack your jar to c:\myjar, then use

deploy -u system -p manager deploy --inPlace c:\myjar

this should work, just tried on my side.

Jeff C


On Thu, Aug 6, 2009 at 8:59 PM, Marco Laponder wrote:

>  I can’t seem to get the –inPlace option to work, I am trying:
>
>
>
> deploy -u system -p manager install-library --groupId com.test --inPlace
> c:\inplace
>
>
>
> This gives me the error:
>
>
>
> Too many arguments.
>
>
>
> Help for command: install-library
>
>install-library [--groupId grp] LibraryFile
>
>
>
>
>
>Installs a library file into repository.
>
>
>
>If a groupId is provided, the library file will be installed
>
>under that groupId. Otherwise, default will be used. The
>
>artifactId, version and type are computed from the library file
>
>name which should be in the form -.,
>
>for e.g. mylib-1.0.jar.
>
>
>
>
>
> Do I need a specific version of Geronimo or am I doing something else
> incorrect ?
>
>
>
> Kind regards,
>
> Marco
>  --
>
> *Van:* chi runhua [mailto:chirun...@gmail.com]
> *Verzonden:* donderdag 6 augustus 2009 14:35
> *Aan:* user@geronimo.apache.org
> *Onderwerp:* Re: war framework / external jar setup
>
>
>
> Here are some thoughts for your reference.
>
> First, unpack your jar and use --inPlace option[1] to deploy it into
> Geronimo Repository, then add a dependency in the deployment plan of war[2].
>
> Doc for reference.
>
> [1]http://cwiki.apache.org/GMOxDOC22/deploy.html#deploy-Deploy
> [2]
> http://cwiki.apache.org/GMOxDOC22/adding-jars-to-the-geronimo-repository.html#AddingJARstotheGeronimorepository-Definethedependencyinthedeploymentplan
>
> Jeff C
>
> On Thu, Aug 6, 2009 at 7:34 PM, Marco Laponder 
> wrote:
>
> Hi erveryone,
>
>
>
> I need some advice on the following situation. We have a war with a
> framework which based on configuration in the database and use of reflection
> dynamically can call a method of a java class. When this class is present in
> a jar (lets call it impl.jar) which is located in WEB-INF/lib it works as
> expected.
>
>
>
> However what I want to accomplish is:
>
> 1)   have the impl.jar not included in the WEB-INF but at an alternate
> external location, so for a new impl.jar we need not redeploy the war
>
> 2)   once the jar has been altered I probably need to force a reload
> of the classes already loaded by the Geronimo classloader. Is this possible
> and how can this be accomplished
>
>
>
> When I am completely off the track or have any other advice which could
> help me just point me in the right direction, any documentation or google
> terms will be appreciated.
>
>
>
> Kind regards,
>
> Marco Laponder
>
>
>
>
>


Re: war framework / external jar setup

2009-08-06 Thread chi runhua
Here are some thoughts for your reference.

First, unpack your jar and use --inPlace option[1] to deploy it into
Geronimo Repository, then add a dependency in the deployment plan of war[2].

Doc for reference.

[1]http://cwiki.apache.org/GMOxDOC22/deploy.html#deploy-Deploy
[2]
http://cwiki.apache.org/GMOxDOC22/adding-jars-to-the-geronimo-repository.html#AddingJARstotheGeronimorepository-Definethedependencyinthedeploymentplan

Jeff C

On Thu, Aug 6, 2009 at 7:34 PM, Marco Laponder wrote:

>  Hi erveryone,
>
>
>
> I need some advice on the following situation. We have a war with a
> framework which based on configuration in the database and use of reflection
> dynamically can call a method of a java class. When this class is present in
> a jar (lets call it impl.jar) which is located in WEB-INF/lib it works as
> expected.
>
>
>
> However what I want to accomplish is:
>
> 1)   have the impl.jar not included in the WEB-INF but at an alternate
> external location, so for a new impl.jar we need not redeploy the war
>
> 2)   once the jar has been altered I probably need to force a reload
> of the classes already loaded by the Geronimo classloader. Is this possible
> and how can this be accomplished
>
>
>
> When I am completely off the track or have any other advice which could
> help me just point me in the right direction, any documentation or google
> terms will be appreciated.
>
>
>
> Kind regards,
>
> Marco Laponder
>
>
>


Re: clone / update server

2009-07-16 Thread chi runhua
Besides using Maven to build plugins, you can use admin console to export
your applications, dbpools to local disk, then create a custom plugin
repository.

The only requirement is that all your applications, dbpools should be
specifieded as .car be deployed in 2.2-snapshot.

Here is the doc(1) for your reference. It demonstrates how to export
plugins, how to create a custom repository and how to install them. The page
is kind of out-of-date and we'll update the page soon. But I guess the
spirits are the same.

(1)
http://cwiki.apache.org/confluence/display/GMOxDOC22/Converting+applications+into+plugins+using+the+Administration+Console

If you are talking about lots of applications,  using car-maven-plugin to
build would be the No.1 choice.

Jeff C

On Thu, Jul 16, 2009 at 4:31 PM, David Jencks wrote:

>
> On Jul 16, 2009, at 1:05 AM, Juergen Weber wrote:
>
>
>> Hi,
>>
>> got a new 2.2 snapshot. How would I best get my current installation into
>> the new snapshot?
>>
>> deploy/new-instance only creates a new server into the current
>> installation,
>> does it?
>>
>> http://cwiki.apache.org/GMOxDOC22/geronimo-gshell-commands.html#GeronimoGShellCommands-Creatinganewinstance
>>
>> What I'd need is to export all installed applications + plans (database
>> pools) into a zip and import the zip into the new server installation.
>> This
>> would also be useful for backing up or moving a server to another machine.
>>
>
> that won't really work.
>
> There have been a lot of gbean structure changes recently and definitely
> since 2.1.x so you will almost certainly need to redeploy your apps.
>
> I strongly recommend that you use maven to build your applications (and db
> pools etc) into plugins and then assemble a custom server including them
> (again using maven)  This gives you a reproducible process in version
> control that generates the server you want with the apps you need in it.
>
> One possible problem is that until very recently if you used the console to
> deploy something such as a db pool geronimo didn't save the plan for you.
>  However, you'd still have to come up with the plan somehow since you
> probably need to redeploy.
>
> Hope this helps
> david jencks
>
>
>
>> Thanks,
>> Juergen
>>
>> --
>> View this message in context:
>> http://www.nabble.com/clone---update-server-tp24512130s134p24512130.html
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>


Re: Geronimo plugin project example?

2009-07-15 Thread chi runhua
Thanks, fixed now.

Jeff C

On Wed, Jul 15, 2009 at 5:51 PM, Fredrik Jonson wrote:

> chi runhua wrote:
>
> >  Fredrik, thanks for the post.
> >
> >  Actually, there are some docs about what a geronimo-plugin looks like(1)
> and
> >  how to create/install/update one.
> >
> >  Here are the URLs FYR.  Please let us know if you have any comments.
> >
> >  (1)
> >
> http://cwiki.apache.org/confluence/display/GMOxDOC22/Plugin+and+plugin+group
> >  (2)
> >
> http://cwiki.apache.org/confluence/display/GMOxDOC22/Administering+plugins
>
> Neat, thanks!
>
> The first link is missing an 's' though, the page is named:
>
> http://cwiki.apache.org/confluence/display/GMOxDOC22/Plugin+and+plugins+group
>
> Also, that page has a subpage include that points the wrong place, under
> the
> title "Plugin groups" you probably want to link to:
> http://cwiki.apache.org/confluence/display/GMOxDOC22/Plugins+group
> (or rename the page. the s seems a bit out of place.)
>
> Can anyone edit the wiki?
>
> --
> Fredrik Jonson
>
>


Re: Geronimo plugin project example?

2009-07-15 Thread chi runhua
Fredrik, thanks for the post.

Actually, there are some docs about what a geronimo-plugin looks like(1) and
how to create/install/update one.

Here are the URLs FYR.  Please let us know if you have any comments.

(1)
http://cwiki.apache.org/confluence/display/GMOxDOC22/Plugin+and+plugin+group
(2)
http://cwiki.apache.org/confluence/display/GMOxDOC22/Administering+plugins


Jeff C

On Tue, Jul 14, 2009 at 6:23 PM, Fredrik Jonson wrote:

> David Jencks wrote:
> >  Fredrik Jonson wrote:
> > >
> > > I'm looking for a simple example geronimo plugin project.
> >
> >  Building all of geronimo itself is the best way to see a lot of plugin
> >  projects.  Most of them are "service" plugins but there are a lot of
> >  javaee applications in there too.
>
> That seems a bit daunting. I'll try it... some day... ;)
>
> On the bright side I have finally managed to build and deploy a simple
> plugin!
> The reason I failed last week was due to a combination of PEBCAK and maybe
> a bit
> of complexity and lack of documentation in the car-maven-plugin. What I did
> was:
>
> 1. Tried to package a plugin with a broken plan.xml. I tried to copy the
> activemq-broker
>   plugin from current trunk (2.2-SNAPSHOT) and that project configuration
> is a bit
>   strange, lots of parent modules and their transitive dependencies made it
> hard to
>   overview what parameters, configurations and files (history?) that
> actually is required,
>   and what is just specific to that module.
>
> 2. PEBCAK. I tried to install the plugin using the "deploy" command instead
> of
>   "install-plugin". Completely my own fault.
>
> Two major gothas for me was:
>
> 1. Not declaring the geronimoVersion property in the pom.
> 2. Not declaring "true" on the plugin
> configuration.
>
> If anyone else is interested, my very minimal geronimo-plugin example
> project
> is included below. The dependency org.example/provider is simply a jar
> module
> that contains the ExampleGBean implementation.
>
> |-- pom.xml
> `-- src
>`-- main
>`-- plan
>`-- plan.xml
>
> --- pom.xml ---
>
> 
> http://maven.apache.org/POM/4.0.0";
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>  4.0.0
>  org.example
>  plugin
>  1.0-SNAPSHOT
>  car
>  
>2.1.4
>  
>  
>
>  org.example
>  provider
>  ${version}
>
>  
>  
>
>  
>org.apache.geronimo.buildsupport
>car-maven-plugin
>2.1.4
>true
>
>  
>true
>true
>  
>  JMS
>
>  
>
>  
> 
>
> --- src/main/plan/plan.xml ---
>
> 
> http://geronimo.apache.org/xml/ns/deployment-1.2";>
>  
>  
> 
>
> --
> Fredrik Jonson
>
>


Re: log4jResource setting in GBean: ApplicationLog4jConfigurationGBean

2009-07-09 Thread chi runhua
Hi Ivpal, looks like the plan is correct.

So as you said "it's still not logging the way I want to."?  we'd like to
know what's your expectation?
Can you deploy your application successfully? Can it be started
successfully?
Is there any exception shown in geronimo.log file?

Jeff C


Re: Fw: Re: Re: J2EE Connector deployment problem

2009-07-09 Thread chi runhua
try the following code:


  META-INF/log4j.properties
ServerInfo


anything else, let us know.

Jeff C

On Thu, Jul 9, 2009 at 4:38 PM, johnxmas  wrote:

>  After adding
>
>  class="org.apache.geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean">
> name="log4jResource">META-INF/log4j.properties
> 
>
> to my geronimo-ra.xml,  I get the following exception
> 16:25:37,156 ERROR [GBeanInstanceState] Error while starting; GBean is now
> in the FAILED state:
> abstractName="com.scort.demos/vscics/1.0/ear?J2EEApplication=com.scort.demos/vscics/1.0/ear,j2eeType=SystemLog,name=DirectoryLog4jConfiguration"
> java.lang.NullPointerException
>  at
> org.apache.geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean.(ApplicationLog4jConfigurationGBean.java:52)
>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>  at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>  at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>  at
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:948)
>  at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
>  at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>  at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
>  at
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:555)
>  at
> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
>  at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
>  at
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188)
>  at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
>  at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:543)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:585)
>  at
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
>  at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
>  at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
>  at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>  at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
>  at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
>  at
> org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$df9048d.startConfiguration()
>  at
> org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
>  at java.lang.Thread.run(Thread.java:595)
> --
>


Re: Problem with Eclipse Galileo

2009-07-02 Thread chi runhua
And document on how to use deployable.zip and updatesites.zip goes to

http://cwiki.apache.org/GMOxDOC22/installing-geronimo-eclipse-plugin.html#InstallingGeronimoEclipsePlugin-ManualInstallation

Any questions, just let us know.

Jeff C

On Thu, Jul 2, 2009 at 5:26 AM, Donald Woods  wrote:

> The 2.1.4 plugin does not support Galileo...
>
> You'll need to install one of the nightly/unstable builds of 2.1.5 plugin
> until it is released.  See [1] for details.
>
> [1]
> http://geronimo.apache.org/development-tools.html#DevelopmentTools-NightlyBuilds
>
>
> -Donald
>
>
>
> Ivan Babanin wrote:
>
>> Hello!  Plz help me. When i try to set up Apache Geronimo Server
>> Adapter 2.1 in Eclipse Galileo i got the following error:
>>
>> Cannot complete the install because one or more required items could
>> not be found.
>> Software being installed: Geronimo v2.1 Server Adapter 2.1.4
>> (org.apache.geronimo.v21.feature.feature.group 2.1.4)
>> Missing requirement: Geronimo v2.1 Server Adapter 2.1.4
>> (org.apache.geronimo.v21.feature.feature.group 2.1.4) requires
>> 'org.eclipse.jst.common_core.feature.feature.group
>> 2.0.0.v200706041905-1007w311817231426' but it could not be found
>>
>> How to solve this problem?
>>
>>


Re: accessing the administration console error

2009-07-01 Thread chi runhua
Hi SShehab, please try v2.1.4.

Here is the download url:
http://geronimo.apache.org/apache-geronimo-v214-release.html

Jeff C

On Wed, Jul 1, 2009 at 4:07 PM, SShehab  wrote:

>
> Hi Guys ,
>
> when i'm trying to  access the administration console for geronimo v2.0
> this exception occurs after writing the username and password :
>
> HTTP Status 500 -
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Servlet.init() for servlet se-console threw
> exception
>
>
> org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
>
>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
>
>
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:338)
>
>
> org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
>
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>
>  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:517)
>
>  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
>
>  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
>
>  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
>java.lang.Thread.run(Thread.java:619)
> root cause
>
> java.lang.NullPointerException
>
>
> org.apache.pluto.portalImpl.core.PortletContainerEnvironment.addContainerService(PortletContainerEnvironment.java:46)
>org.apache.pluto.portalImpl.Servlet.init(Servlet.java:113)
>
>
> org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
>
>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
>
>
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:338)
>
>
> org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
>
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>
>  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:517)
>
>  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
>
>  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
>
>  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
>java.lang.Thread.run(Thread.java:619)
> note The full stack trace of the root cause is available in the Apache
> Tomcat/6.0.0-dev logs.
>
>
>
> Any explanations ? :-(
>
> --
> View this message in context:
> http://www.nabble.com/accessing-the-administration-console-error-tp24285826s134p24285826.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Where is Apache Geronimo-Apache Directory Server Plugin in 2.1.x?

2009-06-01 Thread chi runhua
Hi, I was reading LDAP realm topic on
http://cwiki.apache.org/GMOxDOC21/ldap-realm.html.

According to the document, there should be a *Apache Geronimo-Apache
Directory Server Plugin 1.0 LDAP *available* *and when the plugin was
installed, Apache Directory Server will be ready for use.

The plugin has been missing since G2.1.0 and I'd like to confirm that we are
not going to release this plugin anymore.  If the answer is yes, I'll update
the document accordingly on 2.1 and 2.2.

Thanks in advance.
*
*Jeff Chi*
*


Re: Intalio and Geronimo 1.1 as a Windows Service

2009-06-01 Thread chi runhua
Hi, FYI.

http://cwiki.apache.org/GMOxDOC22/configuring-geronimo-as-a-windows-service.html

It's available starting from v2.1.4 with the  out-of-box Apache Common
Daemon and you can run Geronimo as Windows Service quite easily.

Jeff C

On Mon, Jun 1, 2009 at 3:33 PM, nx7000  wrote:

>
> You made me realize I was wrong: the version isn't 1.1 as I claimed, it is
> 2.0.1 instead. There is a link in Intalio forums to the instructions for
> running v.1.1 as a service, and that misled me. It is  no wonder that the
> default wrapper configuration for 1.1 didn't work.
>
> I just tried the default configuration for 2.0
> (
> http://cwiki.apache.org/GMOxDOC20/configuring-geronimo-as-a-windows-service.html
> ),
> but the server doesn't start. I am about to give up with this, as I have
> already used days trying it.
>
> The most recent error message is something I have never encountered before.
> geronimo.log says the following:
>
> 10:17:19,072 ERROR [org.apache.geronimo.gbean.runtime.GBeanInstanceState]
> [WrapperSimpleAppMain] Error while starting; GBean is now in the FAILED
> state:
>
> abstractName="org.apache.geronimo.configs/webconsole-jetty6/2.0.1/car?J2EEApplication=org.apache.geronimo.configs/webconsole-jetty6/2.0.1/car,j2eeType=JACCManager,name=JACCManager"
> java.lang.ExceptionInInitializerError
>at
>
> org.apache.geronimo.security.jacc.ApplicationPolicyConfigurationManager.(ApplicationPolicyConfigurationManager.java:109)
>at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> ...
> Caused by: java.lang.NullPointerException
>at
> org.apache.geronimo.security.SubjectId.hashCode(SubjectId.java:79)
>at java.util.HashMap.put(HashMap.java:372)
>at java.util.Collections$SynchronizedMap.put(Collections.java:1979)
> ...
>
>
> Thanks,
> Petri Kannisto
>
>
>
>
> djencks wrote:
> >
> > You say that intalio server is based on geronimo 1.1 but the error
> > message indicates that a geronimo 2.0.1 module is trying to start.
> > Something is wrong here :-)  If the server you are using is really
> > based off of g. 2.0.1, fine, we can investigate that, but if it's
> > based off g. 1.1 then you need avoid installing modules from geronimo
> > 2.x on it.
> >
> > thanks
> > david jencks
> >
> > On May 29, 2009, at 7:05 AM, nx7000 wrote:
> >
> >>
> >> Hello all,
> >>
> >> I am attempting to run Intalio Server (which runs on Geronimo 1.1)
> >> as a
> >> Windows (XP) Service. Intalio has support for that, but the support
> >> is not
> >> available for the edition I am using.
> >>
> >> ...
> >>
> >> 12:20:59,806 ERROR
> >> [org.apache.geronimo.system.configuration.LocalAttributeManager]
> >> [WrapperStartStopAppMain] Unable to read saved manageable
> >> attributes. SAX
> >> parse error: cvc-elt.1: Cannot find the declaration of element
> >> 'attributes'.
> >> at line 2, column 403 in entity
> >> file:///C:/Asennukset/intalio-bpms-5.2.1.021/var/config/config.xml
> >> 12:21:11,821 ERROR
> >> [org.apache.geronimo.gbean.runtime.GBeanInstanceState]
> >> [WrapperStartStopAppMain] Error while starting; GBean is now in the
> >> FAILED
> >> state:
> >> abstractName="org.apache.geronimo.configs/connector-deployer/2.0.1/
> >> car?configurationName=org.apache.geronimo.configs/connector-deployer/
> >> 2.0.1/car"
> >> org.apache.geronimo.common.propertyeditor.PropertyEditorException:
> >> org.apache.xmlbeans.XmlException: error: The document is not a
> >> environm...@http://geronimo.apache.org/xml/ns/deployment-1.2: document
> >> element namespace mismatch expected
> >> "http://geronimo.apache.org/xml/ns/deployment-1.2"; got ""
> >>  at
> >> org
> >> .apache
> >> .geronimo
> >> .deployment
> >> .service.EnvironmentBuilder.setAsText(EnvironmentBuilder.java:277)
> >>
> >
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Intalio-and-Geronimo-1.1-as-a-Windows-Service-tp23778055s134p23778055.html
> >> Sent from the Apache Geronimo - Users mailing list archive at
> >> Nabble.com.
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Intalio-and-Geronimo-1.1-as-a-Windows-Service-tp23778055s134p23811002.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Some minute error in Geronimo Tutorials

2009-05-30 Thread chi runhua
Hi,

On Thu, May 28, 2009 at 8:16 PM, Sheshank Dudyala wrote:

> I have started using geronimo from last week and while following tutorials
> I found these minute errors
>
> in http://cwiki.apache.org/GMOxDOC21/web-applications.html web application
>
> my platform details: I am using geronimo 2.1.4 with eclipse ganymede
>
>
> In http://cwiki.apache.org/GMOxDOC21/web-application-for-jms-access.htmlat 
> 11. Name the
> *Message Destination Name* as jms/TestQueue. Select Next.
>
> I could create a destination only after I give some physical name otherwise
> it was leading me to "page not found" in geronimo console.
>
> and in geronimo-web.xml. It is still using the older JMS Resource Groups,
> instead of the newly created resource groups.


 I tried the above tutorial as well and I can create a destination
successfully without Physical name. And I was using Geronimo v2.1.4 and
Firefox 3.0.10 on Ubuntu 8.0.4.  Not sure it might be the problem of
explorer?

>
> And in
> http://cwiki.apache.org/GMOxDOC21/web-application-for-jdbc-access.html
>
> the downloaded images are not exactly similar to uploaded images(they are
> slightly distorted) can anyone tell me why is this happening and
>
> And in geronimo-web.xml, *jdbc%2Fuserds*
> should be replaced with *jdbc_userds*
>
> Thanks for bring this into our attention. The page is now updated with
correct datasource pool name as *jdbc_userds*
.

Jeff Chi


Re: How to deploy JSPWiki?

2009-05-13 Thread chi runhua
Hi Peter, I just deployed the latest JSPWiki.war on G2.1.4 and it succeeded
except for several warning from console.

Try http://localhost:8080/JSPWiki/ and I can see the main page.

Could you retry the package on the latest Geronimo version?

Jeff C

On Wed, May 13, 2009 at 2:49 PM, P.N.  wrote:

>
> Hello!
>
> I'm new to Geronimo, and want to use it with JSPWiki. I've dropped the war
> into the deploy folder, but it doesn't work. Could You, please, tell me what
> to configure? Don't know, where to start looking for in the docs, as I don't
> understand what's going wrong. To me it seems, that some libs aren't found,
> but they should be provided with the war, I think, so I'm really clueless
> :-(
>
> Thanks for any help in advance!
>
> Peter
>
>
>
> This is my console output:
>
>
> Geronimo Application Server started
> 08:32:41,968 WARN  [TomcatModuleBuilder] Web application . does not contain
> a WEB-INF/geronimo-web.xml deployment plan.  This may or may not be a
> problem, depe
> ding on whether you have things like resource references that need to be
> resolved.  You can also give the deployer a separate deployment plan file on
> the comma
> d line.
> 08:32:43,281 WARN  [JspModuleBuilderExtension] JspModuleBuilderExtension:
> Could not load tag class: com.ecyrd.jspwiki.tags.RSSCoffeeCupLinkTag
> mentioned in TLD
> file at file:/C:/Programme/Apache Software
> Foundation/Geronimo-Tomcat_6-JEE5-2.0.2/repository/default/JSPWiki/1242196361546/JSPWiki-1242196361546.war/WEB-INF/j
> pwiki.tld
> 08:32:43,718 WARN  [JspModuleBuilderExtension] JspModuleBuilderExtension:
> Could not load tag class: com.opensymphony.module.oscache.web.tag.CacheTag
> mentioned
> n TLD file at file:/C:/Programme/Apache Software
> Foundation/Geronimo-Tomcat_6-JEE5-2.0.2/repository/default/JSPWiki/1242196361546/JSPWiki-1242196361546.war/WEB
> INF/oscache.tld
> 08:32:43,718 WARN  [JspModuleBuilderExtension] JspModuleBuilderExtension:
> Could not load tag class:
> com.opensymphony.module.oscache.web.tag.UseCachedTag mentio
> ed in TLD file at file:/C:/Programme/Apache Software
> Foundation/Geronimo-Tomcat_6-JEE5-2.0.2/repository/default/JSPWiki/1242196361546/JSPWiki-1242196361546.war
> WEB-INF/oscache.tld
> 08:32:43,718 WARN  [JspModuleBuilderExtension] JspModuleBuilderExtension:
> Could not load tag class: com.opensymphony.module.oscache.web.tag.FlushTag
> mentioned
> n TLD file at file:/C:/Programme/Apache Software
> Foundation/Geronimo-Tomcat_6-JEE5-2.0.2/repository/default/JSPWiki/1242196361546/JSPWiki-1242196361546.war/WEB
> INF/oscache.tld
> Starting up background thread: JSPWiki Lucene Indexer.
> Starting up background thread: WatchDog for 'JSPWiki'.
> org.apache.geronimo.kernel.config.LifecycleException: start of
> default/JSPWiki/1242196361546/war failed
>at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:547)
>at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511)
>at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke()
>at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
>at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
>at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
>at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
>at
> org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$906027f7.startConfiguration()
>at
> org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
>at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.geronimo.kernel.config.InvalidConfigException:
> Unknown start exception
>at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:514)
>at
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
>at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
>... 12 more
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
> Configuration default/JSPWiki/1242196361546/war failed to start due to the
> following reason
> :
>  The service
> J2EEApplication=null,j2eeType=WebModule,name=default/JSPWiki/1242196361546/war
> did not start because ContainerBase.addChild: start: LifecycleExce
> tion:  java.io.IOException: Context did not start for an unknown reason
>
>at
> org.apache.geronimo.ke

  1   2   >