Re: How to configure Geronimo 3.0 in Windows Environment

2012-05-21 Thread Zhi Xie
If you want to configure geronimo as a windows-service, you may run "net
start geronimosrv" under the directory GERONIMO_HOME\bin\.

2012/5/21 sai charan 

> Hello,
>
> What i mean to ask was... How to install the 3.0 version,,exactly, For eg
> In 2.0.1 version we will install using the below steps which is in the
> below link.. Please view this link:
>
>
> https://cwiki.apache.org/GMOxDOC20/configuring-geronimo-as-a-windows-service.html
>
> So, like that is there any wrapper files required? do we need to edit any
> Wrapper.conf file?
>
> or else simply to follow your answer "Use java 6 or 7 to start geronimo
> 3.0, the command is simply GERONIMO_HOME\bin\startup.bat. or bin\startup" ?
>
> If it is the above process, After immediate downloading, If i run the
> startup.bat command.. will the console opens?
>
>
> Please clear me...
>
> Because i want to switch to 3.0 version as it is having advance
> features...  Thanks in Adance...
>
>
>
>
>
>
> On Mon, May 21, 2012 at 1:18 PM, sai charan wrote:
>
>> Hello,
>>
>> I have installed Geronimo 2.0 in my PC, Now i want to replace that with
>> Geronimo 3.0, I didn't find any configuration steps in the document, Is it
>> similar to the 2.0 version containing wrapper files? I mean the
>> configuration process is same as 2.0 or  different? I found advanced
>> features in Geronimo 3.0 document... And what version of java needed for
>> 3.0 version.?
>>
>>
>> Regards,
>> Saicharan.
>>
>
>


-- 
Best Regards
Gary
Apache Geronimo


Re: ISSUE: Root context puts double backslash "//" in urls

2012-06-04 Thread Zhi Xie
Do you notice the context-root '/' has been used by the component
"org.apache.geronimo.configs/welcome-tomcat/2.2.1/car". I guest you need to
uninstall that component before you want to use the context-root.

There is a guide in http://yourdomain:8080/. Please check it if works.

*Would you like your application to appear at this URL?*
To set the context root for a Web application, you can write a Geronimo
deployment plan that uses the context-root element to specify the URL
prefix used to reach that application. If you specify a context root
of "/"then the application will appear at this URL. However, you'll
need to stop
this small Welcome application first!

Your Web deployment plan should look like this, and you can either pack it
into the WAR at WEB-INF/geronimo-web.xml or provide it as a separate
argument to the deploy tool.

http://geronimo.apache.org/xml/ns/j2ee/web-2.0";
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";>



com.MyCompany
MyWebApp
1.0


/


Then you can stop this application and deploy yours from the Admin
Consoleor from the command line with a
sequence of commands like this:

deploy.[bat|sh] stop
org.apache.geronimo.configs/welcome-tomcat/{geronimoVersion}/car
deploy.[bat|sh] deploy MyWebApp-1.0.war



2012/6/5 George Mulligan 

> I am using Geronimo version 2.2.1 with Tomcat 6.  I am deploying a war to
> the root context.  I set context-root to "/" in the geronimo-web.xml file.
>  This is working for the most part but now the links and resources in my
> pages have a double backslash in them.
>
> Examples:
> http://mydomain//index.html
>
> I want it to be
> http://mydomain/index.html
>
> Any ideas how i can accomplish this?
>
> Thanks
>



-- 
Best Regards
Gary
Apache Geronimo


Re: ISSUE: Root context puts double backslash "//" in urls

2012-06-04 Thread Zhi Xie
Sorry, one point should be corrected in my latest reply. Stop  the
component "org.apache.geronimo.configs/welcome-tomcat/2.2.1/car" is enough
before deploying your application.

2012/6/5 Zhi Xie 

> Do you notice the context-root '/' has been used by the component
> "org.apache.geronimo.configs/welcome-tomcat/2.2.1/car". I guest you need to
> uninstall that component before you want to use the context-root.
>
> There is a guide in http://yourdomain:8080/. Please check it if works.
>
> *Would you like your application to appear at this URL?*
> To set the context root for a Web application, you can write a Geronimo
> deployment plan that uses the context-root element to specify the URL
> prefix used to reach that application. If you specify a context root of
> "/" then the application will appear at this URL. However, you'll need to
> stop this small Welcome application first!
>
> Your Web deployment plan should look like this, and you can either pack it
> into the WAR at WEB-INF/geronimo-web.xml or provide it as a separate
> argument to the deploy tool.
>
> http://geronimo.apache.org/xml/ns/j2ee/web-2.0";
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";>
>
> 
> 
> com.MyCompany
> MyWebApp
> 1.0
> 
> 
> /
> 
>
> Then you can stop this application and deploy yours from the Admin 
> Console<http://localhost:8080/console>or from the command line with a 
> sequence of commands like this:
>
> deploy.[bat|sh] stop 
> org.apache.geronimo.configs/welcome-tomcat/{geronimoVersion}/car
> deploy.[bat|sh] deploy MyWebApp-1.0.war
>
>
>
> 2012/6/5 George Mulligan 
>
>> I am using Geronimo version 2.2.1 with Tomcat 6.  I am deploying a war to
>> the root context.  I set context-root to "/" in the geronimo-web.xml file.
>>  This is working for the most part but now the links and resources in my
>> pages have a double backslash in them.
>>
>> Examples:
>> http://mydomain//index.html
>>
>> I want it to be
>> http://mydomain/index.html
>>
>> Any ideas how i can accomplish this?
>>
>> Thanks
>>
>
>
>
> --
> Best Regards
> Gary
> Apache Geronimo
>
>


-- 
Best Regards
Gary
Apache Geronimo


Re: How to configure Geronimo 3.0 in Windows Environment

2012-06-05 Thread Zhi Xie
Hi,you can follow this doc if you use geronimo 3.0.
https://cwiki.apache.org/GMOxDOC30/running-geronimo-as-a-windows-service.html


2012/5/24 sai charan 

> Hello,
>
> Could you clear me exactly, If i download Geronimo 3.0 version... So after
> unzipping the file.. I have to follow the steps which you provided right?
> Because My guess is we need to edit some files after unzipping and have to
> set some class paths... According to your sentence i think i have to make
> changes in the "net start geronimosrv" In order to run in windows
> environment am i right? Please show some pity on me and tell me the
> installation steps...Why because like in 2 version i didn't find any
> installation steps in 3.0 version...
>
> !!Thanks in Advance!!
>
>
>
> On Mon, May 21, 2012 at 5:34 PM, sai charan wrote:
>
>> Hello,
>>
>> What i mean to ask was... How to install the 3.0 version,,exactly, For eg
>> In 2.0.1 version we will install using the below steps which is in the
>> below link.. Please view this link:
>>
>>
>> https://cwiki.apache.org/GMOxDOC20/configuring-geronimo-as-a-windows-service.html
>>
>> So, like that is there any wrapper files required? do we need to edit any
>> Wrapper.conf file?
>>
>> or else simply to follow your answer "Use java 6 or 7 to start geronimo
>> 3.0, the command is simply GERONIMO_HOME\bin\startup.bat. or bin\startup" ?
>>
>> If it is the above process, After immediate downloading, If i run the
>> startup.bat command.. will the console opens?
>>
>>
>> Please clear me...
>>
>> Because i want to switch to 3.0 version as it is having advance
>> features...  Thanks in Adance...
>>
>>
>>
>>
>>
>>
>> On Mon, May 21, 2012 at 1:18 PM, sai charan wrote:
>>
>>> Hello,
>>>
>>> I have installed Geronimo 2.0 in my PC, Now i want to replace that with
>>> Geronimo 3.0, I didn't find any configuration steps in the document, Is it
>>> similar to the 2.0 version containing wrapper files? I mean the
>>> configuration process is same as 2.0 or  different? I found advanced
>>> features in Geronimo 3.0 document... And what version of java needed for
>>> 3.0 version.?
>>>
>>>
>>> Regards,
>>> Saicharan.
>>>
>>
>>
>


