Re: javax.ejb.EJBAccessException - Unauthorized Access by Principal Denied

2010-12-02 Thread viola.lu

You can refer to geronimo sample DataCDInfo
https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1/samples/DataCDInfo/DataCDInfo-JTA-ejb/src/main/java/org/apache/geronimo/samples/datacdinfo/core/DataCDInfoAdmin.java
which also used the ejb security. 
Good Luck!
-- 
View this message in context: 
http://apache-geronimo.328035.n3.nabble.com/javax-ejb-EJBAccessException-Unauthorized-Access-by-Principal-Denied-tp2006827p2009511.html
Sent from the Users mailing list archive at Nabble.com.


Re: Deploying source code using geronimo2.2/eclipse/GEP

2010-11-30 Thread viola.lu

If you already install GEP 3.0 , no need to install 2.2.1 GEP again, it's
backward compatibility.
So try a clean GEP. Thanks.
-- 
View this message in context: 
http://apache-geronimo.328035.n3.nabble.com/Deploying-source-code-using-geronimo2-2-eclipse-GEP-tp1996409p1997393.html
Sent from the Users mailing list archive at Nabble.com.


Re: Simple clustering example (Helloworld-cluster) gives exception on second node

2010-08-23 Thread viola.lu

Can you paste your hello cluster example and your config.xml under
$geronimo/var/config/?thanks.
Here is WADI cluster configuration doc:
https://cwiki.apache.org/GMOxDOC22/wadi-clustering.html.For your reference.
-- 
View this message in context: 
http://apache-geronimo.328035.n3.nabble.com/Simple-clustering-example-Helloworld-cluster-gives-exception-on-second-node-tp1294376p1304096.html
Sent from the Users mailing list archive at Nabble.com.


Re: log4jResource setting in GBean: ApplicationLog4jConfigurationGBean

2009-07-09 Thread viola.lu

Can you attach your application here and your geronimo server version?
thanks.

djencks wrote:
 
 
 On Jun 8, 2009, at 11:03 PM, viola.lu wrote:
 

 hi, i follow steps in
 http://cwiki.apache.org/GMOxDOC22/configuring-application-specific-logging-with-log4j.html
  
 ,
 and add gbean information in geronimo-web.xml using log4jResource.

 dep:gbean
 class 
 = 
 org 
 .apache 
 .geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean
 name=testlogLog4jConfiguration

dep:attribute
 name=log4jResourceMETA-INF/log4j.properties/dep:attribute

/dep:gbean

 But Can't find META-INF/log4j.properties  error always exists. if  
 i use
 log4jFile setting like below:

 dep:gbean
 class 
 = 
 org 
 .apache 
 .geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean
 name=testlogLog4jConfiguration
  dep:attribute
 name=log4jFilevar/log/log4j.properties/dep:attribute
dep:reference
 name=ServerInfodep:nameServerInfo/dep:name/dep:reference
!--dep:attribute
 name=log4jResourceMETA-INF/log4j.properties/dep:attribute--
/dep:gbean

 it works well.

 I looked into ApplicationLog4jConfigurationGBean code:
 ...
 InputStream in;
if (log4jFile != null) {
File file = serverInfo.resolveServer(log4jFile);
in = new FileInputStream(file);
} else if (log4jResource != null) {
in = classloader.getResourceAsStream(log4jResource);
if (in == null) {
throw new NullPointerException(No log4j properties  
 resource
 found at  + log4jResource);
}
} else {
return;
}

 ...

 in = classloader.getResourceAsStream(log4jResource);

 ClassLoader will search this file from classpath, and my project  
 structure
 is:

 LogWeb