-- 
Best Regards
Gary
Apache Geronimo


How to create a ConfiguredSecretKey.ser for Obscuring Passwords feature

2012-09-13 Thread Zhi Xie
I want to use the Obscuring Passwords feacture in geronimo 3.0-beta-1
I follow the doc  https://cwiki.apache.org/GMOxDEV/obscuring-passwords.html
Create a ConfiguredSecretKey.ser file in the var\security directory, add a
ConfiguredEncryption gbean in the config.xml like this.

"org.apache.geronimo.framework/rmi-naming/3.0-w20120503/car?ServiceModule=org.apache.geronimo.framework/rmi-naming/3.0-w20120503/car,j2eeType=GBean,name=ConfiguredEncryption">
var/security/ConfiguredSecretKey.ser


ServerInfo




But got an exception below. I think I have make a
wrong ConfiguredSecretKey.ser. *Could anybody know how to create a right
one.*


2012-09-13 14:39:36,322 ERROR [GBeanInstanceState] Error while starting;
GBean is now in the FAILED state:
abstractName="org.apache.geronimo.framework/rmi-naming/3.0-w20120503/car?ServiceModule=org.apache.geronimo.framework/rmi-naming/3.0-w20120503/car,j2eeType=GBean,name=ConfiguredEncryption"
java.io.StreamCorruptedException: invalid stream header: FEEDFEED
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:786)
at java.io.ObjectInputStream.(ObjectInputStream.java:283)
at
org.apache.geronimo.crypto.ConfiguredEncryption.(ConfiguredEncryption.java:51)
at
org.apache.geronimo.system.util.ConfiguredEncryption.(ConfiguredEncryption.java:53)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:44)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:516)
at
org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:958)
at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:958)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:225)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:710)
at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:239)
at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:99)
at
org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107)
at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:68)
at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:32)

-- 
Best Regards
Gary


Re: geronimo 3.0 application specific logging

2012-10-14 Thread Zhi Xie
Currently I don't know how to use the application's log property file
without adding  or .
But I know if you want to use one copy of log4j librarry in the server and
share it with all application in the server, you can use the SharedLib
feature.
I mean use the  and SharedLib feature.

I'm interesting to your problem, and continue to investigate the root cause.

2012/10/12 jcyim 

> hello.
> I'm trying to use application specific log.
> So I have followed instructions in geronimo manual pages.
> but, I failed.
> Geronimo never reads my applicaiton's log property file.
> I have tried to use  and/or 
> but the result was same. it didn't work. I could not hide geronimos's
> logging classes.
>
> The only way I was successful is to include my log4j library files in my
> web
> applications.
> Even though, it was successful, I thinks that way is very unefficient
> because every single wep application neet to include logj4j librarry in
> self.
>
> can you please help me?
>
>
>
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/geronimo-3-0-application-specific-logging-tp3985902.html
> Sent from the Users mailing list archive at Nabble.com.
>



-- 
Best Regards
Gary


Re: geronimo 3.0 application specific logging

2012-10-15 Thread Zhi Xie
Confirmed with my friend. It will fail to load your own log property file
if you don't adding  or  into your
geronimo-web.xml.
The rule is one log4j with one property file. So if you decide to use your
own log property file, you must have one copy of log4j in your application.
There is the other solution for you concern. It is to use the server's
log4j copy, and add you log setting into
\var\log\server-log4j.properties. You can distinguish you
log setting with the server's one by package level appender. For example,
If your application name is testA, and the source package is com.XXX.testA.

log4j.logger.com.XXX.testA=INFO, testA

log4j.appender.testA=org.apache.log4j.RollingFileAppender
log4j.appender.testA.File=c:\logs\testA.log
log4j.appender.testA.Threshold=TRACE
log4j.appender.testA.layout=org.apache.log4j.PatternLayout
log4j.appender.testA.layout.ConversionPattern=[%d]-%-5p (%F:%L)|%m%n
log4j.appender.testA.DatePattern='.'yyyy-MM-dd


2012/10/15 Zhi Xie 

> Currently I don't know how to use the application's log property file
> without adding  or .
> But I know if you want to use one copy of log4j librarry in the server and
> share it with all application in the server, you can use the SharedLib
> feature.
> I mean use the  and SharedLib feature.
>
> I'm interesting to your problem, and continue to investigate the root
> cause.
>
>
> 2012/10/12 jcyim 
>
>> hello.
>> I'm trying to use application specific log.
>> So I have followed instructions in geronimo manual pages.
>> but, I failed.
>> Geronimo never reads my applicaiton's log property file.
>> I have tried to use  and/or 
>> but the result was same. it didn't work. I could not hide geronimos's
>> logging classes.
>>
>> The only way I was successful is to include my log4j library files in my
>> web
>> applications.
>> Even though, it was successful, I thinks that way is very unefficient
>> because every single wep application neet to include logj4j librarry in
>> self.
>>
>> can you please help me?
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-geronimo.328035.n3.nabble.com/geronimo-3-0-application-specific-logging-tp3985902.html
>> Sent from the Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Best Regards
> Gary
>
>


-- 
Best Regards
Gary


Re: geronimo 3.0 application specific logging

2012-10-15 Thread Zhi Xie
If you use  or , you *must have* another
log4j.jar in the sharedlib or your application itself. Because hidden-class
will block to load the log4j.jar of the server. So if you don't have
another log4j.jar copy, the jdk couldn't find any log4j implementation. It
will fail to output your log.

2012/10/16 jcyim 

> thank you for your kind replies.
>
> I mean I did use  and , but it didn't work.
> ( surely, I copyed log4j.jar into shared lib)
>
> Anyway, Even though I use  and  in order
> to
> do not load geronimos's native logging libraries.
> I think Geronimo's pax logging classes are still loaded.
> The only way I was successful was to put log4.jar library into my app's
> lib.
>
> I doubt that Geronimo's native logging class can not be hidden in Geronimo
> 3.0.
>
> Surely, I can use the way you suggested, but a little concern is that's not
> self contained.
> However that's not a big deal. I can use it.
>
>
>
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/geronimo-3-0-application-specific-logging-tp3985902p3985914.html
> Sent from the Users mailing list archive at Nabble.com.
>



-- 
Best Regards
Gary


Re: geronimo 3.0 application specific logging

2012-10-16 Thread Zhi Xie
It is very interesting. I'm glad to implement the sharedlib solution. Keep
in contact. :)

2012/10/16 jcyim 

> Thank you for your reply.
>
> That's right.
> I am talking about that issue.
>
> I *did have* log4j.jar in sharedlib, and I properly declared
> .
> but, result was a fail.
>
> However If I included log4j.jar file into my app's lib. It worked.
>
> In other words, using sharedlib fails, but using app's lib works.
> (I guess that the reason of success of second method(to use app's lib) is
> that my log4j library is loaded ahead of geronimo's logging library.)
> and also I suspect that I can not control classloading of geronimo's
> logging
> library using  and/or 
>
> best regards,
> yim
>
>
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/geronimo-3-0-application-specific-logging-tp3985902p3985917.html
> Sent from the Users mailing list archive at Nabble.com.
>



-- 
Best Regards
Gary


Re: Geronimo newbie-- How to set up SSL+configure SSL Certificate

2013-01-05 Thread Zhi Xie
(1) From where do I generate the CSR(Certificate Signing Request)?  Also,
in the screen in Namecheap.com (SSL Cert provider) there is a question
asked for Type of Server- this has various options like ”Apache + Open
SSL”/ “Apache + modSSL”/”CPanel”/”Tomcat” etc... Which of these options
should I select?

You can use keytool to generate the CSR. Please refer the link *
https://www.digicert.com/easy-csr/keytool.htm*. The geronimo server is good
for you.

(2) How do I add the generated certificate to Geronimo. Also, where and how
do I configure the Certifying Authority’s certificates (i.e. CA
Certificates)?
To generate Certification Authority, you can access the geronimo 3.0 admin
console "Security"->"Certificate Authority" to setup it.

(3) How do I add the subdomain under which I want SSL to work-- do I have
to add this as a virtual host to Tomcat (as per Geronimo Docs)?
You can refer the doc *
https://cwiki.apache.org/GMOxDOC22/certificate-properties-file-realm.html*.

(4) What are the steps to finally deploy my web app to the subdomain with
the SSL Certificate?
You can deploy you app into geronimo,and then access it by Https connector.




-- 
Best Regards
Gary


Re: I got stuck

2013-03-04 Thread Zhi Xie
Yamada san, Did you install the Geronimo Eclipse Plugin?


2013/3/3 民 山田 

> I got stuck with how to build Geronimo with Eclipse, I can't find
> Geronimo-template-code.xml,
> how can I find that
>
> Thank you,
> Tammy
>



-- 
Best Regards
Gary


Re: Installing Jars on server

2013-03-05 Thread Zhi Xie
I guess you shared libraries feature would fit your case. Please refer to
the instruction here.
https://cwiki.apache.org/GMOxDOC30/using-shared-libraries-in-your-applications.html
.


2013/3/4 Mark Wareham 

> Geronimo Version 2.1.4
>
> Hi I'm trying to move some jars contained within the lib folder of an EAR
> to the server. I installed them all in the repository using the console,
> then added the dependancies to the geronimo-application.xml but upon
> publish I recieve an error java.lang.NoClassDefFoundError:
> javax/servlet/Servlet.
>
> I cant understand what the problem is. I've not left any out, im only
> moving from one location to another.
>
> Some help would be appreciated.
>
>
> The jars I was trying to move were:
> antlr-2.7.6.jar
> axis.jar
> commons-beanutils.jar
> commons-collections-3.2.jar
> commons-digester.jar
> commons-discovery-0.2.jar
> commons-io-2.0.1.jar
> commons-lang3-3.1.jar
> commons-logging.jar
> commons-validator.jar
> dom4j-1.6.1.jar
> hibernate3.jar
> javassist-3.9.0.GA.jar
> jaxen-core.jar
> jaxen-jdom.jar
> jdom.jar
> json-simple-1.1.1.jar
> kaptcha-2.3-jdk14.jar
> saaj.jar
> sax.jar
> saxpath.jar
> slf4j-api-1.5.2.jar
> slf4j-log4j12-1.5.2.jar
> sqljdbc4.jar
> struts.jar
> webserviceutils.jar
> wsdl4j.jar
>
> Many thanks, Mark.
>



-- 
Best Regards
Gary


Re: Geronimo 3 with Jetty

2013-03-05 Thread Zhi Xie
You can build the server by yourself.
For example,
1. download geronimo 3.0.0 from the SVN server (
https://svn.apache.org/repos/asf/geronimo/server/tags/geronimo-3.0.0).
2. run "mvn install" or "mvn clean install" under the root
dir(geronimo-3.0.0).
3. When the build is finished successfully, you can get the geronimo3.0.0
server with jetty in assemblies directory(geronimo-3.0.0/assemblies).


Re: Installing Jars on server

2013-03-05 Thread Zhi Xie
Could you show how did you use the sharedlib? I guess maybe there is a
mistake.


2013/3/6 Mark Wareham 

> This is what I have done, allthough with geronimo 2.1 doc.
> On 6 Mar 2013 06:45, "Zhi Xie"  wrote:
>
>> I guess you shared libraries feature would fit your case. Please refer to
>> the instruction here.
>> https://cwiki.apache.org/GMOxDOC30/using-shared-libraries-in-your-applications.html
>> .
>>
>>
>> 2013/3/4 Mark Wareham 
>>
>>> Geronimo Version 2.1.4
>>>
>>> Hi I'm trying to move some jars contained within the lib folder of an
>>> EAR to the server. I installed them all in the repository using the
>>> console, then added the dependancies to the geronimo-application.xml but
>>> upon publish I recieve an error java.lang.NoClassDefFoundError:
>>> javax/servlet/Servlet.
>>>
>>> I cant understand what the problem is. I've not left any out, im only
>>> moving from one location to another.
>>>
>>> Some help would be appreciated.
>>>
>>>
>>> The jars I was trying to move were:
>>> antlr-2.7.6.jar
>>> axis.jar
>>> commons-beanutils.jar
>>> commons-collections-3.2.jar
>>> commons-digester.jar
>>> commons-discovery-0.2.jar
>>> commons-io-2.0.1.jar
>>> commons-lang3-3.1.jar
>>> commons-logging.jar
>>> commons-validator.jar
>>> dom4j-1.6.1.jar
>>> hibernate3.jar
>>> javassist-3.9.0.GA.jar
>>> jaxen-core.jar
>>> jaxen-jdom.jar
>>> jdom.jar
>>> json-simple-1.1.1.jar
>>> kaptcha-2.3-jdk14.jar
>>> saaj.jar
>>> sax.jar
>>> saxpath.jar
>>> slf4j-api-1.5.2.jar
>>> slf4j-log4j12-1.5.2.jar
>>> sqljdbc4.jar
>>> struts.jar
>>> webserviceutils.jar
>>> wsdl4j.jar
>>>
>>> Many thanks, Mark.
>>>
>>
>>
>>
>> --
>> Best Regards
>> Gary
>>
>


-- 
Best Regards
Gary


Re: Installing Jars on server

2013-03-06 Thread Zhi Xie
I guess you needn't to install the jars. You should copy the jars in
\var\shared\lib.
add a dependency in your deploy plan




org.apache.geronimo.configs
sharedlib


 ...

or add a gbean in your geronimo-web.xml or geronimo-application.xml

 
   var/shared
classes
lib

ServerInfo

   



2013/3/6 Mark Wareham 

> Hi,
>
> I used the console interface to install the jars. Then added the
> dependancies to my geronimo-application.xml as described in the
> documentation and as provided in the editor provided by the geronimo plugin
> of eclipse.
>
>
> On Wed, Mar 6, 2013 at 7:01 AM, Zhi Xie  wrote:
>
>> Could you show how did you use the sharedlib? I guess maybe there is a
>> mistake.
>>
>>
>> 2013/3/6 Mark Wareham 
>>
>>> This is what I have done, allthough with geronimo 2.1 doc.
>>> On 6 Mar 2013 06:45, "Zhi Xie"  wrote:
>>>
>>>> I guess you shared libraries feature would fit your case. Please refer
>>>> to the instruction here.
>>>> https://cwiki.apache.org/GMOxDOC30/using-shared-libraries-in-your-applications.html
>>>> .
>>>>
>>>>
>>>> 2013/3/4 Mark Wareham 
>>>>
>>>>> Geronimo Version 2.1.4
>>>>>
>>>>> Hi I'm trying to move some jars contained within the lib folder of an
>>>>> EAR to the server. I installed them all in the repository using the
>>>>> console, then added the dependancies to the geronimo-application.xml but
>>>>> upon publish I recieve an error java.lang.NoClassDefFoundError:
>>>>> javax/servlet/Servlet.
>>>>>
>>>>> I cant understand what the problem is. I've not left any out, im only
>>>>> moving from one location to another.
>>>>>
>>>>> Some help would be appreciated.
>>>>>
>>>>>
>>>>> The jars I was trying to move were:
>>>>> antlr-2.7.6.jar
>>>>> axis.jar
>>>>> commons-beanutils.jar
>>>>> commons-collections-3.2.jar
>>>>> commons-digester.jar
>>>>> commons-discovery-0.2.jar
>>>>> commons-io-2.0.1.jar
>>>>> commons-lang3-3.1.jar
>>>>> commons-logging.jar
>>>>> commons-validator.jar
>>>>> dom4j-1.6.1.jar
>>>>> hibernate3.jar
>>>>> javassist-3.9.0.GA.jar
>>>>> jaxen-core.jar
>>>>> jaxen-jdom.jar
>>>>> jdom.jar
>>>>> json-simple-1.1.1.jar
>>>>> kaptcha-2.3-jdk14.jar
>>>>> saaj.jar
>>>>> sax.jar
>>>>> saxpath.jar
>>>>> slf4j-api-1.5.2.jar
>>>>> slf4j-log4j12-1.5.2.jar
>>>>> sqljdbc4.jar
>>>>> struts.jar
>>>>> webserviceutils.jar
>>>>> wsdl4j.jar
>>>>>
>>>>> Many thanks, Mark.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards
>>>> Gary
>>>>
>>>
>>
>>
>> --
>> Best Regards
>> Gary
>>
>
>


-- 
Best Regards
Gary


Re: Geronimo 3 with Jetty

2013-03-06 Thread Zhi Xie
Sorry. Before you run "mvn install" you should make a few modification in
pom.xml.

geronimo-3.0.0\assemblies\pom.xml
Line83-85

to
geronimo-jetty8-minimal
geronimo-jetty8-javaee6-web
geronimo-jetty8-javaee6

geronimo-3.0.0\assemblies\geronimo-jetty8-javaee6\pom.xml
Line28
3.0.0-SNAPSHOT
to
3.0.0

geronimo-3.0.0\assemblies\geronimo-jetty8-javaee6-web\pom.xml
Line28
3.0.0-SNAPSHOT
to
3.0.0

geronimo-3.0.0\assemblies\geronimo-jetty8-minimal\pom.xml
Line28
3.0.0-SNAPSHOT
to
3.0.0


That is all.
Please try it.
I have builded the geronimo server with jetty successfully.

geronimo-jetty8-javaee6-3.0.0-bin.zip
geronimo-jetty8-javaee6-3.0.0-bin.tar.gz
geronimo-jetty8-javaee6-web-3.0.0-bin.zip
geronimo-jetty8-javaee6-web-3.0.0-bin.tar.gz
geronimo-jetty8-minimal-3.0.0-bin.zip
geronimo-jetty8-minimal-3.0.0-bin.tar.gz



2013/3/6 Zhi Xie 

> You can build the server by yourself.
> For example,
> 1. download geronimo 3.0.0 from the SVN server (
> https://svn.apache.org/repos/asf/geronimo/server/tags/geronimo-3.0.0).
> 2. run "mvn install" or "mvn clean install" under the root
> dir(geronimo-3.0.0).
> 3. When the build is finished successfully, you can get the geronimo3.0.0
> server with jetty in assemblies directory(geronimo-3.0.0/assemblies).
>



-- 
Best Regards
Gary


Does geronimo maintain a Certificate Revocation List?

2013-08-13 Thread Zhi Xie
I don't see any doc about this feature. I'm afraid geronimo doesn't support
it.

-- 
Best Regards
Gary


Re: jndi properties for datasource

2013-08-20 Thread Zhi Xie
You can create a datasource by a deployment plan. For example,

*Deployment Plan:*
**
*http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>*
*http://geronimo.apache.org/xml/ns/deployment-1.2";>*
**
*console.dbpool*
*Test*
*1.0*
*car*
**
**
**
*mysql*
*mysql-connector-java*
*3.1.14*
*jar*
**
**
**
**
**
**
*
javax.sql.DataSource
*
**
*Test*
*TestDB*
*admin*
*admin*
**
**
**
*10*
*0*
**
**
**
**
**
**
**
**
*
*
Deploy Command:
To deploy a database pool from the command line using this plan,copy and
paste it to a file (say, plan-file.xml) and save it. Then run a command
like:

*cd GERONIMO_HOMEjava -jar bin/deployer.jar deploy plan-file.xml \

\repository\org\tranql\tranql-connector-mysql-local\1.6\tranql-connector-mysql-local-1.6.rar*

Add to EAR:

Instead of deploying as a top-level database pool, you can
deploy this pool as part of an EAR.  To add a database pool to an EAR
using this plan:

 1. Copy and paste the plan to a file
   2. Save the plan file to the top level of your EAR
   3. Copy the RAR file from
GERONIMO_HOME/\repository\org\tranql\tranql-connector-mysql-local\1.6\tranql-connector-mysql-local-1.6.rar
   to the top level of your EAR
   4. Create a META-INF/geronimo-application.xml file in your EAR
that has a module entry like this (substituting the correct  RAR file
name and plan file name)

*http://geronimo.apache.org/xml/ns/j2ee/application-1.1";>
  

  MyApplication

  
  
rar-file-name.rar
plan-file-name.xml
  
*


You can click "Show Plan" button to refer it when you create database pool.










2013/8/19 kiranreddykasa 

> Hi
>
> I have created a datasource in geronimo server.
> I'm able to connect it via admin console.
>
> Can anyone let me  know how to connect to this datasource by external
> standalone application via jndi.
>
> Specifically i'm not sure about these following values :
>
> java.naming.factory.initial=TO_BE_CHANGED_BY_USER
> java.naming.factory.object=TO_BE_CHANGED_BY_USER
> java.naming.factory.state=TO_BE_CHANGED_BY_USER
> java.naming.factory.control=TO_BE_CHANGED_BY_USER
> java.naming.factory.url.pkgs=TO_BE_CHANGED_BY_USER
> java.naming.provider.url=TO_BE_CHANGED_BY_USER
> java.naming.dns.url=TO_BE_CHANGED_BY_USER
>
> And also which jar should be included for this to work ??
>
>
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/jndi-properties-for-datasource-tp3987125.html
> Sent from the Users mailing list archive at Nabble.com.
>



-- 
Best Regards
Gary


Does anybody know how to configure a datasource for informix

2013-09-16 Thread Zhi Xie
I have installed informix jdbc driver 3.50  ifxjdbc.jar,ifxjdbcx.jar into
geronimo2.1.7.
Then configure a datasource to informix. But I got the exeption below.
I don't know why database does not have logging.

Any comment is appreciated.

2013-09-16 16:28:36,258 ERROR [RecoveryController] Recovery error
javax.transaction.SystemException: Could not get XAResource for recovery
for mcf: geronimo:J2EEApplication=null,J2EEServer=geronim
o,JCAConnectionFactory=TestInfo,JCAManagedConnectionFactory=TestInfo,JCAResource=console.dbpool/TestInfo/1.0/car,ResourceAdapter=c
onsole.dbpool/TestInfo/1.0/car,ResourceAdapterModule=console.dbpool/TestInfo/1.0/car,j2eeType=JCAConnectionManager,name=TestInfo
at
org.apache.geronimo.connector.outbound.OutboundNamedXAResourceFactory.getNamedXAResource(OutboundNamedXAResourceFactory
.java:61)
at
org.apache.geronimo.transaction.manager.RecoverTask.run(RecoverTask.java:49)
at
org.apache.geronimo.transaction.manager.ExponentialtIntervalRetryScheduler$TaskWrapper.run(ExponentialtIntervalRetrySch
eduler.java:50)
at java.util.TimerThread.mainLoop(Timer.java:537)
at java.util.TimerThread.run(Timer.java:487)
Caused by:
javax.resource.spi.ResourceAdapterInternalException: Unable to obtain
physical connection to com.informix.jdbcx.IfxXADataSource@77
d777d7
at
org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnection(AbstractXADataSourceMCF.java:77)
at
org.tranql.connector.informix.XAMCF.createManagedConnection(XAMCF.java:58)
at
org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getConnection(MCFConnectionInterceptor.java:49)
at
org.apache.geronimo.connector.outbound.XAResourceInsertionInterceptor.getConnection(XAResourceInsertionInterceptor.java
:41)
at
org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor.internalGetConnection(SinglePoolConnectionInterc
eptor.java:69)
at
org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection(AbstractSinglePoolConnecti
onInterceptor.java:80)
at
org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnlistingInterceptor.ja
va:49)
at
org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachingInterceptor.java:1
09)
at
org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39)
at
org.apache.geronimo.connector.outbound.OutboundNamedXAResourceFactory.getNamedXAResource(OutboundNamedXAResourceFactory
.java:56)
... 4 more
Caused by:
java.sql.SQLException: Database does not have logging.
at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:412)
at com.informix.jdbc.IfxSqli.a(IfxSqli.java:3549)
at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3871)
at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2661)
at com.informix.jdbcx.IfxXASqli.receiveMessage(IfxXASqli.java:116)
at com.informix.jdbcx.IfxXASqli.executeXAOpen(IfxXASqli.java:182)
at
com.informix.jdbcx.IfxXAPooledConnection.openDBforXA(IfxXAPooledConnection.java:226)
at
com.informix.jdbcx.IfxXAPooledConnection.(IfxXAPooledConnection.java:139)
at
com.informix.jdbcx.IfxXADataSource.getXAConnection(IfxXADataSource.java:98)
at
org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnection(AbstractXADataSourceMCF.java:75)
... 13 more
Caused by:
java.sql.SQLException
at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:412)
at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3876)
... 20 more