---src(testlog.java
---WebContent
  META-INF(log4j.properties)
  WEB-INF
  index.jsp


 Why it can't find out file META-INF/log4j.properties?
 
 Because that's not in your classpath.
 
 Try WEB-INF/classes/META-INF/log4j.properties.
 
 thanks
 david jencks
 


 Anyone can figure it out? Thanks.
 -- 
 View this message in context:
 http://www.nabble.com/log4jResource-setting-in-GBean%3A-ApplicationLog4jConfigurationGBean-tp23936783s134p23936783.html
 Sent from the Apache Geronimo - Users mailing list archive at  
 Nabble.com.

 
 

-- 
View this message in context: 
http://www.nabble.com/log4jResource-setting-in-GBean%3A-ApplicationLog4jConfigurationGBean-tp23936783s134p24420049.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: log4jResource setting in GBean: ApplicationLog4jConfigurationGBean

2009-07-09 Thread viola.lu

Can you attach your application here and your geronimo server version?
thanks. 

lvdpal wrote:
 
 I'm trying to do the same thing, but so far my application didn't have a
 deployment plan yet. Now I'm trying to add one, so I can add the GBean,
 but it's still not logging the way I want to. Any idea what I might be
 doing wrong? (I have of course put the properties file in the specified
 directory.)
 
 web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1;
 xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.2;
 xmlns:name=http://geronimo.apache.org/xml/ns/naming-1.2;
 xmlns:app=http://geronimo.apache.org/xml/ns/j2ee/application-2.0;
 xmlns:sec=http://geronimo.apache.org/xml/ns/security-2.0;
 xmlns:pers=http://java.sun.com/xml/ns/persistence;
 context-rootLunaboek/context-root
 
 gbean name=DirectoryLog4jConfiguration
 class=org.apache.geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean
 attribute name=log4jFilevar/lunaboek/log4j.properties/attribute
 reference name=ServerInfonameServerInfo/name/reference
 /gbean
 /web-app
 

-- 
View this message in context: 
http://www.nabble.com/log4jResource-setting-in-GBean%3A-ApplicationLog4jConfigurationGBean-tp23936783s134p24420060.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Performance tuning...

2009-07-03 Thread viola.lu

Any log about your errors? And some suggestions: maximize your OS tcp
connections and open file descriptors, on linux:
modify /etc/sysctl.conf with net.ipv4.ip_local_port_range = 1024 65000 ,this
will promise about 6000 tcp connections and run sysctl -p to check whether
this setting works fine.

modify /etc/security/limits.conf with 
root soft nofile 10240 #you can change 10240 as you would like
root hard nofile 10240

edit /etc/pam.d/login with
session required pam_limits.so

Pls try it!


appel wrote:
 
 Hi
 
 I am in need of performance tuning my Geronimo (Jetty) server to
 accommodate for a specific type of load burst.
 
 
 The behavior I need to tune Geronimo to handle goes something like this:
 
 - Every minute, 3000 unique clients will load up a set of 4 pages.
 - This happens every minute for 10 minutes, so all in all there are 30.000
 unique clients that will try to connect and request those 4 pages over a
 period of 10 minutes.
 
 
 The pages are very plain, two html pages, two jsp pages that do minimum
 stuff.
 
 The bottleneck here is the number of clients.
 
 How can I performance tune Geronimo (Jetty container) to handle this type
 of high client load?
 
 (I've already increased the max-threads to 500, but when I do performance
 load-test in JMeter I get lots of errors.)
 
 Thanks.
 

-- 
View this message in context: 
http://www.nabble.com/Performance-tuning...-tp24320965s134p24321181.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: What are the specifics steps for manual deployment ?

2009-06-19 Thread viola.lu

You should use deploy command or hot deploy(just copy your app to deloy
folder like in tomcat)  to deploy  your application following
http://cwiki.apache.org/GMOxDOC22/deploying-and-undeploying-applications.html

And in geronimo, tomcat is in
$your_geronimo_install_Dir\repository\org\apache\tomcat

Your web app structure seems fine(geronimo web app structure same as tomcat,
just an extra geronimo-web.xml. which is geronimo specific deployment plan),
i recommend your can use Geronimo Eclipse plugin in eclipse to simplify your
develop work, you can install GEP follwoing 
http://cwiki.apache.org/GMOxDOC21/how-to-install-geronimo-eclipse-plugin.html,
and how to develop in it follwoing
http://cwiki.apache.org/GMOxDOC21/how-to-use-geronimo-eclipse-plugin.html#HowtoUseGeronimoEclipsePlugin-DeployRunUndeployandRedeployanApplication.

You can find out more help from Geronimo 2.1 doc link:
http://cwiki.apache.org/GMOxDOC21/ in your development process. 


Your 

I think whether

caof2005 wrote:
 
 Hello folks,
 
 With a newbe questions/request:
 
 Can anybody refer me to any document/link which indicate me which are the
 steps to do a manual deployment without using the deployment tool (deploy
 ) ?
 
 I'm using Geronimo 2.1.3 with Tomcat 6
 
 I tried to follow the oldie/classic example of building a dynamic project
 by hand (no IDE's, nor deploy tool at all) just using the java, javac and
 jar command line tools.
 
 So I tried to manually define the basic directory deployment structure
 shown in 4.X, 5.X versions of Tomcat:
 
 webapps
 --MyApp_Directory
 ---WEB-INF
 web.xml
 geronimo-web.xml
 lib
 classes
 com
 example
 ---web
 --classA.class
 ---model
 --classB.class
  
 But I couldn't find any tomcat directory in Geronimo installation
 directory which I can define inside that structure.
 
 So the question is  am I assuming correctly that I can manually define
 the deployment structure as I can do it in older versions of Tomcat?
 Or do I have to use the deployment tool (deploy) in order to manually
 deploy any application ?
 
 Any guidance would be very appreciated.
 Regards
 Carlos
 

-- 
View this message in context: 
http://www.nabble.com/What-are-the-specifics-steps-for-manual-deployment---tp24120872s134p24121051.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Hello World Tutorial - Requested Resource not available

2009-06-12 Thread viola.lu

For hello world sample, access link is
http://localhost:8080/HelloWorld/hello.jsp, not
http://localhost:8080/Hello/hello.jsp.

caof2005 wrote:
 
 Hi, folks, I´m totally newbe to Geronimo so this question:
 
 I have tried to do the Hello World Web Application that is described in
 the Geronimo´s v2.1 Developers Guide Tutorial Section.
 
 I am using Eclipse Gamynedes 3.4.2 with the Geronimo Eclipse Plugin (GEP)
 2.1.4.
 
 I followed each of the steps indicated in the tutorial, however at the end
 when trying to run and deploy a simple Hello.jsp page from within Eclipse
 GEP, what I got from the embedded browser is the following error:
 
 HTTP status 404/hello/
 type status report
 mesage /hello/
 description The requested resource (/hello/) is not available.
 
 Does anybody have an idea what can be happening?
 
 Regards.
 Carlos
 
 

-- 
View this message in context: 
http://www.nabble.com/Hello-World-Tutorial---Requested-Resource-not-available-tp24000364s134p24000701.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Hello World Tutorial - Requested Resource not available

2009-06-12 Thread viola.lu

pls add  welcome-filehello.jsp/welcome-file entry in your web.xml under
WEB-INF.

caof2005 wrote:
 
 Thanks Viola.
 I was wrong when writing the error message that I got. The correct one is:
 
 HTTP status 404/HelloWorld/
 type status report
 mesage /HelloWorld/
 description The requested resource (/HelloWorld/) is not available.
 
 And http://localhost:8080/HelloWorld/ address automatically appeared in
 the url address bar of the embedded browser after I run/deploy.
 
 So as you see nothing changes but the name of the resource.
 
 However, while I was trying to inspect that address, I  appended  the
 hello.jsp part to the end of the address. And it worked perfectly!
 Thanks a lot!
 
 But I still have the question...:
 Is there a way to configure the embedded browser, so that it automatically
 detects the correct URL?
 
 I carefully followed each of the steps indicated in the tutorial, so I
 supposed that I will get no error message at all, or had to change
 anything in any view/browser.
 
 The parameters that I used while I was in the Dynamic Project Wizard were:
 
 Project Name: HelloWorld
 Directory: D:\SWExercises\eclipse\HelloWorld
 Target Runtime: Apache Geronimo v2.1
 Dynamic WebModule Version: 2.5
 Configuration: Default Configuration for Apache v2.1
 Context Root: HelloWorld
 Content Directory: WebContent
 Java Source Directory: src
 Generate Deployment Descriptor - yes
 Group Id: default
 Artifact Id:
 Version: 1.0
 Artifact Type: car
 Add runtime dependency to Geronimo shared library - no
 
 Parent Folder: HellWorld/WebContent
 Name of the JSP added to the project: hello.jsp
 
 
 Could you clarify what I did wrong?
 
 Thanks
 Carlos
 
 
 viola.lu wrote:
 
 For hello world sample, access link is
 http://localhost:8080/HelloWorld/hello.jsp, not
 http://localhost:8080/Hello/hello.jsp.
 
 caof2005 wrote:
 
 Hi, folks, I´m totally newbe to Geronimo so this question:
 
 I have tried to do the Hello World Web Application that is described
 in the Geronimo´s v2.1 Developers Guide Tutorial Section.
 
 I am using Eclipse Gamynedes 3.4.2 with the Geronimo Eclipse Plugin
 (GEP) 2.1.4.
 
 I followed each of the steps indicated in the tutorial, however at the
 end when trying to run and deploy a simple Hello.jsp page from within
 Eclipse GEP, what I got from the embedded browser is the following
 error:
 
 HTTP status 404/hello/
 type status report
 mesage /hello/
 description The requested resource (/hello/) is not available.
 
 Does anybody have an idea what can be happening?
 
 Regards.
 Carlos
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Hello-World-Tutorial---Requested-Resource-not-available-tp24000364s134p24008438.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



log4jResource setting in GBean: ApplicationLog4jConfigurationGBean

2009-06-09 Thread viola.lu

hi, i follow steps in
http://cwiki.apache.org/GMOxDOC22/configuring-application-specific-logging-with-log4j.html,
and add gbean information in geronimo-web.xml using log4jResource.

dep:gbean
class=org.apache.geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean
name=testlogLog4jConfiguration
  
dep:attribute
name=log4jResourceMETA-INF/log4j.properties/dep:attribute
   
/dep:gbean

But Can't find META-INF/log4j.properties  error always exists. if i use
log4jFile setting like below:

dep:gbean
class=org.apache.geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean
name=testlogLog4jConfiguration
  dep:attribute
name=log4jFilevar/log/log4j.properties/dep:attribute
dep:reference
name=ServerInfodep:nameServerInfo/dep:name/dep:reference
!--dep:attribute
name=log4jResourceMETA-INF/log4j.properties/dep:attribute--   
/dep:gbean

it works well.

I looked into ApplicationLog4jConfigurationGBean code:
...
InputStream in;
if (log4jFile != null) {
File file = serverInfo.resolveServer(log4jFile);
in = new FileInputStream(file);
} else if (log4jResource != null) {
in = classloader.getResourceAsStream(log4jResource);
if (in == null) {
throw new NullPointerException(No log4j properties resource
found at  + log4jResource);
}
} else {
return;
}

...

in = classloader.getResourceAsStream(log4jResource);

ClassLoader will search this file from classpath, and my project structure
is:

LogWeb
---src(testlog.java
---WebContent
  META-INF(log4j.properties)
  WEB-INF
  index.jsp


Why it can't find out file META-INF/log4j.properties?

Anyone can figure it out? Thanks.
-- 
View this message in context: 
http://www.nabble.com/log4jResource-setting-in-GBean%3A-ApplicationLog4jConfigurationGBean-tp23936783s134p23936783.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: log4jResource setting in GBean: ApplicationLog4jConfigurationGBean

2009-06-09 Thread viola.lu

Thanks david.

 I moved folder META-INF/log4j.properties to WEB-INF/classes/, and then
modify deployment plan with :
dep:attribute
name=log4jResourceMETA-INF/log4j.properties/dep:attribute

It works oz it's in the classpath now. 



viola.lu wrote:
 
 hi, i follow steps in
 http://cwiki.apache.org/GMOxDOC22/configuring-application-specific-logging-with-log4j.html,
 and add gbean information in geronimo-web.xml using log4jResource.
 
 dep:gbean
 class=org.apache.geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean
 name=testlogLog4jConfiguration
   
 dep:attribute
 name=log4jResourceMETA-INF/log4j.properties/dep:attribute

 /dep:gbean
 
 But Can't find META-INF/log4j.properties  error always exists. if i use
 log4jFile setting like below:
 
 dep:gbean
 class=org.apache.geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean
 name=testlogLog4jConfiguration
   dep:attribute
 name=log4jFilevar/log/log4j.properties/dep:attribute
 dep:reference
 name=ServerInfodep:nameServerInfo/dep:name/dep:reference
 !--dep:attribute
 name=log4jResourceMETA-INF/log4j.properties/dep:attribute--   
 /dep:gbean
 
 it works well.
 
 I looked into ApplicationLog4jConfigurationGBean code:
 ...
 InputStream in;
 if (log4jFile != null) {
 File file = serverInfo.resolveServer(log4jFile);
 in = new FileInputStream(file);
 } else if (log4jResource != null) {
 in = classloader.getResourceAsStream(log4jResource);
 if (in == null) {
 throw new NullPointerException(No log4j properties
 resource found at  + log4jResource);
 }
 } else {
 return;
 }
 
 ...
 
 in = classloader.getResourceAsStream(log4jResource);
 
 ClassLoader will search this file from classpath, and my project structure
 is:
 
 LogWeb
 ---src(testlog.java
 ---WebContent
   META-INF(log4j.properties)
   WEB-INF
   index.jsp
 
 
 Why it can't find out file META-INF/log4j.properties?
 
 Anyone can figure it out? Thanks.
 

-- 
View this message in context: 
http://www.nabble.com/log4jResource-setting-in-GBean%3A-ApplicationLog4jConfigurationGBean-tp23936783s134p23938431.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Error when deploying a realm with a login module:org.apache.geronimo.openejb.OpenejbRemoteLoginModule

2009-06-09 Thread viola.lu

pls add openejb dependency as below:
dependency
groupId org.apache.geronimo.configs/groupId
artifactIdopenejb/artifactId
typecar/type
/dependency

Then it will find OpenEjbremoteloginmodule class.



Rodger-10 wrote:
 
 My geronimo version is 2.1.4
 And in repository,there is no client-security.
 
 Thanks.
 
 2009/6/9, David Jencks david_jen...@yahoo.com:
 I don't see anything obviously wrong.

 It _really_ shouldn't make a difference but could you try using client-
 security instead of j2ee-security in your plan and also include the
 geronimo version in the dependency?

 Also, what is the geronimo version?

 thanks
 david jencks

 On Jun 9, 2009, at 6:16 AM, Rodger wrote:

 My realm deploy plan named security_realm.xml is as follow:
 =
 module xmlns=http://geronimo.apache.org/xml/ns/deployment-1.2;
 environment
 moduleId
 groupIdconsole.realm/groupId
 artifactIdremote-openejb-realm/artifactId
 version1.0/version
 typecar/type
 /moduleId
 dependencies
 dependency
 groupIdorg.apache.geronimo.framework/groupId
 artifactIdj2ee-security/artifactId
 typecar/type
 /dependency
 /dependencies
 /environment
 gbean name=remote-openejb-realm
 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;
 attribute name=realmNameremote-openejb-realm/attribute
 reference name=ServerInfo
 nameServerInfo/name
 /reference
 xml-reference name=LoginModuleConfiguration
 log:login-config
 xmlns:log=http://geronimo.apache.org/xml/ns/loginconfig-2.0
 
 log:login-module control-flag=REQUIRED wrap-
 principals=false
 log:login-domain-nameremote-openejb-realm/
 log:login-domain-name
 log:login-module-
 classorg.apache.geronimo.openejb.OpenejbRemoteLoginModule/
 log:login-module-class
 log:option name=RemoteSecurityRealmtest-
 realm/log:option
 log:option name=ServerURIejbd://localhost:
 4201/log:option
 /log:login-module
 /log:login-config
 /xml-reference
 /gbean
 /module
 =
 =
 =
 ==
 When
 binjava -jar deployer.jar deploy d:\security_realm.xml
 The error is as follows:
 Error: Operation failed: start of
 console.realm/remote-openejb-realm/1.0/car failed

 Unknown start exception

 Configuration console.realm/remote-openejb-realm/1.0/car
 failed to
 start due to the following reasons:

   The service
 ServiceModule=console.realm/remote-openejb-realm/1.0/
 car,j2eeType=SecurityRe
 alm,name=remote-openejb-realm
 did not start because
 org.apache.geronimo.openejb.OpenejbRemoteLoginModule in
 classloader
 console.realm/remote-openejb-realm/1.0/car

 It seems that the system can not find the class
 org.apache.geronimo.openejb.OpenejbRemoteLoginModule.
 I get the reference from
 http://cwiki.apache.org/GMOxDOC22/configuring-javaee-app-client-security.html
 --
 Best Regards,
 Rodger.


 
 
 -- 
 Best Regards,
 Rodger.
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-when-deploying-a-realm-with-a-login-module%3Aorg.apache.geronimo.openejb.OpenejbRemoteLoginModule-tp23942630s134p23955030.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: JAX-WS with CXF Config Question

2009-06-08 Thread viola.lu

You can 
export GERONIMO_OPTS=-Dorg.apache.geronimo.jaxws.provider=cxf

to use cxf as your jaxws provider also.
Pls refer to http://cwiki.apache.org/GMOxDOC22/configure-jax-ws-engine.html



JohnD wrote:
 
 Hi,
 
 I currently am using geronimo 2.1.4 with the Tomcat 6 bundle and want to
 configure it to use CXF as the JAX-WS provider rather than the default
 Axis.  When I review the documentation [1], I see that it tells me to
 edit var/config/config.xml and change the load=true for Axis to
 load=false and the associated CXF load=false to load=true.
 However, that property is not part of the config and instead it tests
 whether or not tomcat6 and Axis are true etc.
 
 I suspect the documentation is incorrect, but wanted to know if there is
 way to configure CXF for use with my current setup or if the easiest way
 was to download the jetty bundled version, which appears to use CXF be
 default, correct?
 
 Any guidance is greatly appreciated.
 
 Thanks,
 John
 
 

-- 
View this message in context: 
http://www.nabble.com/JAX-WS-with-CXF-Config-Question-tp23912660s134p23920405.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: geronimo 2.1.4 failed to start!

2009-06-08 Thread viola.lu

Pls check whether port 1050 is free to use, thanks.

Boern wrote:
 
 Hi,all
 
 I start geronimo from eclipse ,but It failed,and the console output is :
 
 Booting Geronimo Kernel (in Java 1.6.0_12)...
 Module  1/69
 org.apache.geronimo.framework/gshell-framework/2.1.4/car
 started in   .000s
 Module  2/69
 org.apache.geronimo.framework/gshell-geronimo/2.1.4/car
 started in   .000s
 Module  3/69
 org.apache.geronimo.framework/j2ee-system/2.1.4/car
 started in   .000s
 Module  4/69
 org.apache.geronimo.framework/transformer-agent/2.1.4/car
 started in   .000s
 Module  5/69
 org.apache.geronimo.framework/jee-specs/2.1.4/car
 started in   .000s
 Module  6/69
 org.apache.geronimo.framework/rmi-naming/2.1.4/car
 started in  1.252s
 Module  7/69
 org.apache.geronimo.framework/xmlbeans/2.1.4/car
 started in   .000s
 Module  8/69
 org.apache.geronimo.framework/plugin/2.1.4/car
 started in   .291s
 Module  9/69
 org.apache.geronimo.framework/j2ee-security/2.1.4/car
 started in   .631s
 Module 10/69
 org.apache.geronimo.framework/server-security-config/2.1.4/car
 started in   .130s
 Module 11/69
 org.apache.geronimo.framework/geronimo-gbean-deployer/2.1.4/car
 started in   .931s
 Module 12/69
 org.apache.geronimo.configs/j2ee-server/2.1.4/car
 started in   .121s
 Module 13/69
 org.apache.geronimo.configs/transaction/2.1.4/car
 started in   .631s
 Module 14/69
 org.apache.geronimo.configs/derby/2.1.4/car
 started in   .000s
 Module 15/69
 org.apache.geronimo.configs/system-database/2.1.4/car
 started in  5.688s
 Module 16/69
 org.apache.geronimo.configs/activemq-broker/2.1.4/car
 started in  3.585s
 Module 17/69
 org.apache.geronimo.configs/openjpa/2.1.4/car
 started in   .010s
 Module 18/69
 org.apache.geronimo.configs/webservices-common/2.1.4/car
 started in   .000s
 Module 19/69
 org.apache.geronimo.configs/openejb/2.1.4/car
 started in  1.602s
 Module 20/69
 org.apache.geronimo.configs/axis/2.1.4/car
 started in   .271s
 Module 21/69
 org.apache.geronimo.configs/axis2/2.1.4/car
 started in   .000s
 Module 22/69
 org.apache.geronimo.configs/axis2-ejb/2.1.4/car
 started in   .000s
 Module 23/69
 org.apache.geronimo.configs/jasper/2.1.4/car
 started in   .000s
 Module 24/69
 org.apache.geronimo.configs/tomcat6/2.1.4/car
 2009-06-08 17:28:36,149 ERROR [JAASRealm] Class
 org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal not
 found! Class not added.
 2009-06-08 17:28:36,149 ERROR [JAASRealm] Class
 org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal not
 found! Class not added.
 2009-06-08 17:28:36,149 ERROR [JAASRealm] Class
 org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal not
 found! Class not added.
 2009-06-08 17:28:36,149 ERROR [JAASRealm] Class
 org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal not
 found! Class not added.
  started in  3.875s
 Module 25/69
 org.apache.geronimo.configs/tomcat6-no-ha/2.1.4/car
 started in   .000s
 Module 26/69
 org.apache.geronimo.configs/clustering/2.1.4/car
 started in   .030s
 Module 27/69
 org.apache.geronimo.configs/j2ee-deployer/2.1.4/car
 started in   .350s
 Module 28/69
 org.apache.geronimo.configs/connector-deployer/2.1.4/car
 started in   .190s
 Module 29/69
 org.apache.geronimo.configs/tomcat6-deployer/2.1.4/car
 started in   .180s
 Module 30/69
 org.apache.geronimo.configs/tomcat6-clustering-builder-wadi/2.1.4/car
 started in   .050s
 Module 31/69
 org.apache.geronimo.configs/activemq-ra/2.1.4/car
 started in   .991s
 Module 32/69
 org.apache.geronimo.configs/javamail/2.1.4/car
 started in   .120s
 Module 33/69
 org.apache.geronimo.configs/jasper-deployer/2.1.4/car
 started in   .030s
 Module 34/69
 org.apache.geronimo.configs/myfaces/2.1.4/car
 started in   .050s
 Module 35/69
 org.apache.geronimo.configs/myfaces-deployer/2.1.4/car
 started in   .070s
 Module 36/69
 org.apache.geronimo.configs/openejb-deployer/2.1.4/car
 started in   .190s
 Module 37/69
 org.apache.geronimo.configs/openejb-corba-deployer/2.1.4/car
 started in   .241s
 Module 38/69
 org.apache.geronimo.configs/persistence-jpa10-deployer/2.1.4/car
 started in   .150s
 Module 39/69
 org.apache.geronimo.configs/axis-deployer/2.1.4/car
 started in   .240s
 Module 40/69
 org.apache.geronimo.configs/jaxws-deployer/2.1.4/car
 started in   .000s
 Module 41/69
 org.apache.geronimo.configs/axis2-deployer/2.1.4/car
 started in   .110s
 Module 42/69
 org.apache.geronimo.configs/jaxws-ejb-deployer/2.1.4/car
 started in   .000s
 Module 43/69
 org.apache.geronimo.configs/axis2-ejb-deployer/2.1.4/car
 started in   .110s
 Module 44/69
 org.apache.geronimo.configs/spring/2.1.4/car
 started in   .000s
 Module 45/69
 org.apache.geronimo.configs/cxf/2.1.4/car
 started in   .000s
 Module 46/69
 org.apache.geronimo.configs/cxf-ejb/2.1.4/car
 started in   .000s
 Module 47/69
 org.apache.geronimo.configs/client-deployer/2.1.4/car
 started in   .110s
 Module 48/69
 org.apache.geronimo.configs/hot-deployer/2.1.4/car
 started in   .821s
 Module 49/69
 

Re: Geronom 2.1.4, Thread Pools are reporting zero usage

2009-03-24 Thread viola.lu

In G admin console, there is a monitoring porlet on the left navigation panel
which can display your local or remote server statistics information such as
tomcat ajp connector, web connector Transaction Manager or web modules:
TomcatAJPConnector
Active Request Count0
Busy Threads Current1
Busy Threads Max25
Busy Threads Min0
Bytes Received  0
Bytes Sent  0
Error Count 0
Open Connections Current0
Open Connections Max0
Open Connections Min0
Request Time Count  0
Request Time MaxTime0
Request Time MinTime0
Request Time TotalTime  0

TomcatWebConnector
Active Request Count0
Busy Threads Current4
Busy Threads Max6
Busy Threads Min0
Bytes Received  198
Bytes Sent  689926
Error Count 1
Open Connections Current0
Open Connections Max0
Open Connections Min0
Request Time Count  107
Request Time MaxTime9578
Request Time MinTime0
Request Time TotalTime  24856

TomcatWebSSLConnector
Active Request Count0
Busy Threads Current0
Busy Threads Max0
Busy Threads Min0
Bytes Received  0
Bytes Sent  0
Error Count 0
Open Connections Current0
Open Connections Max0
Open Connections Min0
Request Time Count  0
Request Time MaxTime0
Request Time MinTime0
Request Time TotalTime  0

if you want to set web http connector thread usage, you can edit section 
module name=org.apache.geronimo.configs/tomcat6/2.1.4/car in file
$g_install_dir/var/config/config.xml ,if you want to set datasource thread
pool, you can set Connection Pool Parameters when create datasource via
services-Database Pools , for JMS Resource thread pool , you can set
basic configuration setting for JMS provider, Connection Pool Parameters
for connection factory via services-JMS resources

Hope it can help you, thanks.




jklcom99 wrote:
 
 Thanks Jack,
 
 Is there a way that we can check for thread usage in the console?
 
 
 Jack Cai wrote:
 
 I looked through the code to see how ConnectorThreadPool and
 DefaultThreadPool are actually used. It seems that ConnectorThreadPool is
 used by org.apache.geronimo.connector.work.GeronimoWorkManagerGBean in
 JCA,
 and DefaultThreadPool is used by Jetty and System-database. So their
 names
 are misleading in some sense. You cannot expect that the
 ConnectorThreadPool
 has any link with Tomcat's web connector. Hope this helps.
 
 -Jack
 
 2009/3/12 jklcom99 jeff_k...@yahoo.com
 

 I'm running 3/2/09 2.1.4-SNAPSHOT.

 Geronimo console is reporting zero usages for both ConnectorThreadPool
 and
 DefaultThreadPool even with our application running.

 ConnectorThreadPool is set to 30 Max
 DefaultThreadPool is set to 200 min and 500 max


 Thank you

 --
 View this message in context:
 http://www.nabble.com/Geronom-2.1.4%2C-Thread-Pools-are-reporting-zero-usage-tp22461310s134p22461310.html
 Sent from the Apache Geronimo - Users mailing list archive at
 Nabble.com.


 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Geronom-2.1.4%2C-Thread-Pools-are-reporting-zero-usage-tp22461310s134p22694398.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: startup geronimo jetty on AIX fails

2009-03-23 Thread viola.lu

ulimit -a:
core file size(blocks, -c) 1048575
data seg size (kbytes, -d) 131072
file size (blocks, -f) 1048575
max memory size   (kbytes, -m) 32768
open files(-n) 2000
pipe size  (512 bytes, -p) 64
stack size(kbytes, -s) 32768
cpu time (seconds, -t) unlimited
max user processes(-u) 262144
virtual memory(kbytes, -v) unlimited

coz no options -verbose:sizes in jdk, so can't printout java -verbose:sizes
result.



kevan wrote:
 
 
 On Mar 23, 2009, at 1:48 AM, viola.lu wrote:
 

 I tried this on Aix 6.1 with ibm sdk, but no errors.
 
 Can you run ulimit -a? What are your settings?
 
 Also, Marco/Viola what settings does 'java -verbose:sizes' give you?
 
 --kevan
 

 kevan wrote:


 On Mar 20, 2009, at 2:45 AM, MarcoLaponder wrote:


 Thanks for your efforts anyway !

 ulimit -a gives:

 time(seconds)unlimited
 file(blocks) unlimited
 data(kbytes) 262144
 stack(kbytes)31248
 memory(kbytes)   unlimited
 coredump(blocks) 4194303
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/startup-geronimo-jetty-on-AIX-fails-tp22558472s134p22673643.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: How to launch IE browser to run console testsuite with maven

2009-03-23 Thread viola.lu

thanks Jarek, it works. So browser property is  set only by test.properties
and can't be set via command option?And i should create a test.properties
for every console testsuite:basic, advanced?

Jarek Gawor-2 wrote:
 
 -Piexplore does not work because shitty-maven-plugin forks another mvn
 process and it does not propagate the profile settings to that new
 process. But reading the shitty-maven-plugin documentation you can
 create console-testsuite/basic/test.properties file containing
 browser=*iexplore line and pass the right browser setting that way.
 
 Hope this helps,
 Jarek
 
 On Sun, Mar 22, 2009 at 11:25 PM, viola.lu viola...@gmail.com wrote:

 In g2.2 snapshot build folder, testsuite pom.xml file contains a profile
 iexplore.
 and i run command
 mvn install -Piexplore -Dtests=console-testsuite/basic
 -DgeronimoHome=%geronimo_instal_dir%

 but it still lanuched out firefox, not IE.

 So whether IE profile works in G2.2 snapshot?
 --
 View this message in context:
 http://www.nabble.com/How-to-launch-IE-browser-to-run-console-testsuite-with-maven-tp22653823s134p22653823.html
 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-launch-IE-browser-to-run-console-testsuite-with-maven-tp22653823s134p22674136.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



How to launch IE browser to run console testsuite with maven

2009-03-22 Thread viola.lu

In g2.2 snapshot build folder, testsuite pom.xml file contains a profile
iexplore.
and i run command 
mvn install -Piexplore -Dtests=console-testsuite/basic
-DgeronimoHome=%geronimo_instal_dir%

but it still lanuched out firefox, not IE.

So whether IE profile works in G2.2 snapshot?
-- 
View this message in context: 
http://www.nabble.com/How-to-launch-IE-browser-to-run-console-testsuite-with-maven-tp22653823s134p22653823.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: startup geronimo jetty on AIX fails

2009-03-22 Thread viola.lu

I tried this on Aix 6.1 with ibm sdk, but no errors.



kevan wrote:
 
 
 On Mar 20, 2009, at 2:45 AM, MarcoLaponder wrote:
 

 Thanks for your efforts anyway !

 ulimit -a gives:

 time(seconds)unlimited
 file(blocks) unlimited
 data(kbytes) 262144
 stack(kbytes)31248
 memory(kbytes)   unlimited
 coredump(blocks) 4194303

 
 Anybody else have access to an AIX box? Do you see the same results as  
 Marco?
 
 Marco,
 Did you try specifying the thread stack size (-Xmss) or limiting the  
 number of threads that will be generated?
 
 --kevan
 
 

-- 
View this message in context: 
http://www.nabble.com/startup-geronimo-jetty-on-AIX-fails-tp22558472s134p22654646.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory

2009-01-19 Thread viola.lu

pls add backport-util-concurrent-*.*.jar under
$G_Dir\repository\backport-util-concurrent\backport-util-concurrent\*.*\ to
classpath.

axiez wrote:
 
 I added activemq-core-4.1.2*.jar to classpath and retried. This time error
 message is:
 Exception in thread main java.lang.NoClassDefFoundError:
 edu/emory/mathcs/backport/java/util/concurrent/ConcurrentHashMap at
 org.apache.activemq.jndi.ActiveMQInitialContextFactory.getInitialContext(ActiveMQInitialContextFactory.java:63)
 ...
 ...
 
 axiez wrote:
 
 I have the following sample code and jndi.properties file:
 import javax.jms.*;
 import javax.naming.InitialContext;
 import java.util.*;
 import java.io.*;
 public class LogClient {
 public static void main(String[] args) throws Exception {
 Properties p = new Properties();
 p.load(new FileInputStream(jndi.properties));
 p.put(openejb.authentication.realmName,geronimo-admin);
 InitialContext ctx = new InitialContext(p);
 TopicConnectionFactory factory = (TopicConnectionFactory)
 ctx.lookup(java:comp/env/jms/DefaultActiveMQConnectionFactory);
 TopicConnection connection = factory.createTopicConnection();
 TopicSession session = connection.createTopicSession(false,
 Session.AUTO_ACKNOWLEDGE);
 Topic topic = (Topic)ctx.lookup(java:comp/env/jms/Topic);
 TopicPublisher publisher = session.createPublisher(topic);
 TextMessage msg = session.createTextMessage();
 msg.setText(This is a test message);
 publisher.send(msg);
 publisher.close();
 System.out.println(Message published. Please check application
 server's console to see the response from MDB);
 }
 }
 
 jndi.properties file:
 java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
 java.naming.provider.url=tcp://localhost:61616
 java.naming.security.principal=system
 java.naming.security.credentials=manager
 
 I ran the program after successful compilation. Error message is:
 Exception in thread main javax.naming.NoInitialContextException: Cannot
 instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory
 [Root exception is java.lang.ClassNotFoundException:
 org.apache.activemq.jndi.ActiveMQInitialContextFactory]
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/java.lang.ClassNotFoundException%3A-org.apache.activemq.jndi.ActiveMQInitialContextFactory-tp21537474s134p21539167.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory

2009-01-19 Thread viola.lu

You miss commons-logging-1.0.4.jar on classpath.

axiez wrote:
 
 I have the following sample code and jndi.properties file:
 import javax.jms.*;
 import javax.naming.InitialContext;
 import java.util.*;
 import java.io.*;
 public class LogClient {
 public static void main(String[] args) throws Exception {
 Properties p = new Properties();
 p.load(new FileInputStream(jndi.properties));
 p.put(openejb.authentication.realmName,geronimo-admin);
 InitialContext ctx = new InitialContext(p);
 TopicConnectionFactory factory = (TopicConnectionFactory)
 ctx.lookup(java:comp/env/jms/DefaultActiveMQConnectionFactory);
 TopicConnection connection = factory.createTopicConnection();
 TopicSession session = connection.createTopicSession(false,
 Session.AUTO_ACKNOWLEDGE);
 Topic topic = (Topic)ctx.lookup(java:comp/env/jms/Topic);
 TopicPublisher publisher = session.createPublisher(topic);
 TextMessage msg = session.createTextMessage();
 msg.setText(This is a test message);
 publisher.send(msg);
 publisher.close();
 System.out.println(Message published. Please check application
 server's console to see the response from MDB);
 }
 }
 
 jndi.properties file:
 java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
 java.naming.provider.url=tcp://localhost:61616
 java.naming.security.principal=system
 java.naming.security.credentials=manager
 
 I ran the program after successful compilation. Error message is:
 Exception in thread main javax.naming.NoInitialContextException: Cannot
 instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory
 [Root exception is java.lang.ClassNotFoundException:
 org.apache.activemq.jndi.ActiveMQInitialContextFactory]
 
 

-- 
View this message in context: 
http://www.nabble.com/java.lang.ClassNotFoundException%3A-org.apache.activemq.jndi.ActiveMQInitialContextFactory-tp21537474s134p21540330.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory

2009-01-19 Thread viola.lu

I think you forgot to add a geronimo server runtime library, which includes
general libs such as commons-loogins,geronmo-j2ee-management_1.1_spec..

axiez wrote:
 
 I added commons-logging-1.0.4.jar. This time the error is:
 java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/Stats
 
 axiez wrote:
 
 I have the following sample code and jndi.properties file:
 import javax.jms.*;
 import javax.naming.InitialContext;
 import java.util.*;
 import java.io.*;
 public class LogClient {
 public static void main(String[] args) throws Exception {
 Properties p = new Properties();
 p.load(new FileInputStream(jndi.properties));
 p.put(openejb.authentication.realmName,geronimo-admin);
 InitialContext ctx = new InitialContext(p);
 TopicConnectionFactory factory = (TopicConnectionFactory)
 ctx.lookup(java:comp/env/jms/DefaultActiveMQConnectionFactory);
 TopicConnection connection = factory.createTopicConnection();
 TopicSession session = connection.createTopicSession(false,
 Session.AUTO_ACKNOWLEDGE);
 Topic topic = (Topic)ctx.lookup(java:comp/env/jms/Topic);
 TopicPublisher publisher = session.createPublisher(topic);
 TextMessage msg = session.createTextMessage();
 msg.setText(This is a test message);
 publisher.send(msg);
 publisher.close();
 System.out.println(Message published. Please check application
 server's console to see the response from MDB);
 }
 }
 
 jndi.properties file:
 java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
 java.naming.provider.url=tcp://localhost:61616
 java.naming.security.principal=system
 java.naming.security.credentials=manager
 
 I ran the program after successful compilation. Error message is:
 Exception in thread main javax.naming.NoInitialContextException: Cannot
 instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory
 [Root exception is java.lang.ClassNotFoundException:
 org.apache.activemq.jndi.ActiveMQInitialContextFactory]
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/java.lang.ClassNotFoundException%3A-org.apache.activemq.jndi.ActiveMQInitialContextFactory-tp21537474s134p21556083.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory

2009-01-19 Thread viola.lu

1.In eclipse, first install Geronimo Eclipse Plugin from
http://geronimo.apache.org/development-tools.html, and define a Geronimo
server runtime.
2.In eclipse,right-click your project, build-path-library-add
library-Server runtime-choose apache geronmo server ,then you can run
your application.
3.If still class not found, you can find out more jars under Geronimo
repository, and add them to classpath.

Hope it can help!
Thanks.
Viola.Lu


axiez wrote:
 
 Could you please tell me how to add Geronimo server runtime library?
 
 axiez wrote:
 
 I have the following sample code and jndi.properties file:
 import javax.jms.*;
 import javax.naming.InitialContext;
 import java.util.*;
 import java.io.*;
 public class LogClient {
 public static void main(String[] args) throws Exception {
 Properties p = new Properties();
 p.load(new FileInputStream(jndi.properties));
 p.put(openejb.authentication.realmName,geronimo-admin);
 InitialContext ctx = new InitialContext(p);
 TopicConnectionFactory factory = (TopicConnectionFactory)
 ctx.lookup(java:comp/env/jms/DefaultActiveMQConnectionFactory);
 TopicConnection connection = factory.createTopicConnection();
 TopicSession session = connection.createTopicSession(false,
 Session.AUTO_ACKNOWLEDGE);
 Topic topic = (Topic)ctx.lookup(java:comp/env/jms/Topic);
 TopicPublisher publisher = session.createPublisher(topic);
 TextMessage msg = session.createTextMessage();
 msg.setText(This is a test message);
 publisher.send(msg);
 publisher.close();
 System.out.println(Message published. Please check application
 server's console to see the response from MDB);
 }
 }
 
 jndi.properties file:
 java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
 java.naming.provider.url=tcp://localhost:61616
 java.naming.security.principal=system
 java.naming.security.credentials=manager
 
 I ran the program after successful compilation. Error message is:
 Exception in thread main javax.naming.NoInitialContextException: Cannot
 instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory
 [Root exception is java.lang.ClassNotFoundException:
 org.apache.activemq.jndi.ActiveMQInitialContextFactory]
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/java.lang.ClassNotFoundException%3A-org.apache.activemq.jndi.ActiveMQInitialContextFactory-tp21537474s134p21556927.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory

2009-01-18 Thread viola.lu

HI, axiez:

 Have you added activemq-core-.jar (which contains
org.apache.activemq.jndi.ActiveMQInitialContextFactory)  under
$G_Dir\org\apache\activemq\activemq-core\ to your classpath and buildpath?

Thanks.
Viola.Lu


axiez wrote:
 
 I have the following sample code and jndi.properties file:
 import javax.jms.*;
 import javax.naming.InitialContext;
 import java.util.*;
 import java.io.*;
 public class LogClient {
 public static void main(String[] args) throws Exception {
 Properties p = new Properties();
 p.load(new FileInputStream(jndi.properties));
 p.put(openejb.authentication.realmName,geronimo-admin);
 InitialContext ctx = new InitialContext(p);
 TopicConnectionFactory factory = (TopicConnectionFactory)
 ctx.lookup(java:comp/env/jms/DefaultActiveMQConnectionFactory);
 TopicConnection connection = factory.createTopicConnection();
 TopicSession session = connection.createTopicSession(false,
 Session.AUTO_ACKNOWLEDGE);
 Topic topic = (Topic)ctx.lookup(java:comp/env/jms/Topic);
 TopicPublisher publisher = session.createPublisher(topic);
 TextMessage msg = session.createTextMessage();
 msg.setText(This is a test message);
 publisher.send(msg);
 publisher.close();
 System.out.println(Message published. Please check application
 server's console to see the response from MDB);
 }
 }
 
 jndi.properties file:
 java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
 java.naming.provider.url=tcp://localhost:61616
 java.naming.security.principal=system
 java.naming.security.credentials=manager
 
 I ran the program after successful compilation. Error message is:
 Exception in thread main javax.naming.NoInitialContextException: Cannot
 instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory
 [Root exception is java.lang.ClassNotFoundException:
 org.apache.activemq.jndi.ActiveMQInitialContextFactory]
 
 

-- 
View this message in context: 
http://www.nabble.com/java.lang.ClassNotFoundException%3A-org.apache.activemq.jndi.ActiveMQInitialContextFactory-tp21537474s134p21537612.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Gbean to get list of modules?

2009-01-15 Thread viola.lu

in gshell, there is a command to list modules:
gsh.bat|sh deploy/list-modules

Viola.Lu

Ricky Ignatius wrote:
 
 Hi,
 Is there any gbean to get list of modules on server?
 
 Thanks,
 
 Ricky
 

-- 
View this message in context: 
http://www.nabble.com/Gbean-to-get-list-of-modules--tp21488245s134p21491301.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: How to create new server runtime in Eclipse with version 2.2-SNAPSHOT

2009-01-12 Thread viola.lu

Hi, bongosdude:
  I tried GEP2.2snapshot (you can download from
http://people.apache.org/dist/geronimo/eclipse/unstable/2.2.0/ ) running on
G2.2snapshot, can deploy car/war to server.
  So you can choose to develop application with GEP 2.1.3 on G2.1.3 or GEP
2.2 snapshot on G2.2snapshot.

GOOD LUCK!
Viola.Lu
 


bongosdude wrote:
 
 Viola,
 
 Yes, I have confirmed last night that sample calculator and my project can
 be deployed to 2.1.3 but both failed to be deployed to 2.2-SNAPSHOT. I am
 trying to recompile from trunk again in the hope that some bugs are fixed
 to clear this hurdle. I will try to follow your recommended steps above
 and try again. It is always goods to try new suggestions/recommendations
 for problems, especially if the suggestions are from developers with deep
 knowledge on the subjects.
 
 And just a note. If I build my projects using car-maven-plugin and deploy
 it to 2.2-SNAPSHOT from console, I do not encounter any problems (same as
 calculator). But I only encountered problems with Eclipse/GEP deployment.
 
 Thanks
 
 -B
 
 
 viola.lu wrote:
 
 Hi,gongosdude:
 First keep geronimo server runtime jvm version consistent with eclipse
 jvm , and if you build G2.2 snapshot with JDK 1.6, you'd better run it on
 JDk 1.6, 
 Second pls check your eclipse configuration:
 Windows-Preference-Server-Runtime Environment, Edit your newly added
 server runtime:Application server install directory posists a correct G
 2.2 directory and choose a correct JRE.
 Third, when you defin a new server, pls select correct server runtime
 environment if multiple server runtime have been created.If you run G2.2
 snapshot, but choose a g2.1 server runtime environment, there is problem.
 Four, if possible, can you remove incorrect version of Apache Geronimo
 v2.1 2  from your server runtime or server list.
 After that, if all above don't work, pls first make sure your applicaton
 can run well on G2.1.3 server runtime via GEP 2.1.3. Currently, Latested
 GEP version 2.1.3 only has been verified on G2.1.* G2.0.*.
 
 Hope can help you
 GOOD Luck.
 Viola.Lu
 
 
 bongosdude wrote:
 
 Hi,
 
 I tried to build geronimo-2.2-SNAPSHOT from trunk and created new server
 runtime in eclipse. Eclipse complains with
 
 An incorrect version of Apache Geronimo v2.1 2 was detected.  Version
 2.1 was expected, but version 2.2-SNAPSHOT was found.
 
 Is it OK to ignore this message or did I do something wrong here. I
 currently could not deploy my EAR/CAR file from eclipse and I suspect
 that this error may be the cause.
 
 -B
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-create-new-server-runtime-in-Eclipse-with-version-2.2-SNAPSHOT-tp21382258s134p21410994.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: How to create new server runtime in Eclipse with version 2.2-SNAPSHOT

2009-01-09 Thread viola.lu

Hi,gongosdude:
First keep geronimo server runtime jvm version consistent with eclipse jvm ,
and if you build G2.2 snapshot with JDK 1.6, you'd better run it on JDk 1.6, 
Second pls check your eclipse configuration:
Windows-Preference-Server-Runtime Environment, Edit your newly added
server runtime:Application server install directory posists a correct G
2.2 directory and choose a correct JRE.
Third, when you defin a new server, pls select correct server runtime
environment if multiple server runtime have been created.If you run G2.2
snapshot, but choose a g2.1 server runtime environment, there is problem.
Four, if possible, can you remove incorrect version of Apache Geronimo v2.1
2  from your server runtime or server list.
After that, if all above don't work, pls first make sure your applicaton can
run well on G2.1.3 server runtime via GEP 2.1.3. Currently, Latested GEP
version 2.1.3 only has been verified on G2.1.* G2.0.*.

Hope can help you
GOOD Luck.
Viola.Lu


bongosdude wrote:
 
 Hi,
 
 I tried to build geronimo-2.2-SNAPSHOT from trunk and created new server
 runtime in eclipse. Eclipse complains with
 
 An incorrect version of Apache Geronimo v2.1 2 was detected.  Version 2.1
 was expected, but version 2.2-SNAPSHOT was found.
 
 Is it OK to ignore this message or did I do something wrong here. I
 currently could not deploy my EAR/CAR file from eclipse and I suspect that
 this error may be the cause.
 
 -B
 

-- 
View this message in context: 
http://www.nabble.com/How-to-create-new-server-runtime-in-Eclipse-with-version-2.2-SNAPSHOT-tp21382258s134p21384354.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: How to deploy web application to one port

2008-12-04 Thread viola.lu

You can create two geronim instances in one server:instance A in http port
2150, instance B in port 2051, then deploy hello_1 to instance A, hello_2 to
instance B.

Russell E Glaue wrote:
 
 Using geronimo-jetty 2.1.3
 
 How do I deploy a web application to one and only one single port?
 
 Let's say I have configured two Listen Sockets:
 1) 0.0.0.0:2150
 2) 0.0.0.0:2151
 
 If I simply deploy a web application to Geronimo as in:
 % deploy.sh deploy HelloWorld.war
 
 The sample application HellowWorld is accessible on both ports as in:
 1) http://0.0.0.0:2150/hello - SUCCESS!!!
 2) http://0.0.0.0:2151/hello - SUCCESS!!!
 
 
 
 Now, I can modify WelloWorld/WEB-INF/geronimo-web.xml with the
 virtual-hostvirt1.com/virtual-host attribute, but this restrict the
 web
 application to be served when the web client makes a HTTP 1.1 call to
 Geronimo
 for virt1.com GET /hello
 
 So with using this virtual-host, the HellowWorld is not available on
 either
 port when accessed as server-ip:port-number
 
 
 
 So, how do I deploy a web application so that it is available on one port,
 but
 not another port, yet both ports running under one geronimo instance?
 
 I want to deploy two web applications, each one accessible on a different
 port.
 If I do something like:
 % deploy.sh deploy HelloWorld_1.war
 % deploy.sh deploy HelloWorld_2.war
 
 I want the results to be like:
 1) http://0.0.0.0:2150/hello_1 - SUCCESS!!!
 2) http://0.0.0.0:2150/hello_2 - Fail
 3) http://0.0.0.0:2151/hello_1 - Fail
 4) http://0.0.0.0:2151/hello_2 - SUCCESS!!!
 
 
 How do I do this?
 
 -RG
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-web-application-to-one-port-tp20843348s134p20848710.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.