-- 
Best Regards
Gary


Re: Does anybody know how to configure a datasource for informix

2013-09-17 Thread Zhi Xie
Thank,David. I have updated the DB's log module. It works.


2013/9/16 David Jencks 

> I see some hints in informix documentation that it is possible to create a
> database with no transaction log ("WITH NO LOG").  Is it possible that your
> database was created this way?
>
> thanks
> david jencks
>
> On Sep 16, 2013, at 2:35 AM, Zhi Xie  wrote:
>
> > I have installed informix jdbc driver 3.50  ifxjdbc.jar,ifxjdbcx.jar
> into geronimo2.1.7.
> > Then configure a datasource to informix. But I got the exeption below.
> > I don't know why database does not have logging.
> >
> > Any comment is appreciated.
> >
> > 2013-09-16 16:28:36,258 ERROR [RecoveryController] Recovery error
> > javax.transaction.SystemException: Could not get XAResource for recovery
> for mcf: geronimo:J2EEApplication=null,J2EEServer=geronim
> >
> o,JCAConnectionFactory=TestInfo,JCAManagedConnectionFactory=TestInfo,JCAResource=console.dbpool/TestInfo/1.0/car,ResourceAdapter=c
> >
> onsole.dbpool/TestInfo/1.0/car,ResourceAdapterModule=console.dbpool/TestInfo/1.0/car,j2eeType=JCAConnectionManager,name=TestInfo
> > at
> org.apache.geronimo.connector.outbound.OutboundNamedXAResourceFactory.getNamedXAResource(OutboundNamedXAResourceFactory
> > .java:61)
> > at
> org.apache.geronimo.transaction.manager.RecoverTask.run(RecoverTask.java:49)
> > at
> org.apache.geronimo.transaction.manager.ExponentialtIntervalRetryScheduler$TaskWrapper.run(ExponentialtIntervalRetrySch
> > eduler.java:50)
> > at java.util.TimerThread.mainLoop(Timer.java:537)
> > at java.util.TimerThread.run(Timer.java:487)
> > Caused by:
> > javax.resource.spi.ResourceAdapterInternalException: Unable to obtain
> physical connection to com.informix.jdbcx.IfxXADataSource@77
> > d777d7
> > at
> org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnection(AbstractXADataSourceMCF.java:77)
> > at
> org.tranql.connector.informix.XAMCF.createManagedConnection(XAMCF.java:58)
> > at
> org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getConnection(MCFConnectionInterceptor.java:49)
> > at
> org.apache.geronimo.connector.outbound.XAResourceInsertionInterceptor.getConnection(XAResourceInsertionInterceptor.java
> > :41)
> > at
> org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor.internalGetConnection(SinglePoolConnectionInterc
> > eptor.java:69)
> > at
> org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection(AbstractSinglePoolConnecti
> > onInterceptor.java:80)
> > at
> org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnlistingInterceptor.ja
> > va:49)
> > at
> org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachingInterceptor.java:1
> > 09)
> > at
> org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39)
> > at
> org.apache.geronimo.connector.outbound.OutboundNamedXAResourceFactory.getNamedXAResource(OutboundNamedXAResourceFactory
> > .java:56)
> > ... 4 more
> > Caused by:
> > java.sql.SQLException: Database does not have logging.
> > at
> com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:412)
> > at com.informix.jdbc.IfxSqli.a(IfxSqli.java:3549)
> > at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3871)
> > at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2661)
> > at
> com.informix.jdbcx.IfxXASqli.receiveMessage(IfxXASqli.java:116)
> > at com.informix.jdbcx.IfxXASqli.executeXAOpen(IfxXASqli.java:182)
> > at
> com.informix.jdbcx.IfxXAPooledConnection.openDBforXA(IfxXAPooledConnection.java:226)
> > at
> com.informix.jdbcx.IfxXAPooledConnection.(IfxXAPooledConnection.java:139)
> > at
> com.informix.jdbcx.IfxXADataSource.getXAConnection(IfxXADataSource.java:98)
> > at
> org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnection(AbstractXADataSourceMCF.java:75)
> > ... 13 more
> > Caused by:
> > java.sql.SQLException
> > at
> com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:412)
> > at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3876)
> > ... 20 more
> >
> > --
> > Best Regards
> > Gary
>
>


-- 
Best Regards
Gary


Re: LifecycleException on startup after server crash

2015-02-03 Thread Zhi Xie
I have met the sample issue before. As you said it could be resolved by
deleting the artifact in server's repository. But if you want to get the
root cause, I suggest to get the debug log when you meet the issue again.
We can find more information. As I know it is a classloading and dependency
problem in the most of these issue.

2015-01-27 22:15 GMT+08:00 Kevin Huntly :

> I don't know if anyone has responded yet... when it crashes and then the
> ear fails, what causes the crash? Any exceptions?
>
> It looks to me like Geronimo may have a bad cache following the event and
> that's what's causing the break, but I'm not sure. I've seen it happen on
> websphere, although with obviously different messages. Tomcat also gives me
> problems like this, where if there is an issue it will simply delete the
> entire war file and any related contents.
>
> 
>
> Kevin Huntly
> 79 Aurora Drive
> Cheektowaga, NY 14215
> Email: kmhun...@gmail.com
> Cell: (716) 341-5669
> LinkedIn: http://www.linkedin.com/in/kevinhuntly
> 
>
> -BEGIN GEEK CODE BLOCK-
> Version: 1.0
> GCS/IT d+ s a C++ UL+++$ P+(++) L+++ E---
> W+++ N+ o K(+) w--- O- M-- V-- PS+ PE Y(+)
> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> G++ e(+) h--- r+++ y+++*
> --END GEEK CODE BLOCK--
> On Jan 23, 2015 3:57 AM, "Genc, Ömer" 
> wrote:
>
>>  Hey there,
>>
>>
>>
>> i am having problems with deploying my artifacts on geronimo server after
>> the server crashed.
>>
>> I am using Geronimo 3.0.1. When starting with a fresh geronimo
>> installation, my ear can be deployed and works correctly.
>>
>> However, if the module is already deployed on the server and the server
>> crashes, the server has problems starting up again.
>>
>> The reason for this is my ear. On startup the server fails with the
>> following exception, while trying to load my ear:
>>
>>
>>
>> *org.apache.geronimo.kernel.config.LifecycleException*: load of
>> TEST/com.name.ear/1.0/ear failed
>>
>>at
>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(
>> *SimpleConfigurationManager.java:316*)
>>
>>at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(
>> *EmbeddedDaemon.java:234*)
>>
>>at org.apache.geronimo.system.main.EmbeddedDaemon.execute(
>> *EmbeddedDaemon.java:94*)
>>
>>at org.apache.geronimo.system.osgi.BootActivator$1.execute(
>> *BootActivator.java:107*)
>>
>>at org.apache.geronimo.main.Bootstrapper.start(
>> *Bootstrapper.java:88*)
>>
>>at org.apache.geronimo.main.Bootstrapper.execute(
>> *Bootstrapper.java:61*)
>>
>>at org.apache.geronimo.cli.AbstractCLI.executeMain(
>> *AbstractCLI.java:65*)
>>
>>at org.apache.geronimo.cli.daemon.DaemonCLI.main(
>> *DaemonCLI.java:33*)
>>
>> Caused by: *org.osgi.framework.BundleException*: The bundle "
>> TEST.com.name.ear_1.0.0 [378]" could not be resolved. Reason: Missing
>> Constraint: Import-Package: org.osgi.service.prefs; version="[1.1.1,1.1.1]"
>>
>>at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(
>> *AbstractBundle.java:1327*)
>>
>>at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(
>> *AbstractBundle.java:1311*)
>>
>>at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(
>> *BundleHost.java:323*)
>>
>>at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(
>> *AbstractBundle.java:299*)
>>
>>at
>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(
>> *SimpleConfigurationManager.java:311*)
>>
>>... 7 more
>>
>>
>>
>> Restarting the server does not solve the problem. The only way to solve
>> this is to manually delete the artifact from the repository using the
>> command line or the file system.
>>
>> However, this is a no-op for me. Can anyone give me an advice, where to
>> look and why the server has problems loading my ear on startup?
>>
>>
>>
>> Thanks in advance,
>>
>> Oemer
>>
>


-- 
Best Regards
Gary


Re: DuplicateBundleException on 3.0.1 on Windows 7 SP1

2015-02-03 Thread Zhi Xie
I couldn't reproduce your issue on windows 7 64bit 1.11.00.AI B13.
It is my geronimo server start output in console. Please check it and give
me more information to recreate your findings.


C:\geronimo-tomcat7-javaee6-3.0.1\bin>set JAVA_HOME=e:\jdks\sun\jdk1.7.0_75

C:\geronimo-tomcat7-javaee6-3.0.1\bin>geronimo.bat run
Using GERONIMO_HOME:   C:\geronimo-tomcat7-javaee6-3.0.1
Using GERONIMO_SERVER: C:\geronimo-tomcat7-javaee6-3.0.1
Using GERONIMO_TMPDIR: C:\geronimo-tomcat7-javaee6-3.0.1\var\temp
Using JRE_HOME:e:\jdks\sun\jdk1.7.0_75\jre

 __   _
/ /___  _    (_) ___  
   / / __ / _ \/ ___/ __ \/ __ \/ // __ `__ \/ __ \
  / /_/ //  __/ /  / /_/ / / / / // / / / / / /_/ /
  \/ \___/_/   \/_/ /_/_//_/ /_/ /_/\/

  Apache Geronimo (3.0.1)

Hit '' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '' or 'osgi:shutdown' to shutdown Geronimo.

geronimo> Booting Geronimo Kernel (in Java 1.7.0_75)...
Starting Geronimo Application Server v3.0.1
[] 100%  12s Startup complete
  Listening on Ports:
1050 0.0.0.0 CORBA Naming Service
1099 0.0.0.0 RMI Naming
1527 0.0.0.0 Derby Connector
2001 0.0.0.0 OpenEJB SSL ORB Adapter
4201 0.0.0.0 OpenEJB Daemon
6882 0.0.0.0 OpenEJB ORB Adapter
8009 0.0.0.0 Tomcat Connector AJP TomcatAJPConnector
8080 0.0.0.0 Tomcat Connector HTTP BIO TomcatWebConnector
8443 0.0.0.0 Tomcat Connector HTTPS BIO TomcatWebSSLConnector
 0.0.0.0 JMX Remoting Connector
   61616 0.0.0.0 ActiveMQ Transport Connector

  Started Application Modules:
EAR: org.apache.geronimo.plugins/console-tomcat/3.0.1/car
JAR: org.apache.geronimo.configs/mejb/3.0.1/car
RAR: org.apache.geronimo.configs/activemq-ra/3.0.1/car
RAR: org.apache.geronimo.configs/system-database/3.0.1/car
RAR: org.apache.geronimo.plugins.monitoring/agent-ds/3.0.1/car
RAR: org.apache.geronimo.plugins.monitoring/mconsole-ds/3.0.1/car
RAR: org.apache.geronimo.plugins/uddi-db/3.0.1/car
WAR: org.apache.geronimo.configs/remote-deploy-tomcat/3.0.1/car
WAR: org.apache.geronimo.configs/uddi-tomcat/3.0.1/car
WAR: org.apache.geronimo.configs/welcome-tomcat/3.0.1/car
WAR: org.apache.geronimo.plugins.monitoring/mconsole-tomcat/3.0.1/car
WAR: org.apache.geronimo.plugins/activemq-console-tomcat/3.0.1/car
WAR: org.apache.geronimo.plugins/debugviews-console-tomcat/3.0.1/car
WAR: org.apache.geronimo.plugins/openejb-console-tomcat/3.0.1/car
WAR: org.apache.geronimo.plugins/plancreator-console-tomcat/3.0.1/car
WAR: org.apache.geronimo.plugins/plugin-console-tomcat/3.0.1/car
WAR: org.apache.geronimo.plugins/sysdb-console-tomcat/3.0.1/car

  Web Applications:
/
/activemq
/console
/console-base
/debug-views
/juddi
/monitoring
/openejb-server
/plan-creator
/plugin
/remote-deploy
/system-database

Geronimo Application Server started
---

2015-02-01 5:23 GMT+08:00 paulhr :

> I found the cause. It seems the the hierarchy of the directory structure
> can be too flat.
>
> The example below is ok.
> *C:\g\geronimo-tomcat7-javaee6-3.0.1\bin*
>
>
> But this example is too flat for Geronimo to handle.
> *C:\geronimo-tomcat7-javaee6-3.0.1\bin*
>
>
> --
> View this message in context: Re: DuplicateBundleException on 3.0.1 on
> Windows 7 SP1
> 
> Sent from the Users mailing list archive
>  at
> Nabble.com.
>



-- 
Best Regards
Gary


Re: LifecycleException on startup after server crash

2015-02-04 Thread Zhi Xie
Great!

2015-02-04 16:30 GMT+08:00 Genc, Ömer :

>  Hey,
>
>
>
> i solved that problem. The issue is related to activemq, at least in my
> case. When deploying my artifact I used a custom deployment plan for the
> resource adapter, in which I configured my activemq broker. The
> –schedulersupport- for this broker must be disabled.
>
> See this thread for more information:
>
>
>
>
> http://apache-geronimo.328035.n3.nabble.com/Problem-starting-geronimo-ActiveMQ-td1563093.html
>
>
>
> Be aware that you might have to change it  at two different places, first
> in the deployment plan you might use to deploy your artifact and second in
> the global activemq configuration of Geronimo. I missed the config in my
> deployment plan.
>
> In my case the deployment plan containing the configuration of the
> resource adapter of the broker looks something like this:
>
>
>
> …
>
> 
>
>   
> jms/config/resources
>
>*"ServerUrl"*>vm:broker:/DefaultActiveMQBroker?broker.create=yes&
> broker.schedulerSupport=false&broker.useShutdownHook=false&
> async=false&network=true&jms.watchTopicAdvisories=false&
> jms.copyMessageOnSend=false&jms.persistent=false conn:config-property-setting>
>
> …
>
>
>
> …
>
>
>
> Note the -broker.schedulerSupport=false- setting.
>
>
>
> The global activemq configuration can be found in
> $GERONIMO_HOME/repository/org/apache/Geronimo/configs/activemq-broker-blueprint/3.0.1/activemq-broker-blueprint-3.0.1.car/OSGI-INF/blueprint
>
>
>
> Maybe it helps somebody.
>
>
>
> Cheers,
>
> Oemer
>
>
>
>
>
> *Von:* Zhi Xie [mailto:daxie...@gmail.com]
> *Gesen**det:* Dienstag, 3. Februar 2015 10:25
> *An:* user@geronimo.apache.org
> *Betreff:* Re: LifecycleException on startup after server crash
>
>
>
> I have met the sample issue before. As you said it could be resolved by
> deleting the artifact in server's repository. But if you want to get the
> root cause, I suggest to get the debug log when you meet the issue again.
> We can find more information. As I know it is a classloading and dependency
> problem in the most of these issue.
>
>
>
> 2015-01-27 22:15 GMT+08:00 Kevin Huntly :
>
> I don't know if anyone has responded yet... when it crashes and then the
> ear fails, what causes the crash? Any exceptions?
>
> It looks to me like Geronimo may have a bad cache following the event and
> that's what's causing the break, but I'm not sure. I've seen it happen on
> websphere, although with obviously different messages. Tomcat also gives me
> problems like this, where if there is an issue it will simply delete the
> entire war file and any related contents.
>
> 
>
> Kevin Huntly
> 79 Aurora Drive
> Cheektowaga, NY 14215
> Email: kmhun...@gmail.com
> Cell: (716) 341-5669
> LinkedIn: http://www.linkedin.com/in/kevinhuntly
> 
>
> -BEGIN GEEK CODE BLOCK-
> Version: 1.0
> GCS/IT d+ s a C++ UL+++$ P+(++) L+++ E---
> W+++ N+ o K(+) w--- O- M-- V-- PS+ PE Y(+)
> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> G++ e(+) h--- r+++ y+++*
> --END GEEK CODE BLOCK--
>
> On Jan 23, 2015 3:57 AM, "Genc, Ömer" 
> wrote:
>
> Hey there,
>
>
>
> i am having problems with deploying my artifacts on geronimo server after
> the server crashed.
>
> I am using Geronimo 3.0.1. When starting with a fresh geronimo
> installation, my ear can be deployed and works correctly.
>
> However, if the module is already deployed on the server and the server
> crashes, the server has problems starting up again.
>
> The reason for this is my ear. On startup the server fails with the
> following exception, while trying to load my ear:
>
>
>
> *org.apache.geronimo.kernel.config.LifecycleException*: load of
> TEST/com.name.ear/1.0/ear failed
>
>at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(
> *SimpleConfigurationManager.java:316*)
>
>at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(
> *EmbeddedDaemon.java:234*)
>
>at org.apache.geronimo.system.main.EmbeddedDaemon.execute(
> *EmbeddedDaemon.java:94*)
>
>at org.apache.geronimo.system.osgi.BootActivator$1.execute(
> *BootActivator.java:107*)
>
>at org.apache.geronimo.main.Bootstrapper.start(
> *Bootstrapper.java:88*)
>
>at org.apache.geronimo.main.Bootstrapper.execute(
&

Re: [ANNOUNCE] Alan Cabrera has been appointed as the new PMC Chair of the Geronimo Project

2015-02-24 Thread Zhi Xie
Congrats Alan!

2015-02-24 11:59 GMT+08:00 Jay McHugh :

> Congratulations Alan!
>
> Jay
>
> On Mon Feb 23 2015 at 7:43:36 AM Hendrik Dev 
> wrote:
>
>> Congrats Alan.
>>
>> I'd like to see a discussion started about the future of Geronimo
>> (especially in context of TomEE and JEE7).
>>
>> Thanks
>> Hendrik
>>
>> On Mon, Feb 23, 2015 at 2:27 PM, dsh  wrote:
>> > Hi Alan,
>> >
>> > I wonder how we could align the idea of re-implementing Apache Geronimo
>> with
>> > what Apache TomEE is doing. They both share a certain amount of
>> history. Or
>> > do you thing these days both are completely orthogonal to each other?
>> >
>> > Cheers
>> > Daniel
>> >
>> > On Mon, Feb 23, 2015 at 7:13 AM, Alan D. Cabrera 
>> > wrote:
>> >>
>> >>
>> >> > On Feb 19, 2015, at 8:08 AM, Jarek Gawor  wrote:
>> >> >
>> >> > All,
>> >> >
>> >> > Due to lack of time, in the last few months, I've found it very
>> >> > difficult to contribute and stay on top of Geronimo activities. So,
>> >> > last month I informed the PMC that I would like to step down as the
>> >> > PMC Chair of the Geronimo Project.
>> >> >
>> >> > The Geronimo PMC nominated Alan Cabrera to become the new PMC Chair.
>> >> > Today, I'm happy to announce that the ASF Board (at this month's
>> >> > meeting) officially appointed Alan to be the new PMC Chair of the
>> >> > Geronimo Project.
>> >> >
>> >> > Congratulations Alan!
>> >> >
>> >> > Jarek
>> >> >
>> >> > p.s. To all the PMC members, committers, contributors, and users that
>> >> > made my life easier as PMC chair - thank you!
>> >>
>> >> Thanks Jarek!  Thank you for all the work you’ve done as our PMC chair!
>> >>
>> >> I’m very excited to be the next PMC chair.  I’ve got some big shoes to
>> >> fill.
>> >>
>> >> One of the things that I’d like to discuss is the possibility of a
>> >> complete re-write of Geronimo.  A nice fresh start at implementing the
>> JEE
>> >> specs.  Maybe we could even have multiple implementations as people
>> could
>> >> try out new ideas.
>> >>
>> >>
>> >> Regards,
>> >> Alan
>> >>
>> >
>>
>>
>>
>> --
>> Hendrik Saly (salyh, hendrikdev22)
>> @hendrikdev22
>> PGP: 0x22D7F6EC
>>
>


-- 
Best Regards
Gary


Re: [ANNOUNCE] Alan Cabrera has been appointed as the new PMC Chair of the Geronimo Project

2015-02-24 Thread Zhi Xie
Alan. If we continue to use Tomcat as geronimo's web container, could we
consider to upgrade Tomcat first. Geronimo has missed a lot of security
patches from Tomcat community. Do you have any comment about geronimo's web
container?

2015-02-23 14:13 GMT+08:00 Alan D. Cabrera :

>
> > On Feb 19, 2015, at 8:08 AM, Jarek Gawor  wrote:
> >
> > All,
> >
> > Due to lack of time, in the last few months, I've found it very
> > difficult to contribute and stay on top of Geronimo activities. So,
> > last month I informed the PMC that I would like to step down as the
> > PMC Chair of the Geronimo Project.
> >
> > The Geronimo PMC nominated Alan Cabrera to become the new PMC Chair.
> > Today, I'm happy to announce that the ASF Board (at this month's
> > meeting) officially appointed Alan to be the new PMC Chair of the
> > Geronimo Project.
> >
> > Congratulations Alan!
> >
> > Jarek
> >
> > p.s. To all the PMC members, committers, contributors, and users that
> > made my life easier as PMC chair - thank you!
>
> Thanks Jarek!  Thank you for all the work you’ve done as our PMC chair!
>
> I’m very excited to be the next PMC chair.  I’ve got some big shoes to
> fill.
>
> One of the things that I’d like to discuss is the possibility of a
> complete re-write of Geronimo.  A nice fresh start at implementing the JEE
> specs.  Maybe we could even have multiple implementations as people could
> try out new ideas.
>
>
> Regards,
> Alan
>
>


-- 
Best Regards
Gary


Re: ConcurrentModificationException from SinglePoolMatchAllConnectionInterceptor

2015-11-03 Thread Zhi Xie
Do you do any customize action
in SinglePoolMatchAllConnectionInterceptor.internalGetConnection?
It looks like connection pool size has been updated. Suggest to double
check your multi thread implementation. For example, debug to track the
change of pool size.

2015-10-28 15:21 GMT+08:00 sjunejo :

> Hi,
>
> I am using Jencks 2.2 with geronimo-connector 2.1.2 implementation. I am
> using this with custom JCA RA implementation and recently when I started
> this in a heavily used multi threaded environment I am getting following
> exception;
>
> java.util.ConcurrentModificationException
> at
>
> java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:732)
> at
> java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:822)
> at
>
> com.jbase.jremote.jca.JRemoteManagedConnectionFactory.matchManagedConnections(Unknown
> Source)
> at
>
> org.apache.geronimo.connector.outbound.SinglePoolMatchAllConnectionInterceptor.internalGetConnection(SinglePoolMatchAllConnectionInterceptor.java:61)
> at
>
> org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection(AbstractSinglePoolConnectionInterceptor.java:80)
> at
>
> org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnlistingInterceptor.java:46)
> at
>
> org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachingInterceptor.java:96)
> at
>
> org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection(ConnectionHandleInterceptor.java:43)
> at
>
> org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39)
> at
>
> org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:87)
> at
> com.jbase.jremote.jca.JRemoteConnectionFactoryImpl.getConnection(Unknown
> Source)
> at
> com.jbase.jremote.jca.JRemoteConnectionFactoryImpl.getConnection(Unknown
> Source)
>
> I looked at the source but as far as I can see we are using IdentityHashMap
> but we do synchronize(pool) just before calling the matchManagedConnections
> method on my connection factory.
>
> Does anyone in the mailing encounter thishow can I solve this?
>
> Regards
>
>
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/ConcurrentModificationException-from-SinglePoolMatchAllConnectionInterceptor-tp3989671.html
> Sent from the Users mailing list archive at Nabble.com.
>



-- 
Best Regards
Gary


Re: Newbie, compiling samples, don't quite understand....

2015-11-23 Thread Zhi Xie
Could you share the maven error log here?

2015-11-20 10:28 GMT+08:00 jctobin1234 :

> I just put up geronimo, and ran the smoke test "Helloworld" and that works.
> I see the console, this is pretty neat.
>
> I am now making the samples, or perhaps better stated: I am mavening them.
> Unfamiliar with maven, I apologize, reading and getting up to speed will
> take time.
> I did increase some parms to run the mvn clean install:
> "export MAVEN_OPTS="-Xxm512m -XX:MaxPermSize=128m""
>
> That gets me to some problems with plugins.
> I get a number of messages in the output listing:
> found geronimo-plugin.xml for bundle
> org.geronimo.apache.framework.geronimo-gbean-deployer [1]
> ...
> installing artifact: DependencyType [org.apache.servicemix.bundles.xmlbeans
> [2]
> did not find geronimo-plugin.xml for bundle
> org.apache.servicemix.bundles.xmlbeans [2]
>
> followed by multiple "installing artifacts:.
> did not find geronimo-plugin.xml for [whatever the artifact name was]
> this is pervasive, and then the deployment crashes.
>
> What am I missing, what don't I understand?
> was I supposed to install some kind of plugin?
> sorry, at least for me this documentation isn't crystal clear [not a
> criticism, I do have an autistic side |;-p]
>
> I do have the geronimo-tomcat version up.
> I don't quite understand what that means in regards to the jetty
> compiles...[are they the default for the deploy?]
>
> this is a case of initial success followed by rampant failure.
> normal under the circumstances, but still a bitter pill.
> Help?
>
> jto...@po-box.esu.edu
>
>
>
>
> -
> tob
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/Newbie-compiling-samples-don-t-quite-understand-tp3989792.html
> Sent from the Users mailing list archive at Nabble.com.
>



-- 
Best Regards
Gary