Re: Is Geronimo still actively maintained?

2017-02-03 Thread Kevan Miller
Hi Peter,
There is no current development or maintenance of the Geronimo server (none
that I know of, anyway). There has been some interest expressed, but that
has not (yet?) translated into anything concrete.

There is a recent/ongoing discussion on the d...@geronimo.apache.org mailing
list on this general topic: http://www.mail-archive.com/dev%40geronimo.
apache.org/msg94308.html

There is ongoing development / maintenance of Geronimo subprojects (xbean,
java ee specs, javamail, transaction manager, etc.)

On Thu, Feb 2, 2017 at 3:06 AM, Peter Nabbefeld 
wrote:

>
> Hello,
>
> with the latest release being 3.0.1 from June 2013 and Wiki still saying
> version 2.2 is still under development:
> Is Geronimo still actively maintained?
>
> Just a question ...
>
> If yes, where can I find the docs about starting/stopping/etc. it
> programmatically?
>
> Kind regards
> P.
>
>


Re: java.net.UnknownHostException during geronimo startup

2016-03-11 Thread Kevan Miller
Your old hostname is embedded in your original geronimo server. So, the
server is trying to resolve "stisitabctmp" during startup. I don't recall
how you can reconfigure your server with the new hostname. You could try to
configure 'stisitabctmp' to be the same as 'stisitcds' in your network
config on 'stisitcds'. Yes, it's a hack...

On Fri, Mar 11, 2016 at 1:13 AM, Johannes Weberhofer <
jweberho...@weberhofer.at> wrote:

> Is another server running at the same host?
>
> Btw. it would be good not to send the whole message in a single line, it's
> hard to read...
>
> Best regards,
> Johannes
>
> Am 08.02.2016 um 16:29 schrieb amlan.geronimo:
>
>> Hi Team, I have an took a backup from old geronimo application server -
>> stisitcds and untar it at new geronimo server stisitabctmp. I thought in
>> this way I can avoide new installation and deployment at new server
>> stisitabctmp. But In this way, I am getting one error during startup of
>> geronimo...at stisitabctmp Here is the geronimo.out log .output
>> Module 9/71 org.apache.geronimo.framework/j2ee-security/2.1.8/car
>> 2016-02-08 08:47:39,858 WARN [8/car,j2eeType=GBean,name=JMXService] Failure
>> in JMXConnector service:jmx:rmi://
>> 0.0.0.0:10017/jndi/rmi://0.0.0.0:1117/JMXConnector 2016-02-08
>> 08:47:39,860 ERROR [GBeanInstanceState] Error while starting; GBean is now
>> in the *FAILED state:
>> abstractName="org.apache.geronimo.framework/j2ee-security/2.1.8/car?ServiceModule=org.apache.geronimo.framework/j2ee-security/2.1.8/car,j2eeType=GBean,name=JMXService"
>> java.io.IOException: Cannot bind to URL [rmi://0.0.0.0:1117/JMXConnector]:
>> javax.naming.ConfigurationException [Root exception
>> is java.rmi.UnknownHostException: Unknown host: 0.0.0.0; nested exception
>> is: java.net.UnknownHostException: stisitabctmp: stisitabctmp]* Caused by:
>> javax.naming.ConfigurationException [Root exception is
>> java.rmi.UnknownHostException: Unknown host: 0.0.0.0; nested exception is:
>> java.net.UnknownHostException: stisitabctmp: stisitabctmp] *Server Startup
>> failed org.apache.geronimo.kernel.config.LifecycleException: start of
>> org.apache.geronimo.framework/j2ee-security/2.1.8/car failed at
>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:580)*
>> *Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
>> Configuration org.apache.geronimo.framework/j2ee-security/2.1.8/car failed
>> to start due to the following reasons: The service
>> ServiceModule=org.apache.geronimo.framework/j2ee-security/2.1.8/car,j2eeType=GBean,name=JMXService
>> did not start because Cannot bind to URL [rmi://0.0.0.0:1117/JMXConnector
>> ]:
>> javax.naming.ConfigurationException [Root exception is
>> java.rmi.UnknownHostException: Unknown host: 0.0.0.0; nested exception is:
>> java.net.UnknownHostException: stisitabctmp: stisitabctmp]* Please let me
>> know. How can I startup my server Regards, Amlan
>>
>> --
>> View this message in context: java.net.UnknownHostException during
>> geronimo startup <
>> http://apache-geronimo.328035.n3.nabble.com/java-net-UnknownHostException-during-geronimo-startup-tp3989980.html
>> >
>> Sent from the Users mailing list archive <
>> http://apache-geronimo.328035.n3.nabble.com/Users-f328036.html> at
>> Nabble.com.
>>
>
> --
> Johannes Weberhofer
> Weberhofer GmbH, Austria, Vienna
>


Re: Geronimo 4.0 - JEE7

2014-11-07 Thread Kevan Miller
Hi,
I haven't seen much interest expressed for building a Java EE 7
implementation of Geronimo. It does seem that we can expect the community
will be providing components useful for Java EE 7 servers (e.g. specs,
javamail, xbean, connectors, etc).

Others may have their own opinions on this...

--kevan

On Wed, Nov 5, 2014 at 2:09 PM, Collins Solutions 
collins-soluti...@austin.rr.com wrote:

  Does anyone know when this released is being planned?



Re: Geronimo 4.0 - JEE7

2014-11-07 Thread Kevan Miller
Yep. That's what I'd expect/hope... :)

--kevan

On Fri, Nov 7, 2014 at 9:18 AM, Jean-Louis MONTEIRO jeano...@gmail.com
wrote:

 Hi Kevan,

 We eventually have interest on the components you mentioned but to add
 then into TomEE 2.x.

 Jean-Louis

 2014-11-07 18:16 GMT+01:00 Kevan Miller kevan.mil...@gmail.com:

 Hi,
 I haven't seen much interest expressed for building a Java EE 7
 implementation of Geronimo. It does seem that we can expect the community
 will be providing components useful for Java EE 7 servers (e.g. specs,
 javamail, xbean, connectors, etc).

 Others may have their own opinions on this...

 --kevan

 On Wed, Nov 5, 2014 at 2:09 PM, Collins Solutions 
 collins-soluti...@austin.rr.com wrote:

  Does anyone know when this released is being planned?





 --
 Jean-Louis



Re: Aspentec packaged with Geronimo

2014-07-09 Thread Kevan Miller
Here are the responses that were posted to your previous question on this
topic:

On Tue, Jun 24, 2014 at 6:36 PM, Kevin Huntly kmhun...@gmail.com wrote:

 Aspen license manager. Its using geronimos classpath, but I don't think
 it's actually a Geronimo service.

 Hopefully this helps -


 https://www.google.com/search?q=Aspen+license+manageroq=Aspen+license+manageraqs=chrome..69i57.1125j0j4sourceid=chrome-mobileespv=1ie=UTF-8

 

 Kevin Huntly
 79 Aurora Drive
 Cheektowaga, NY 14215
 Email: kmhun...@gmail.com
 Cell: (716) 341-5669
 LinkedIn: http://www.linkedin.com/in/kevinhuntly
 


and

On Wed, Jun 25, 2014 at 6:02 AM, Luciano Salotto lsalo...@gmail.com wrote:

 As Kevin mentions, it seems to me that the Aspen License Server is based
 on Apache Geronimo. You should check whether you are running AspenONE or
 any other product from Aspen in your boxes. After that I'd suggest you
 check with AspenTech for more details, I don't think you will get much more
 info here.. :(

 HTH

 Luciano



[ANNOUNCE] Jarek Gawor has been appointed as the the PMC Chair of the Geronimo Project

2013-07-30 Thread Kevan Miller
All,
Due to recent changes in my life, I've had less and less time to devote to the 
Geronimo project. Last month, I told the PMC that I wished to step down from my 
PMC Chair duties. 

The Geronimo PMC unanimously nominated Jarek Gawor to become the PMC Chair. I'm 
happy to announce that at this month's board meeting, the ASF Board appointed 
Jarek the new PMC Chair of the Geronimo project. 

As anyone following the Geronimo project should know, Jarek has been bringing a 
tremendous amount to the project in multiple ways. Please take a moment to 
thank Jarek for taking on this new role.

Finally, to all the PMC members, committers, contributors, and users -- thanks 
for making my job as PMC chair so easy and enjoyable. It's been a pleasure 
working with you. 

--kevan

Re: geronimo non-clean shutdown problem

2013-06-04 Thread Kevan Miller

On Jun 4, 2013, at 11:15 AM, Yifan Zhang yzh...@qf.org.qa wrote:

 Hi All,
 
 I spent quite a bit time to get Geronimo working. Today we had a problem
 with one of the disk, and the server was rebooted. Geronimo wasn't shutdown
 cleanly before rebooting. Now I cannot start Geronimo and it is complaining
 about Unable to clear Sun JarFileFactory cache. I tried to search online,
 and couldn't find any answer to it. Is there a way to clean the cache
 manually? My environment is:
 Sun JVM 1.6.0_26
 and geronimo 2.2.1

I'm all but certain that the Unable to clear Sun JarFileFactory cache is the 
source of your problem. Is there any other errors in your log/stdout/stderr?

--kevan



Re: Stream left open in XBean finder

2013-05-08 Thread Kevan Miller

On May 8, 2013, at 6:40 AM, Lazar Kirchev lazar.kirc...@gmail.com wrote:

 Hello,
 
 I am using XBean finder and I came across a jar file which is left open. The 
 class in which this happens is org.apache.xbean.finder.archive.JarArchive. In 
 its constructor a JarFile object is created and this jar never gets closed. 
 This results in jars files which could not be removed even when they are not 
 necessary any more. Could you advise me how to approach this issue?

Hi Lazar,
Thanks for the email.

Can you create a JIRA? JIRA is our problem tracking system -- 
https://issues.apache.org/jira/browse/XBEAN

Describe your problem, XBean version, etc. If you can provide a test case, that 
is helpful.

If you have a suggested fix for the problem, create a svn diff and attach it to 
the JIRA. 

The general process is described here -- 
http://geronimo.apache.org/xbean/contributing.html

--kevan



Re: Maven coordinates for EJB stand-alone client?

2013-04-23 Thread Kevan Miller

On Apr 22, 2013, at 2:51 PM, Philippe Marschall kus...@gmx.net wrote:

 Hi
 
 I want to call remote EJBs from a stand alone Java SE application and need to 
 know the maven coordinates for the EJB stand-alone client.

The client jar is in 
geronimo-tomcat7-javaee6-3.0.0/repository/org/apache/openejb/openejb-client/4.0.0-beta-1/openejb-client-4.0.0-beta-1.jar
 of your geronimo install.

In maven terms, that's 

groupIdorg.apache.openejb/groupId
artifactIdopenejb-client/artifactId
version4.0.0-beta-1/version

--kevan



Re: is there a way to quickly and easily update all the jars in Geronimo 3.0 to the latest stable jars?

2013-04-23 Thread Kevan Miller

In general, you update by installing the latest Geronimo distribution.

--kevan


Re: Maven coordinates for EJB stand-alone client?

2013-04-23 Thread Kevan Miller



On Apr 23, 2013, at 8:21 AM, Jean-Louis MONTEIRO jeano...@gmail.com wrote:

 Try looking this page if needed http://tomee.apache.org/clients.html
 That may help.

And there's 
https://cwiki.apache.org/GMOxDOC30/deploying-and-running-ejb-application-clients.html
 but the question was pretty specific about maven coordinates...

--kevan


Re: Release plan for Geronimo 3 + Jetty assembly

2013-04-15 Thread Kevan Miller

On Apr 12, 2013, at 8:26 PM, Bevon bevon.pa...@gmail.com wrote:

 Hi,
 Recently noticed some chatter around Geronimo 3.0.1.  Was wondering if a
 Jetty assembly would be part of the release?  Or, if not, what plans there
 might about around a Jetty assembly in the future?

There would be a some amount of effort required to get a Jetty-based server to 
pass the TCK. There hasn't been any recent activity from the committer 
community to work on the TCK for Jetty-based servers. Beyond the TCK, would be 
the question of if there's sufficient interest in the committer community to 
support (i.e. fix problems) for Jetty-based servers.

So, at this point, I don't think that a Jetty assembly will be released any 
time soon. That said, if there are people interested in helping with this 
effort -- they'd be most welcome…

I haven't tried to build the Jetty assemblies, for a while. Have you tried 
this? If there are people interested in working on this, we can have a 
discussion on what things need to be done…

--kevan

Re: Apache Geronimo not starting on localhost

2013-04-08 Thread Kevan Miller

On Apr 7, 2013, at 10:07 AM, abhi4j abhi81...@gmail.com wrote:

 I am working with Apache geronimo 3 along with Eclipse Juno IDE..I am working
 on Xubuntu 12.10 platform with IBM java 7 sdk. I am getting folllowing error
 while starting geronimo.
 http://apache-geronimo.328035.n3.nabble.com/file/n3986536/error.png 
 
 Please help.

geronimo-tomcat7-javaee6-3.0.0/var/log/geronimo.log

This file contains the server's log. You'll need to look in that file to see 
what type of error you are receiving.

--kevan

Re: weird error downloading maven dependencies

2013-03-14 Thread Kevan Miller

On Mar 14, 2013, at 5:10 PM, Marcos Mendez mar...@jitisoft.com wrote:

 I'm getting a weird error on ubuntu downloading maven dependencies. I've 
 created a couple of cars, and they're working on mac, windows and mint. We've 
 recently setup a test ubuntu server. Everything seems to be in order as far 
 as I can tell. Maven repo exists, env variables set and all. But when I try 
 to install the simplest car (already working and tested), I get the following 
 error below. This is a vanilla 3.0 install.
 
 I'm also getting this error, but that's another matter. 
 (https://issues.apache.org/jira/browse/GERONIMO-6216)
 
 Anyone have any ideas? Any way I can get more debug logs on this this more? 
 I'm already running it with -. 
 
 I'm using one account on Ubuntu 12.04.2 LTS. The ./m2/repository dir exists. 
 And this car works perfectly elsewhere.
 
 -- plugin repository install message ---
 
 Current file being operated on...
 Copying com.google.code.gson/gson/2.2.2/jar to the repository
 
 A problem has occured:
 java.lang.IllegalArgumentException: Cannot read source file at 
 /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar
 
  log ---
 
 2013-03-14 11:01:56,666 ERROR [PluginInstallerGBean] Unable to install plugin
 java.lang.IllegalArgumentException: Cannot read source file at 
 /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar
   at 
 org.apache.geronimo.kernel.repository.AbstractRepository.copyToRepository(AbstractRepository.java:78)
   at 
 org.apache.geronimo.system.plugin.LocalOpenResult.install(LocalOpenResult.java:51)
   at 
 org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1321)
   at 
 org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1392)
   at 
 org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:776)
   at 
 org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:721)
   at 
 org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:717)
   at 
 org.apache.geronimo.system.plugin.PluginInstallerGBean$3.run(PluginInstallerGBean.java:889)
   at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:243)
   at 
 org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:373)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
   at java.lang.Thread.run(Thread.java:662)
 2013-03-14 11:01:56,716 WARN  [BaseCallMarshaller] --Erroring: batchId[2] 
 message[java.lang.Exception: Unable to install configuration]

This is the check which will generate that exception:

if (!source.exists() || !source.canRead() || source.isDirectory()) {
throw new IllegalArgumentException(Cannot read source file at  + 
source.getAbsolutePath());
}

What does 'ls -l 
/home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar' say 
about that file?

--kevan

Re: Geronimo 3.0 backward compatibility for JEE 5 component

2013-02-05 Thread Kevan Miller

On Feb 4, 2013, at 3:06 PM, zilinchen zilinc...@yahoo.com wrote:

 Is Geronimo 3.0 backward compatibility for JEE 5 component?
 
 such as web component JSP2.1/Servlet2.5 with MyFace 1.2.x implementation
 (JSF 1.2)
 
 We have a web component works well on Geronimo 2.1, and looking for move it
 to Geronimo 3.0.
 As we have a third party library is based on JSF1.2 and can't be upgrade, So
 how can we deploy this JEE 5 component on 3.0 without upgrade JSF/JSP spec?

From a specification perspective, Java EE 6 is backward compatible with Java EE 
5. Implementation specifics (e.g. configuration settings, extensions, etc) may 
not necessarily be backward compatible. 

Have you deployed your application on G 3.0 and are seeing problems?

--kevan

Re: Why should I use Geronimo?

2013-01-09 Thread Kevan Miller

On Jan 9, 2013, at 5:50 AM, Lochschmied, Alexander 
alexander.lochschm...@vishay.com wrote:

 Can it be compared to Play Framework for example?

Geronimo is a lighweight, composable, Java EE-based application server. A full 
Java EE Geronimo application server contains multiple technologies (JPA, 
Servlet/JSP, JSF, JMS, etc…).

I think of the Play Framework as fundamentally a Web Framework (e.g. JSF, 
Grails, Spring MVC, etc…). You can run Play applications in standalone mode 
(I'm not sure if that's what Play calls it). You can also create a Play 
application, generate a .war file, and deploy the .war file on Geronimo.

Hope that helps. 

--kevan

Re: Releaseplan Geronimo 4.0 JavaEE 7

2013-01-07 Thread Kevan Miller

On Jan 4, 2013, at 2:25 PM, frank.pien...@gmail.com wrote:

 Does anybody have any information on upcomming Geronimo 4.0,  JavaEE 7 or the 
 BugFix Realease 3.0.1
 I can't find any  infos in JIRA or on out-dated cwiki-page

As Shawn mentions, I don't think there have been any 4.0 discussions. JavaEE 7 
will be a ways out -- Geronimo is dependent on a number of 
technologies/projects. So, there's a lot of work that has to occur in other 
projects, first…

There has been some discussion of work on our specs (e.g. CDI). Typically, work 
will begin there…

--kevan



Re: Missing sources to geronimo-jta_1.0.1B_spec-1.0.1

2012-08-17 Thread Kevan Miller

On Aug 17, 2012, at 3:43 AM, martti.soderl...@tieto.com 
martti.soderl...@tieto.com wrote:

 hi,
  
 I'm working in packaging a web application using activemq and face a problem 
 in getting the components reviewed against our open source policies for 
 release. With activemq comes a dependency to geronimo-jta-1.0.1B_spec-1.0.1, 
 for which I'm unable to locate the sources. Activemq seems to point to 
 geronimo 1.0 so an update there would not help.
  
 So far I've checked the mailing lists, forums, issue tracker and subversion 
 with no luck. Please share any pointers on:
  
 * Whether the other versions of jta 1.0.1B_spec are exactly the same so I 
 could use say 1.1.1 instead of 1.0.1?
 * Where the sources of geronimo-jta-1.0.1B_spec-1.0.1 can be found
  
 I'm guessing as the jta is a specification it would be possible to just 
 replace this dependency with a compatible, but I'd rather first just find out 
 if the sources can be found.

Hi Marrti,
You had me digging a little bit. 

geronimo-jta-1.0.1B_spec-1.0.1 was released as part of specs-1.1. You'll find 
the source here:

https://svn.apache.org/repos/asf/geronimo/specs/tags/1_1/geronimo-spec-jta/

Our specs versioning process was a mess at the time. The version number of the 
JTA spec release is contained within the root pom.xml here:

https://svn.apache.org/repos/asf/geronimo/specs/tags/1_1/pom.xml

At the time, we voted on all specs at once, but each individual spec could have 
a unique version number.

--kevan 



Re: [discussion]Time to release to Geronimo 2.2.2 ?

2012-07-19 Thread Kevan Miller

On Jul 19, 2012, at 5:33 AM, Shawn Jiang wrote:

 Thanks, David !
 
 Devs and Users, Any more inputs ?

There was the patch submitted that upgraded a number of Geronimo dependencies. 
IIRC, that's never been applied. I assume the major dependencies have been 
upgraded to current service levels (e.g. Tomcat, OpenEJB). 

The changes in the patch may be more than we'd want in a 2.2.x release. I'd 
like a discussion to make sure that's what we want to do...

--kevan

Fwd: Call for Papers for ApacheCon Europe 2012 now open!

2012-07-19 Thread Kevan Miller
FYI

Begin forwarded message:

 From: Nick Burch nick.bu...@alfresco.com
 Subject: Call for Papers for ApacheCon Europe 2012 now open!
 Date: July 19, 2012 2:14:57 PM EDT
 To: committ...@apache.org
 Reply-To: apachecon-disc...@apache.org
 
 Hi All
 
 We're pleased to announce that the Call for Papers for ApacheCon Europe 2012 
 is finally open!
 
 (For those who don't already know, ApacheCon Europe will be taking place 
 between the 5th and the 9th of November this year, in Sinsheim, Germany.)
 
 If you'd like to submit a talk proposal, please visit the conference website 
 at http://www.apachecon.eu/ and sign up for a new account. Once you've 
 signed up, use your dashboard to enter your speaker bio, then submit your 
 talk proposal(s). There's more information on the CFP page on the conference 
 website.
 
 We welcome talk proposals from all projects, from right across the bredth of 
 projects at the foundation! To make things easier for talk selection and 
 scheduling, we'd ask that you tag your proposal with the track that it most 
 closely fits within. The details of the tracks, and what projects they expect 
 to cover, are available at http://www.apachecon.eu/tracks/.
 
 (If your project/group of projects was intending to submit a track, and 
 missed the deadline, then please get in touch with us on 
 apachecon-disc...@apache.org  straight away, so we can work out if it's 
 possible to squeeze you in...)
 
 The CFP will close on Friday 3rd August, so you've a little over weeks to 
 send in your talk proposal. Don't put it off! We'll look forward to seeing 
 some great ones shortly!
 
 Thanks
 Nick
 (On behalf of the Conferences committee)



Re: [ANNOUNCEMENT] Apache Geronimo v3.0.0 released!

2012-07-13 Thread Kevan Miller
Congrats, eveyone!

--kevan
On Jul 13, 2012, at 8:37 AM, Forrest Xia wrote:

 
 The Apache Geronimo project is pleased to announce the available of Apache 
 Geronimo v3.0.0 server. This release is a formal release of version 3 after 
 3.0-beta-1. It includes Tomcat assemblies only. Besides Java EE 6 compliance 
 achieved since 3.0-beta-1, Geronimo v3.0.0 release add Java 7 support for all 
 of Java EE 6 web profile technologies. Please see the detail information in 
 3.0.0 release notes.
 
 A couple highlights are:
 
   • Tomcat upgraded to 7.0.27
   • OSGi upgraded to 4.3
   • BVal upgraded to 0.4
   • Update Derby to version 10.8.2.2
   • Support for class hot swap for OSGi applications
 Visit the Downloads page for details on downloading Apache Geronimo v3.0.0 
 server assemblies. Note that the mirror web sites take time to sync, so you 
 may choose the www.us.apache.org site to download the server.
 
 
 Forrest Xia,
 
 Apache Geronimo Project
 
 July 13, 2012
 
 



Re: Request for Geronimo 2.2.2 Release

2012-06-18 Thread Kevan Miller

On Jun 18, 2012, at 12:55 PM, gqmulligan wrote:

 Even if nobody else is interested in a 2.2.x release I figured there would at
 least be others interested in more details on the official Geronimo 3.x
 release.
 
 Shawn J do you have any details or know anybody I might be able to ask to
 get them?

Scan the archives for the dev@ mailing list. Also, current status is here -- 
https://cwiki.apache.org/confluence/display/GMOxPMGT/Geronimo+3.0.0+Release+Status

One of the major pieces is TCK status which is passing.

--kevan

Re: Exceptions while deploying the war file

2012-05-24 Thread Kevan Miller

On May 24, 2012, at 11:08 AM, sai charan wrote:

 Hello,
 
 I tried to install JSPProject.war file(version 1.0) under 
 geronimo-tomcat6-jee5-2.0.2, 
 
 Console says:
 
 The application was successfully deployed.
 The application was successfully started
 
 But in the WEB APP wars Portlet component name was showing 
 
 default/JSPProject/1.0/war   stopped 

I'm afraid that log information doesn't point to the underlying issue. 

In var/log/server-log4j.properties, you can try to change:

log4j.logger.org.apache.catalina.core.ContainerBase=WARN

to 

log4j.logger.org.apache.catalina.core.ContainerBase=INFO

That may provide a more meaningful log message. You can also try to upload your 
test war/deployment plan (best to use a file sharing service or you can creat a 
Jira -- https://issues.apache.org/jira/browse/GERONIMO).

There's a problem in your JSPProject.war. The log message will hopefully help. 
Otherwise, perhaps someone can take a look at your .war...

--kevan

Re: Configure Apache HTTPd as a reverse proxy (mod_proxy)

2012-05-21 Thread Kevan Miller

On May 21, 2012, at 6:00 AM, sai charan wrote:

 Hello,
 
 It's working fine now.. Thank you so much for your response and for your 
 help I want you to involve on this for some more clarification, Actually 
 I deployed one sample application on the machine which i installed geronimo, 
 Now i am accessing the console from another machine with the help of Apache 
 webserver... So when i tried to view the application which i deployed , was 
 not showing the url, I am getting this below error:
 
 Not Found
 
 The requested URL /sample was not found on this server.
 
 I think if i am able to access the console from other machine means i should 
 also view or access the sample application which i deployed right?

No. Suggest you read up on mod_proxy configuration. Consult httpd documentation 
for that… You may want to evaluate why you want to use httpd/mod_proxy. What 
are you trying to accomplish?

That sample config shows how to proxy the /console application. If you want to 
proxy an additional application, you'd need to add appropriate httpd 
configuration for that… You could proxy the whole server, something like:

ProxyPass / http://localhost:8080/  
ProxyPassreverse / http://localhost:8080/

But that begs the whole question of why you want to use httpd/mod_proxy at all…

--kevan

Re: Configure Apache HTTPd as a reverse proxy (mod_proxy)

2012-05-18 Thread Kevan Miller

On May 18, 2012, at 5:42 AM, sai charan wrote:

 Hello,
 
 It's working now, i had given locahost by mistakenly, now i changed and tried 
 its working fine now, Could you clear me one more thing that, if i install  
 Apache webserver in an another machine in that case we have to give the IP 
 addreess of the machine which we installed geronimo right? 

Correct.

--kevan

Re: Unable to create Datasource

2012-05-18 Thread Kevan Miller

On May 18, 2012, at 1:17 AM, sai charan wrote:

 Hello,
 
 I am currently using java version 1.4.2_03... Is it compatible with 
 Geronimo 2.0.1 version. or else could you tell me for the java version 
 1.4.2_03 which version of Geronimo should be installed, and also i want the 
 sql server 2005 that should connect and configured to Geronimo…

You'll want a Java 5 runtime. All of 2.0 testing and TCK were on Java 5. You 
may be able to do some things with 1.4, but you'll eventually run into problems.

See 
http://svn.apache.org/repos/asf/geronimo/server/tags/2.0.2/RELEASE_NOTES-2.0.2.txt
 (looks like it wasn't included in the binary distribution).

--kevan

Re: Unable to create Datasource

2012-05-17 Thread Kevan Miller

On May 17, 2012, at 4:37 AM, sai charan wrote:

 Hello,
 
 I have installed Geronimo 2.0.1 in one machine and MS SQL Server 2005 in an 
 another machine , while i was trying to configure the database connection 
 pool i am unable to create datasource, I found the logs in the command prompt 
 please find below:
 
 
snip
...
 jvm 1| java.lang.UnsupportedClassVersionError: Bad version number in 
 .class
 file
 jvm 1|  at java.lang.ClassLoader.defineClass1(Native Method)
 jvm 1|  at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 jvm 1|  at 
 java.security.SecureClassLoader.defineClass(SecureClassLoader
 .java:124)
 jvm 1|  at 
 java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
 jvm 1|  at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 jvm 1|  at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 jvm 1|  at java.security.AccessController.doPrivileged(Native Method)
 jvm 1|  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 jvm 1|  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 jvm 1|  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 jvm 1|  at 
 org.apache.geronimo.console.databasemanager.wizard.DatabasePo
 olPortlet.attemptDriverLoad(DatabasePoolPortlet.java:1177)
...
snip
 
 Please suggest me the steps to complete this task. I need this in an 
 urgency I would really appreciate if i get any response from you.

One general point -- Geronimo 2.0.1 is pretty old. If you you need a Java EE 5 
server, I'd suggest Geronimo 2.1.8 (or 2.2.1).

What version of Java are you running?

You are almost certainly getting this error because you are running a version 
of Java which is older than the version of Java which was used to compile some 
of your classes. It's really a bit more complex than this. The javac parameters 
-source and -target control what JVM class file format will be generated by 
javac (e.g. Java 6 compiler can generate Java 5 class files, but not vice 
versa). 

In your case, I'd say for example you are running Java 1.5 and some of your 
classes were compiled for Java 6. Each class has a Java version identifier. 
When your Java 1.5 JVM loads a Java 6 class, the 1.5 JVM detects that the Java 
6 class version number is not supported and throws this exception…

I'd assume your attempting to run classes (e.g. from your jdbc driver) that are 
not compatible with the version of java you're using to run geronimo. You 
either need to recompile your classes or move to a newer version of java.

--kevan



Re: Configure Apache HTTPd as a reverse proxy (mod_proxy)

2012-05-17 Thread Kevan Miller

On May 17, 2012, at 1:19 AM, sai charan wrote:

 Hello,
 
 After editing the httpd.conf file i have restarted the Apache service and at 
 the same time Apache Geronimo was started and in running mode.. 
 
 I am getting the below error:
  
 You requested http://www.locahost.com/console
 You probably intended http://localhost/console
 
 Confused? This means either you mistyped, or whoever wrote/configured the 
 page/site/service you just came from screwed up. It happens, don't stress it 
 (and don't blame me.) Apparently I have to spell it out: L O C A  host. See? 
 No 'L', so your browser kindly appended .com, and you ended up here, instead 
 of http://localhost/ which you presumably intended.
 
 Note: This is not localhost.com either. Check again. Again. See? No 'L'.

Well, seems to be spelled out pretty clearly… Somewhere, you've specified 
'locahost' instead of 'localhost'.  BTW (seems worth noting) -- I assume you're 
running the web browser on the same host that you're running geronimo/httpd…

Check the ProxyPass configurations in httpd.conf. Make sure you didn't type 
'locahost' by mistake. That probably doesn't explain your behavior (could 
probably reason it out, but really don't care…)

So, in your web browser, make sure you are asking for 'http://localhost/' and 
not 'http://locahost/'

--kevan


Re: Configure Apache HTTPd as a reverse proxy (mod_proxy)

2012-05-15 Thread Kevan Miller

On May 14, 2012, at 8:22 AM, sai charan wrote:

 Hello,
 
 I have installed geronimo application server in my PC, I have installed 
 Apache web server along with this geronimo, When i tried to Configure Apache 
 HTTPd as a reverse proxy (mod_proxy), I am unable to configure, I followed 
 all the below steps that mentioned in the document,
 
   • Open the httpd.conf located in the httpd_home\conf directory.
   • Look for the following LoadModule directives and uncomment them by 
 removing the # at the beginning of the line.
   • LoadModule proxy_module modules/mod_proxy.so
   • LoadModule proxy_http_module modules/mod_proxy_http.so
   • At the bottom of the httpd.conf add the following lines to enable the 
 re-rounting.
   • ProxyPass /console http://localhost:8080/console
   • ProxyPass /images http://localhost:8080/images
   • ProxyPassreverse / http://localhost:8080/
 Both are installed on the same machine, Could you please advice me on this 
 issue, I would really appreciate if i found any response from you.As i need 
 this in an urgent manner.

Excuse the obvious -- httpd was started/restarted after your change? And 
geronimo has been started? If yes to both, we'll need more info… Certainly 
has/does work for me…

--kevan

Re: Geronimo release cycle

2012-04-29 Thread Kevan Miller

On Apr 28, 2012, at 2:47 PM, Radim Kolar wrote:

 
 Currently, the release cycle for Geronimo is about an year or even longer, 
 so it takes significant amount of time before we could use an updated 
 version of software with bug fixes and enhancements.
 I also feel that project is not very alive. Most alive open source 
 application server project is Glassfish. but it has significant number of 
 bugs. I already tried 2 times to deploy it in production - once for glassfish 
 V2.0 and second few years later with glassfish 3.1.1 and had to step back.
 
 I currently use JBoss 7.1.1. Documentation for AS 7 is bad probably even 
 worse then Geronimo docs, official forums are not much alive, posts has  100 
 reads. Fighting with classloading issues in JBoss is challenging as well in 
 geronimo, i was unable to solve some classloading issues as well - had to 
 build own J2EE minimal stack and deploy it into Jetty 7. But i was more 
 successful in fighting these problems in jboss then in Geronimo.
 
 As i understand open source community in general do not like J2EE concept and 
 tends to use simpler solutions like tomcat, which means that OS J2EE app 
 servers are not on community radar with exception of Glassfish - which is 
 popular because its offered as J2EE download from oracle site.

Note that there was a fair amount of discussion on the dev list on this same 
subject. There's been a lot of focus by the community on a 3.0 release (and 
others). Which I expect will be soon. As always, anyone who is interested in 
helping with releases (e.g. 2.2.x) is welcome to lend a hand…

--kevan

Re: Exception during startup for little-g (Tomcat) 2.2.1

2012-04-29 Thread Kevan Miller

On Apr 29, 2012, at 1:27 AM, Cynepnaxa wrote:

 Hello! i have the same issue too. 
 geronimo-tomcat6-javaee5-2.2.1
 oracle jdk1.6.0_32 x64
 ubuntu 11.10 x64
 After change null to manager startup make few steps more and throw another
 exception(diff say it's stacktrace have some differences):
 2012-04-29 11:43:19,675 INFO  [KernelContextGBean] bound gbean
 org.apache.geronimo.framework/rmi-naming/2.2.1/car?ServiceModule=org.apache.geronimo.framework/rmi-naming/2.2.1/car,j2eeType=Context,name=GeronimoContext
 at name ger:
 2012-04-29 11:43:21,317 INFO  [SystemProperties] Setting
 Property=javax.xml.soap.MetaFactory to
 Value=org.apache.geronimo.webservices.saaj.GeronimoMetaFactory
 2012-04-29 11:43:21,319 INFO  [SystemProperties] Setting
 Property=javax.xml.soap.MessageFactory to
 Value=org.apache.geronimo.webservices.saaj.GeronimoMessageFactory
 2012-04-29 11:43:21,319 INFO  [SystemProperties] Setting
 Property=java.net.preferIPv4Stack to Value=true
 2012-04-29 11:43:21,319 INFO  [SystemProperties] Setting
 Property=javax.xml.soap.SOAPConnectionFactory to
 Value=org.apache.geronimo.webservices.saaj.GeronimoSOAPConnectionFactory
 2012-04-29 11:43:21,319 INFO  [SystemProperties] Setting
 Property=javax.xml.soap.SOAPFactory to
 Value=org.apache.geronimo.webservices.saaj.GeronimoSOAPFactory
 2012-04-29 11:43:21,319 INFO  [SystemProperties] Setting
 Property=java.security.Provider to Value=SUN
 2012-04-29 11:43:25,035 INFO  [KernelContextGBean] bound gbean
 org.apache.geronimo.configs/transaction/2.2.1/car?ServiceModule=org.apache.geronimo.configs/transaction/2.2.1/car,j2eeType=Context,name=ResourceBindings
 at name jca:
 2012-04-29 11:43:25,973 ERROR [AbstractEncryption] Unable to decrypt
 java.io.EOFException
   at
 java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2280)
   at
 java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)
   at 
 java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
   at java.io.ObjectInputStream.init(ObjectInputStream.java:279)
   at
 org.apache.geronimo.crypto.AbstractEncryption.decrypt(AbstractEncryption.java:76)
   at
 org.apache.geronimo.crypto.EncryptionManager.decrypt(EncryptionManager.java:109)
   at
 org.apache.geronimo.gbean.annotation.EncryptionSetting$1.decrypt(EncryptionSetting.java:33)
   at
 org.apache.geronimo.system.configuration.GBeanOverride.getValue(GBeanOverride.java:416)
   at
 org.apache.geronimo.system.configuration.GBeanOverride.applyOverrides(GBeanOverride.java:367)
   at
 org.apache.geronimo.system.configuration.LocalAttributeManager.setAttributes(LocalAttributeManager.java:228)
   at
 org.apache.geronimo.system.configuration.LocalAttributeManager.applyOverrides(LocalAttributeManager.java:197)
   at
 org.apache.geronimo.kernel.config.Configuration.init(Configuration.java:297)
   at sun.reflect.GeneratedConstructorAccessor20.newInstance(Unknown 
 Source)
   at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
   at
 org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:952)
   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:911)
   at
 org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
   at
 org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
   at
 org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:525)
   at
 org.apache.geronimo.kernel.basic.BasicKernel.startGBean(BasicKernel.java:359)
   at
 org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:163)
   at
 org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:302)
   at
 org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:271)
   at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at
 org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
   at
 org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
   at
 org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:816)
   at 
 org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
   at
 

Re: deploy

2012-04-16 Thread Kevan Miller

On Apr 16, 2012, at 4:18 PM, Ivan wrote:

 Seems that the maven artifact version and OSGi bundle version have different 
 requirement, could you please only use numbers as the version ?

I suggested the same to Stephen on IRC. I think he has it working, now…

The daytrader docs (and the tranql dependencies) definitely need a little 
work...

--kevan

Re: deploy

2012-04-16 Thread Kevan Miller

On Apr 16, 2012, at 4:48 PM, Stephen Davidson wrote:

 I AM able to create the datasource, but I think I may need a different name
 for it.  The datasource I create is jdbc/TradeDataSource.  I can query
 against the database, though my datafiles are currenlty empty.  
 However, when I try to deploy the application, I get this exception:

What does your geronimo deployment plan look like?

--kevan


NoClassDefFoundError trying to use log4j SMTPAppender

2012-03-02 Thread Kevan Miller
On IRC, yesterday, a user reported a problem deploying their app on Geronimo 
2.2.1. They had an exception like the following:

ERROR Servlet /analytics threw load() exception
org.springframework.beans.PropertyBatchUpdateException; nested 
PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property 'accountService' 
threw exception; nested exception is java.lang.NoClassDefFoundError: 
javax/mail/Multipart
at 
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1119)
at 
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:899)
at 
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76)
at 
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1350)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at 
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
at 
org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:383)
at 
org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:362)
at 
org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.detectHandlers(AbstractDetectingUrlHandlerMapping.java:82)
at 
org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.initApplicationContext(AbstractDetectingUrlHandlerMapping.java:58)
at 
org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)
at 
org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)
at 
org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
at 
org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:106)
at 
org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:85)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1405)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:398)
at 
org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1146)
at 
org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:266)
at 
org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:270)
at 

Re: How contributors participate in this community?

2012-02-20 Thread Kevan Miller

On Feb 20, 2012, at 4:39 AM, MaXiujuan wrote:

 Hi, Kevan,
 
  I am so grateful for your kindly and patient reply. These are all
 valuable insights and comments, which mean a lot to me. 

Happy to help. I should note that I work for IBM. 

 
 
 On Sun, 2012-02-19 at 16:28 -0500, Kevan Miller wrote:
 Oops. Forgot about your email... Apologies for the slow response. Hope
 this helps...
 
 Never mind. Please apologies for bothering you so much. And apologies
 for so many questions below, please take your time and I am expecting
 for any of your comments :P
 
 I would characterize both periods as 'open source' periods. At all
 times, the Apache Geronimo PMC has been responsible for the management
 of the Geronimo project. Not Gluecode, not IBM, nor any other company.
 
 Thank you greatly for correcting me. Sorry, I took Geronimo in a wrong
 way and now I realized that I hadn't learned it thoroughly when i heard
 it together with WAS CE(i mean the community edition of application
 server of IBM) on one of my school courses at the end of 2006. But i
 still can't tell the difference between WAS CE and Geronimo, is WAS CE a
 IBM version of Apache Geronimo? I am just curious about the relationship
 of the two…

Right. Apache Geronimo is a product of the Apache Software Foundation. WAS 
Community Edition is a product of IBM. WAS Community Edition is a 
redistribution of Apache Geronimo. There are some minor differences, between 
the two. But from a functional perspective they can be considered the same...

 
 Gluecode was a company providing support for Geronimo. In 2005, IBM
 acquired Gluecode. In both periods there were commercial interests in
 the Geronimo project. There are commercial interests in most open
 source projects. 
 
 I'm not sure whether this question is proper: What does the commercial
 interests mean? Does it refer to the company's business model, for
 example, sth. like IBM's strategy on open source application server,
 e.g. in my imagination, IBM wanted to support Geronimo for its WAS CE or
 Websphere?

Ah, English with our overloaded terms. :) By commercial interests I'm using 
commercial with the following meaning: intended to make a profit. So, by 
commercial interests I mean that there are companies (or people) who are 
attempting to make money by their participation in / contributions to the open 
source project. Either via consulting/services, providing support, or other 
means (direct or indirect).

 
 Organizations like the Apache Software Foundation
 take steps to insulate their projects from these commercial interests.
 
 What does insulate their projects from these commercial interests
 refer to? I am very curious why to insulate, after all, it is quite
 common in nowadays' open source projects with commercial sponsorship or
 other kinds of involvement. Would those commercial interests lay burden
 on OSS projects which would prefer to more free rapid technical
 innovation? 

First, I'd refer you to some documentation about the ASF:

http://www.apache.org/foundation/
http://www.apache.org/foundation/bylaws.html

And perhaps most importantly:

http://www.apache.org/foundation/how-it-works.html

The ASF is a meritocracy. You can't buy your way into a project. You have to 
earn your way into the project, by contributing to the project -- creating 
documentation, answering user questions, creating bug fixes, creating new 
software features, etc. Once you've earned your merit, you'll become a project 
committer and eventually a PMC member.

The PMC of a project manages the project. PMC members are expected to manage 
the project as individuals, not as a representative of their employer. This 
doesn't mean that a company doesn't have influence on a project. They certainly 
do. However, the PMC is expected to insure that the community is operating in 
an open manner, to help resolve any disputes that may arise (e.g. I want to 
implement feature 'Foo', but you want to implement feature 'Bar' and we can't 
reach agreement -- the PMC is expected to help mediate our disagreement). If 
the PMC fails to perform our job, the ASF Board can (and will) disband the PMC 
(and ultimately could stop development on the project all together).

Not all open source software projects are structured this way. Some are more 
open than others. IMO, the ASF is as open as they come. I haven't looked at the 
Contributor License Agreement (CLA) for JBoss. Nor have I looked at the by-laws 
for how their community policies. However, I expect that any contributions you 
make to jboss.org become the property of RedHat. If you are an independent 
contributor to a JBoss project as an independent contributor, I would not 
expect that my ability to influence the project would be equal to a RedHat 
employee. 

 
 
 There was no new protocol for obtaining commit privileges.
 
 Thanks for the confirmation.
 
 There was a period of time where the project was following a
 Review-Then-Commit (RTC) policy, rather than a Commit

Re: How contributors participate in this community?

2012-02-19 Thread Kevan Miller
Oops. Forgot about your email... Apologies for the slow response. Hope
this helps...

On Tue, Feb 7, 2012 at 11:55 PM, maxj07 max...@sei.pku.edu.cn wrote:
 Hi,

  I am a phd student of Peking University. My interest is to
 investigate hybrid projects (open source and backed by companies), e.g,
 how it affects volunteers compared to the beginning open and free world.
 I studied Geronimo through its log files in SVN, issue reports in Issue
 Tracker, emailing-lists and information all over Internet, found some
 interesting results, also have a couple of questions, hope any of you
 wouldn't mind reading and answering.

 Geronimo seems to go through two periods since is was born in 2003
 a)Period1: 2003.08-2005.04, open source period
 b)Period2: 2005.08-2010.08, hybrid with IBM's support, IBM provide Expert 
 Technical Support for Geronimo
 If I'm wrong, please correct me.

I would characterize both periods as 'open source' periods. At all
times, the Apache Geronimo PMC has been responsible for the management
of the Geronimo project. Not Gluecode, not IBM, nor any other company.

Gluecode was a company providing support for Geronimo. In 2005, IBM
acquired Gluecode. In both periods there were commercial interests in
the Geronimo project. There are commercial interests in most open
source projects. Organizations like the Apache Software Foundation
take steps to insulate their projects from these commercial interests.


 1) It seems that Geronimo gets less external developers after IBM's
 support -- I identified external developers through the committer list on 
 Apache website
 (committers not from IBM are regarded as external developers. See
 http://people.apache.org/committers-by-project.html#geronimo).
 Is that because a new protocol requires a long process to get commit
 privilege?

There was no new protocol for obtaining commit privileges.

There was a period of time where the project was following a
Review-Then-Commit (RTC) policy, rather than a Commit-Then-Review
(CTR). This may have have resulted in slower development (and thus
indirectly impacted new committers joining the project).

A number of factors may impact participation in an open source
project. Release schedules, news articles, etc -- all can lead to
increased participation by a community (e.g. I would expect more bug
reports to be generated after a major release, and then taper off over
the lifetime of the major release).

 Or, people just simply didn't like any commercial companies
 getting involved therefore ran away? E.g, Similar case in JBoss: There had 
 been rumors
 swirling about various people leaving JBoss after its acquisition by Red
 Hat, including Marc Fleury. (See
 http://www.theserverside.com/discussions/thread.tss?thread_id=43410)

 I also observed that JBoss showed the similar phenomena after RedHat stepped
 in. I suppose commercial involvement might hurt people in open source to
 some extent, I wonder what it is.

The RedHat acquisition of JBoss is quite different, IMO. Personally, I
would not equate an ASF project with an open source project like
JBoss, which is essentially controlled by a company (JBoss and then
RedHat).

The departure of employees following an acquisition is not unusual.
JBoss was commercial. RedHat is commercial. RedHat is also
larger. I expect there were a number of reasons why JBoss employees
might have left: cultural, philosophical, and economic.


 2) However, I found Geronimo developers stay shorter after IBM supported it.
 I am very curious about two things:

 (i) Only 2 out of 20 developers left before IBM supporting, why are so
 few developers leave and so many developers stick to this Open Source
 project at that time? Did those developers come from the same company or
 work in the same location?

I don't know what you mean by developers leaving (or how you're
measuring this). I wouldn't want to discuss any individuals by name
(or otherwise) on a public mailing list. 2003-2005 is, of course, a
shorter time period than 2005-2010. People become involved in open
source projects for a number of reasons (and also stop participating
for a number of reasons). A company's interest in sponsoring employees
to participate in an open source project could certainly play a role
in this.


 (ii) Whether most of the active contributers were recruited to support
 the community after IBM's support? So IBM would decide who is assigned
 to work on Geronimo and how long they would stay in the project?

Companies may ask their employees to participate in open source
projects. IBM has (and continues to) sponsor participation in the
Geronimo project. Some companies may have sponsored participation in
Geronimo, but later decided to allocate their resources to other
projects. Same is true for individuals.


 3) People always say one big advantage of OSS is to have a big amount of
 users reporting issues therefore help improve quality. During 2005 to
 2008, right when IBM began to support Geronimo, there was an big
 

Re: Does Wink comes with Geronimo-Tomcat 3.0 beta 1?

2012-02-10 Thread Kevan Miller
On Thu, Feb 9, 2012 at 7:31 PM, Teimatini Marin tma...@beuwa.com wrote:
 Hello:

 I can read in the RELEASE_NOTES-3.0-beta-1.txt file the following:
 GERONIMO-5096 Integrate Wink JAX-RS implementation into Geronimo. 

 My issue is that Geronimo is throwing the following exception when I tryed
 to deploy my first restfull ws:
 [ERROR] Caused by: java.lang.ClassNotFoundException:
 org.apache.wink.server.internal.servlet.RestServlet
 [ERROR] at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
 [ERROR] at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
 [ERROR] at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
 [ERROR] at
 org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
 [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
 [ERROR] at
 org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
 [ERROR] at
 org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
 [ERROR] at
 org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
 [ERROR] at
 org.apache.geronimo.web25.deployment.merge.annotation.ServletSecurityAnnotationMergeHandler.postProcessWebXmlElement(ServletSecurityAnnotationMergeHandler.java:52)

 If I package the wink jar into my war, the exception gone.

 So, the question here is:
 Do I really need to package wink jar into my WAR or I messed something?

Which Geronimo distribution are you using?
geronimo-tomcat7-javaee6-3.0-beta-1, for example, would have JAX-RS
support.

--kevan


Re: How contributors participate in this community?

2012-02-08 Thread Kevan Miller

On Feb 7, 2012, at 11:55 PM, maxj07 wrote:

 Hi, 
 
  I am a phd student of Peking University. My interest is to
 investigate hybrid projects (open source and backed by companies), e.g,
 how it affects volunteers compared to the beginning open and free world.
 I studied Geronimo through its log files in SVN, issue reports in Issue
 Tracker, emailing-lists and information all over Internet, found some
 interesting results, also have a couple of questions, hope any of you
 wouldn't mind reading and answering.

Hi. Thanks for the email. I'm running short on time, today. So, this is a quick 
acknowledgement. I'll get some more time in a day or two and can give you my 
thoughts… Others can chime in, of course…

--kevan

Re: Apache | Wal-Mart Application Migration to Windows 7

2011-11-19 Thread Kevan Miller

On Nov 18, 2011, at 7:25 PM, Gunjan Paliwal - Vendor wrote:

 Hello,
  
 I am part of the Windows 7 Application Compatibility team at Wal-Mart.  
 Wal-Mart is currently in the process of migrating to Windows 7 and our team 
 is gathering information on compatibility of vendor supported applications in 
 the Windows 7 environment.  We have identified some applications whose vendor 
 is Apache and would like information from you if these applications are 
 Windows 7 64-bit compatible and if not, whether there is a compatible upgrade 
 available.
  
 We got your contact information from the Apache website. If you are unable to 
 provide the information we have requested, please direct us to the person we 
 can contact for this. Please find below list of applications that we need 
 information on.  We would like to have this information in 2 days. 
  
 Your anticipated cooperation is greatly appreciated.
  
 Please fill the details in below table
 Application Name  Application Version IS application Windows 7 64-bit 
 Compatible  Is there Any Win7 64 bit Compatible Upgrade Available, if yes 
 what is the version   Is this Win7 64 bit compatible version supported by 
 you in future   Comments
 GeronimoWebServer 2.1.7
 GeronimoWebServer 2.1.6
 GeronimoWebServer 2.1.4
 GeronimoWebServer 2.1.3
  
  
 Please send your response to w...@email.wal-mart.com (Reply to all)

Hi Gunjan,
The Apache Software Foundation is not a vendor. For information about the ASF, 
see http://www.apache.org/foundation/

I'm not aware of any issues running Apache Geronimo on Windows 7 64-bit. 
However, the Geronimo project does not make any compatibility claims.

--kevan

Re: command line to Dytrader2

2011-11-16 Thread Kevan Miller

On Nov 16, 2011, at 9:34 AM, dubi wrote:

 I am using Daytrader 2.0 running on Tomcat6 and geronimo 2.1.7  with Derby DB 
 
 Is there a command line option to Daytrader by which I can either reset it
 or recreate is DB 
 rather than using the Web interface  ?

Your messages are making it through…

I don't know DayTrader real well and don't know of an explicit command for 
performing a reset.

'wget http://localhost:8080/daytrader/config?action=resetTrade' (or equivalent) 
ought to work, though...

--kevan

Re: update activemq to 5.6

2011-11-11 Thread Kevan Miller

On Nov 11, 2011, at 4:37 AM, Radim Kolar wrote:

 try to release at least 2.2 branch with updated active mq. ActiveMQ soon. It 
 crashes here again and it does about one times per month.

Hi Radim,
Have you tried turning off the ActiveMQ scheduler?

IIRC, you should be able to avoid this by editing 
var/activemq/conf/activemq.xml and adding schedulerSupport=false (assuming 
you don't require ActiveMQ JobScheduler support): 

broker xmlns=http://activemq.apache.org/schema/core; 
brokerName=${activemq.brokerName} 
tmpDataDirectory=${activemq.data}/tmp_storage useShutdownHook=false 
start=false schedulerSupport=false 

--kevan



Re: classloading in 3.0

2011-11-07 Thread Kevan Miller

On Nov 4, 2011, at 3:42 PM, David Jencks wrote:

 
 On Nov 4, 2011, at 12:07 PM, Radim Kolar wrote:
 
 I propose to make classloading in 3.0 entirely different. Give user 
 aplication access to javax.* stuff and other required J2EE 6 apis and 
 nothing else unless told otherwise by deployment descriptor.
 
 I'd like this too.  How do you propose to get this to work?  I've been 
 working on several ideas that end up requiring major modifications to 
 geronimo that I haven't been able to get to work.  Any ideas you might have 
 would be great to see.

Agreed. We'd discussed this previously, IIRC.

 
 What I'd actually like to see is that, instead of arbitrarily importing any 
 particular set of classes, we run bnd on the application classes to determine 
 the Import-Packages needed.

Are you saying you don't want to arbitrarily import spec api classes? Or are 
you suggesting we use BND to dynamically determine Import-Packages for non-spec 
classes? I assume the latter would be filtering (not importing) packages that 
are already included in the application archive?

Automatically importing a default set of spec api classes would be a good first 
step, IMO. And require explicit Import-Packages -- at least initially.

--kevan

Re: update activemq to 5.6

2011-11-03 Thread Kevan Miller

On Nov 2, 2011, at 3:46 AM, Radim Kolar wrote:

 You should update included activemq to 5.6-snapshot because it fixes highly 
 annoying bug - AMQ-3104 which is no.1 problem why geronimo refuses to start 
 on unclean shutdown if there was some jms activity in progress.

Thanks for the pointer. Are there plans for an ActiveMQ 5.6 release?

--kevan

Re: Biolerplate EJB3+JPA example ...

2011-10-13 Thread Kevan Miller

On Oct 13, 2011, at 12:01 PM, marcb wrote:

 Turns out it WAS a JVM problem. I was using JDK 1.7 and this seemed to be the
 issue. When I switched back to 1.6 (1.6.0_27) the problem went away and
 everything worked just fine.

IIUC (and I haven't looked closely), there's been a change to default bytecode 
verification in Java 7. Byte-code weaving (e.g. ASM) is producing classes that 
fail the new verifier checks.

You may find that running with -XX:-UseSplitVerifier will workaround the 
problem on Java 7 -- would be interesting to know, if that works. 

You could create a Jira, if you're interested in Java 7 support...

--kevan

Re: Biolerplate EJB3+JPA example ...

2011-10-11 Thread Kevan Miller

On Oct 11, 2011, at 7:23 PM, marcb wrote:

 As a work in progress ... I've been able to move past the Jta... issue and am
 now seeing:
 
 java.lang.VerifyError: Expecting a stackmap frame at branch target 148 in
 method com...

Hmm. Are you running Java 7?

--kevan

Re: GEP 3.0 and Geronimo 2.2.1

2011-09-27 Thread Kevan Miller

On Sep 27, 2011, at 7:04 AM, KHAksnes wrote:

 The problem with the use of the nightly builds are that they are by design
 not stable.

Right. NIghtly builds are convenient for testing purposes, but not something 
that I would use for day to day development...

 GEP needs to be able to do a release whenever Geronimo have had
 a release but also whenever a new Eclipse release is out. If GEP needs an
 upgrade to work with a new release of Eclipse it should be possible to
 release it without having to wait for the next Geronimo release to do so.

There's nothing that prohibits GEP releases to Geronimo releases. There is a 
problem releasing GEP that is directly tied to SNAPSHOT Geronimo server 
releases. In this case, Geronimo 3.0 server has been slowing/prevented GEP 3.0 
release. Hopefully, that will be resolved soon with 3.0-beta. 

A GEP 2.2.x release could have been generated, but wasn't where the GEP team 
was focusing. If request had come in earlier, a 2.2.x release might have been 
called for...

--kevan



Re: GEP 3.0 and Geronimo 2.2.1

2011-09-21 Thread Kevan Miller

On Sep 16, 2011, at 9:42 PM, Steve Higham wrote:

 I’ve managed to install the GEP plugin on Eclipse Hellios and Indigo to 
 manage a Geronimo 2.2.1 Server.
  
 In each case the server could be started and stopped. However the GEP takes 
 no action when the user requests a deployment. No exceptions, no error 
 messages but unfortunately no deployments L
  
 I’ve gone back to GEP 2.2.1 now and my EAR’s are deploying again.

I confess that I haven't tried... Anybody that's been working on GEP able to 
comment?

--kevan

Re: [DISCUSSION] Geronimo 3.0 Release

2011-09-07 Thread Kevan Miller

On Sep 7, 2011, at 2:34 PM, Radim Kolar wrote:

 Dne 6.9.2011 21:18, Radim Kolar napsal(a):
 Go for G3 beta
 
 can you give me location of tomcat based Geronimo 3.0 nightly snapshot. I 
 will test it with my apps.

Cool. Here you go:

https://repository.apache.org/content/groups/snapshots/org/apache/geronimo/assemblies/geronimo-tomcat7-javaee6/3.0-SNAPSHOT/

--kevan



Re: JDBC 4 support in Geronimo 3

2011-09-02 Thread Kevan Miller

On Sep 2, 2011, at 4:35 AM, amergey wrote:

 Hello
 
 Testing a web application executing some JDBC code using a datasource
 against geronimo 3, I had the following exception
 
 java.lang.AbstractMethodError:
 org.tranql.connector.jdbc.ResultSetHandle.isClosed()Z when calling
 java.sql.ResultSet.isClose()
 
 So it seems geronimo 3 does not support JDBC 4 API, the bug [GERONIMO-6138]
 (JDBC 4 API is not supported) was closed claiming this bug was fixed in
 trunk since 3.0-M1 
 
 but I have tested with latest available SNAPSHOTS
 (geronimo-tomcat7-javaee6-web-3.0-20110901.085007-314-bin and
 geronimo-tomcat7-javaee6-3.0-20110901.110425-314-bin) and the issue is still
 there 
 
 Is there something I missed ? meaning is there any way to configure a
 datasource for supporting JDBC 4 API ? if it is not can I reopen the bug ?

Thanks for the update. Yes, please re-open the Jira with this additional 
information.

--kevan

Re: missing XSD schemas on web

2011-09-02 Thread Kevan Miller
Hi Radim,
Thanks for the detailed explanation.

Could you generate a Jira? Agreed that this is something we should try and 
support.

--kevan

On Aug 29, 2011, at 1:22 AM, Radim Kolar wrote:

 Dne 29.8.2011 6:25, chi runhua napsal(a):
 The schema files are actually under http://geronimo.apache.org/xml/ns/, not 
 sure it's the problem of GEP validation,  might need someone else to look 
 into the GEP code.
 I am not talking about GEP code. In GEP it might work because it probably 
 comes comes with xsd schemas already included. I am talking about standard 
 XML validation in any XML editor or Eclipse without GEP.
 
 I will describe problem in more detail. If you validate against 
 http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1, XML downloads XSD from 
 schema location   
 xsi:schemaLocation=http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1 
 http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1;
 
 
 ponto:(admin)~fetch http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1
 web-2.0.1 100% of 6143  B  214 kBps
 ponto:(admin)~
 
 so we have got file. Now time to parse it with XML parser. File has includes 
 inside:
 
 ponto:(admin)~grep -i import web-2.0.1
 xs:import namespace=http://geronimo.apache.org/xml/ns/naming-1.2; 
 schemaLocation=geronimo-naming-1.2.xsd/
 xs:import namespace=http://geronimo.apache.org/xml/ns/j2ee/application-2.0; 
 schemaLocation=geronimo-application-2.0.xsd/
 xs:import namespace=http://geronimo.apache.org/xml/ns/deployment-1.2; 
 schemaLocation=geronimo-module-1.2.xsd/
 xs:import namespace=http://java.sun.com/xml/ns/persistence; 
 schemaLocation=http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd/
Reference to abstract service element defined in 
 imported
 ponto:(admin)~
 
 lets look at first import. We are going to import namespace 
 http://geronimo.apache.org/xml/ns/naming-1.2 from URL 
 http://geronimo.apache.org/xml/ns/j2ee/geronimo-naming-1.2.xsd (schema 
 location is added to current URL) which does not exists on geronimo web 
 server.
 
 naming schema exists at different location
 
 ponto:(admin)~fetch http://geronimo.apache.org/xml/ns/naming-1.2
 naming-1.2100% of   52 kB  624 kBps
 ponto:(admin)~
 
 but your schemas refers to xsd import files in same directory like main 
 schema which is good because validation on XSD schemas downloaded localy will 
 work if you dump all schemas into one directory like you do in geronimo 
 distro. To make XML validation work locally you just need to point schema 
 location to your geronimo install directory. something like this:
 
 xsi:schemaLocation=http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1 
 file:///usr/local/wasce/schema/geronimo-web-2.0.1.xsd
 
 and everything works. But for making validation to work over HTTP you need to 
 upload these XSD files with xsd extension to 
 http://geronimo.apache.org/xml/ns/j2ee/ as well to 
 http://geronimo.apache.org/xml/ns/ You need to have them several times on web 
 server, once for xs:import with XSD extension and second without extension 
 for xsi:schemalocation.
 



Re: Runaway garbage collection on G 2.2.1

2011-08-18 Thread Kevan Miller

On Aug 18, 2011, at 5:07 PM, Jay D. McHugh wrote:

 Hello all,
 
 My app which is bundled as an EAR consisting of an EJB jar and a WAR file has 
 been running quite happily in Geronimo for years (it has been in continuous 
 development the entire time).
 
 But yesterday, it suddenly started to flake out running through a tremendous 
 number of garbage collections when attempting to open some (but not all) of 
 the jsps in the WAR file.  There are so many collections occurring that it 
 sometimes takes several minutes before the jsp gets processed and sent to the 
 browser.
 
 There is no useful logging that happens so it appears that the problem is 
 occurring somewhere in Tomcat.
 
 I do have a filter that is configured, but when I put some logging into that 
 - it was not hit until after the GC looping finished.
 
 Does anyone have a suggestion as to where I could look to figure out what 
 might be going on?
 
 This is running on an Ubuntu Linux 10.04.3 64bit machine with 6Gb of physical 
 memory and two dual-core hyperthreading processors (so it looks like 8 cores 
 to the OS).
 
 Here is my JAVA_OPTS variable:
 
 JAVA_OPTS=-Xms1024m -Xmx1024m -XX:MaxPermSize=256m -XX:NewSize=64m 
 -XX:MaxNewSize=128m -verbose:gc -XX:+PrintGCDetails 
 -XX:+HeapDumpOnOutOfMemoryError
 
 With the exception of the garbage collection flags and the 'dump on error' 
 parameters - I have been running with this set up forever.
 
 Is it possible for the number of classes in my EAR to cause a problem?
 
 I am pretty much at my wits end - but I have to fix it because it is on my 
 production server and all of my attempts to set up a new system have the same 
 problem.
 
 Thanks in advance for any hints,

Hi Jay,
Doesn't ring any bells, unfortunately.

How does your GC output look? Are you running low on heap/permgen space? And 
thus spending a lot of time GC'ing as the JVM struggles to keep things afloat? 
Or is something allocating a bunch of objects?

I'd try 'kill -3 pid' to see if you can get an idea of what the server is up 
to...

Beyond that, I'd try to post-mortem what has changed. Was there an app update 
that may have triggered this behavior? Network change (that's a stretch). Java 
refresh, etc...

--kevan



[DISCUSSION] Geronimo 3.0 Release

2011-08-17 Thread Kevan Miller
All,
Our Tomcat Java EE 6 assembly has been passing all of the relevant Java EE 6 
TCK tests for a while now. IMO, it's time to start discussing release plans. 

I should note that the Jetty assembly is not, currently, passing all tests. 

We have multiple options:

1) Release a Geronimo 3.0 Beta, gain user feedback, and work towards a Geonimo 
3.0 release
2) Release a Geronimo 3.0 release, gain user feedback, and work towards future 
3.0.x releases

1) Release Tomcat, only
2) Release both Tomcat and Jetty, but only announce compliance of appropriate 
platforms

There are a number of SNAPSHOT dependencies. A Beta release may give us a bit 
more flexibility in our handling of the release (e.g. we may locally release 
some of the dependencies).

A full 3.0 release would mean we'll need to work with other projects to insure 
our SNAPSHOT dependencies are released (this will likely take additional time). 

I expect there are other options and other issues to be considered.

Thoughts?

--kevan

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

2011-08-07 Thread Kevan Miller

On Aug 5, 2011, at 3:30 PM, horowitzathome wrote:

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

What version of the Geronimo Eclipse Plugin are you using?

--kevan



Re: Geronimo server stop when undeploy or redeploy.

2011-07-19 Thread Kevan Miller

On Jul 19, 2011, at 8:04 AM, ranbaab wrote:

 Hi Kevan,
 
 First I would like to thank you for your valuable advice and support.
 
 Below are the steps followed to get the dump, please let me know if I miss
 any steps
 
 1. Command for undeploy
 
 [root@fc70 bin]# ./deploy.sh --user system --password manager undeploy
 ibm/bhm/application/war
 Using GERONIMO_HOME:   /opt/ibm/BLADEHarmonyManager/webserver
 Using GERONIMO_TMPDIR: var/temp
 Using JRE_HOME:/usr/java/ibm-java-i386-60/jre
 
 It stuck here, no further message 
 
 
 2. Check for the PID (another console)
 
 [root@fc70 ~]# ps -ef | grep java
 root  4716 1  1 16:01 ?00:00:59 dataBase
 root  5701 1  6 16:52 pts/100:00:33 Application
 root  5788  5784  3 16:56 pts/100:00:09 xApplication 
 bin/deployer.jar --user system --password manager undeploy /application/war
 root  5844  5546  0 17:00 pts/200:00:00 grep java
 
 *This means that the server PID is 5701 and undeploy command PID is 5788.*
 
 3. Command to generate java stack traces
 [root@fc70 ~]# kill -3 5701
 
 The above command generate a dump in the folder bin.
 
 *Some last line from the file.*
 
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/model/LocalEjbType(0x0BB75D60)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/model/ResourceType(0x0BB75E80)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/model/ResourceEnvRefType(0x0BB761C0)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/model/ServiceRefType(0x0BB762B0)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/model/TransactionType(0x0BB763A0)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/model/ConnectorType$JaxbAccessorF_emptySessionPath(0x0BB764C0)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/model/ConnectorType$JaxbAccessorF_enableLookups(0x0BB76640)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/model/ConnectorType$JaxbAccessorF_maxPostSize(0x0BB767C0)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/model/ConnectorType$JaxbAccessorF_maxSavePostSize(0x0BB76940)
 3CLTEXTCLASS  
 org/apache/catalina/connector/Connector(0x0BB69410)
 3CLTEXTCLASS  
 org/apache/catalina/Container(0x0BB6A3F0)
 3CLTEXTCLASS  org/apache/catalina/Context(0x0BB6A720)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/TomcatContext(0x0BB6B090)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/TomcatWebContainer(0x0BA0E7F0)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/TomcatContainer(0x0BA0E900)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/ObjectRetriever(0x0BA0F0E0)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/BaseGBean(0x0BA0F1B0)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/LifecycleListenerGBean(0x0BA0F330)
 3CLTEXTCLASS  
 org/apache/catalina/Lifecycle(0x0BA0F670)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/TomcatServerConfigManager(0x0BB2B340)
 3CLTEXTCLASS  org/apache/catalina/Server(0x0BB2B720)
 3CLTEXTCLASS  org/apache/catalina/Service(0x0BB2B8B0)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/TomcatServerGBean(0x0BB2ACE0)
 3CLTEXTCLASS  
 org/apache/geronimo/tomcat/TomcatManagerImpl(0x0BA94030)
 2CLTEXTCLLOAD Loader
 org/apache/geronimo/kernel/config/ChildrenConfigurationClassLoader(0xA87926B0)
 2CLTEXTCLLOAD Loader 
 sun/reflect/DelegatingClassLoader(0xA9924328)
 3CLTEXTCLASS  
 sun/reflect/GeneratedSerializationConstructorAccessor139(0x0C809E90)
 2CLTEXTCLLOAD Loader 
 sun/reflect/DelegatingClassLoader(0xA9929C30)
 3CLTEXTCLASS  
 sun/reflect/GeneratedSerializationConstructorAccessor140(0x0C80A240)
 2CLTEXTCLLOAD Loader 
 sun/reflect/DelegatingClassLoader(0xA9935C78)
 3CLTEXTCLASS  
 sun/reflect/GeneratedSerializationConstructorAccessor141(0x0C80B3A0)
 2CLTEXTCLLOAD Loader 
 sun/reflect/DelegatingClassLoader(0xA993B688)
 3CLTEXTCLASS  
 sun/reflect/GeneratedSerializationConstructorAccessor142(0x0C80B6F0)
 2CLTEXTCLLOAD Loader 
 sun/reflect/DelegatingClassLoader(0xA993FD30)
 3CLTEXTCLASS  
 sun/reflect/GeneratedSerializationConstructorAccessor143(0x0C80C440)
 2CLTEXTCLLOAD Loader 
 sun/reflect/DelegatingClassLoader(0xA99486D8)
 3CLTEXTCLASS  
 sun/reflect/GeneratedSerializationConstructorAccessor144(0x0C80C790)
 2CLTEXTCLLOAD Loader 
 sun/reflect/DelegatingClassLoader(0xA994DFC8)
 3CLTEXTCLASS  
 sun/reflect/GeneratedMethodAccessor69(0x0C80CAE0)
 2CLTEXTCLLOAD Loader 
 

low entropy on linux systems

2011-07-14 Thread Kevan Miller
From time to time I encounter a problem starting a Geronimo server on a Linux 
system (I've always seen it on Ubuntu -- but the problem could exist on other 
distributions). The server start seems to hang. However, if you're patient, 
which I rarely am, the server will eventually start. If you're inquisitive, and 
dump the stack traces of the java process, you'll see something like:

main prio=10 tid=0x40c0d800 nid=0xa79 runnable [0x7f57a04fb000]
   java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:220)
at 
sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:185)
at 
sun.security.provider.NativePRNG$RandomIO.implGenerateSeed(NativePRNG.java:202)
- locked 0xdaad63e0 (a java.lang.Object)
at 
sun.security.provider.NativePRNG$RandomIO.access$300(NativePRNG.java:108)
at 
sun.security.provider.NativePRNG.engineGenerateSeed(NativePRNG.java:102)
at java.security.SecureRandom.generateSeed(SecureRandom.java:495)
at 
com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.getSalt(PKCS12KeyStore.java:477)
at 
com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.calculateMac(PKCS12KeyStore.java:834)
at 
com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.engineStore(PKCS12KeyStore.java:788)
- locked 0xd3b5a768 (a 
com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore)
at java.security.KeyStore.store(KeyStore.java:1117)
...

This problem isn't Geronimo specific. But since I see it from time to time, 
thought it would be worth passing along to the community...

The Sun/Oracle-based JVM is attempting to generate a pseudo-random number to be 
used as a seed for an SSL server socket. To generate the pseudo-random number, 
the JVM is reading from the /dev/random device to obtain some random 
information for the seed. The problem is that reads from the /dev/random device 
will block if the system does not have a good source of random events. So, the 
Geronimo server startup is blocked waiting for enough random information to be 
returned from /dev/random. This article may be help understand the basic issue 
-- http://en.wikipedia.org/wiki//dev/random#Linux

 I'm no security expert. And I don't know the potential implications, but the 
simplest way that I've found to avoid the problem is to use the /dev/urandom 
device, instead of /dev/random. Do this by specifying the following java 
property '-Djava.security.egd=file:/dev/./urandom'. So, the following should 
work well:

$ GERONIMO_OPTS=-Djava.security.egd=file:/dev/./urandom ./geronimo run --long

Note to self -- would be nice to record this on our Wiki somewhere. Anyway, 
hope this is useful...

--kevan




Re: Geronimo server stop when undeploy or redeploy.

2011-07-12 Thread Kevan Miller

On Jul 12, 2011, at 4:12 AM, ranbaab wrote:

 Hi Kevan,
 
 There is no error message display, below is the command line for undeploy.
 
 
 D:\geronimo-tomcat6-minimal-2.2.1\bindeploy --user system --password
 manager undeploy xxx/bhm/application/war
 Using GERONIMO_HOME:   D:\geronimo-tomcat6-minimal-2.2.1
 Using GERONIMO_TMPDIR: var\temp
 Using JRE_HOME:D:\Software\IBM
 SDK\6.0\win32\ibm-java-sdk-60-win-i386\sdk\jre
 
 It got stuck here
 And another geronimo console which open, when given the command
 start-server does not print any log after giving the command.
 
 And in the geronimo.log and deploy.log does not display any log message. I
 mean all got stuck.
 
 But the UI display the message saying that the server is down.
 
 Steps follow:
 1. Start the database manually
 2. Start the geronimo through the command line
 3. Deploy the application through command line.
 4. Undeploy through command line.
 
 When I tried to delete the application folder from the repository before
 giving the undeploy command the folder cannot be delete. It display the
 message, the resources cannot be delete, it is being used by another
 program. I doubt whether the issue is when geronimo tried to delete the
 folder, same error might have occur.

OK. So, it sounds like the Geronimo server process is still running. It's just 
not responsive...

Can you generate java stacktraces for the server process? On a unix-like 
system, I'd use 'kill -3 process-id'. 

--kevan

Re: Geronimo server stop when undeploy or redeploy.

2011-07-10 Thread Kevan Miller

On Jul 7, 2011, at 1:27 AM, ranbaab wrote:

 Hi Kevan,
 
 One more observation, there is no issue if the DB service is not started and
 only Geronimo service started, undeploy works fine.

Can you run the Geronimo server in the foreground? I.e. Use 'geronimo.bat run' 
and don't run as a windows service? Or obtain the STDOUT (i'm not sure where 
STDOUT is going in your windows service). You need to find some information on 
why the server process is ending...

--kevan



shared lib classloader XStream Jettison issue

2011-07-07 Thread Kevan Miller
The following was posted to the Geronimo forum on Nabble, but, AFAICT, never 
made it to a mailing list or moderation. Reposting, now...

See 
http://apache-geronimo.328035.n3.nabble.com/shared-lib-classloader-XStream-Jettison-issue-tt3144897.html
 

 
 Hi, 
I am using Geronimo Little G 2.2.1 and  have a  deployment plan which 
 utilizes the shared lib and it seems to work for the most part. But when my 
 app (a web application) tries to use XStream for serializing JSON (xstream 
 uses Jettison Internally) I get ClassNotFoundException. Please note that all 
 the jars the application uses are from the shared library and it has a copy 
 of XStream and Jettison. 
 
 I can see that the XStream is getting loaded from 
 $GERONIMO_HOME/lib/xstream.jar and is loaded by the system classloader.  In 
 my application deployment plan I have given hidden-classes to exclude 
 XStream and Jettion but its not getting picked up from the shared lib.  The 
 only way I can get the app to work is if I put the Jettison.jar into the JVMs 
 ext directory, it does not work even if I put the jettion.jar into 
 $GERONIMO_HOME/lib where it is loading xstream.jar. 
 
 I am suspecting that since my application uses shared lib , shared lib's 
 classloader gets to load everything first and the policy there probably is to 
 load everything from its parent and is why my application plan's 
 hidden-classes is not working. I tried placing the jar in all spots where 
 one would expect the classes to be picked up (WEB-INF/libs, 
 repository/org/.../jettison.jar, $GERONIMO/lib/endorsed).   
 
 Is there a way I can specify the hidden-classes for the shared lib module? 
 Or am I doing something totally wrong?


Re: Geronimo server stop when undeploy or redeploy.

2011-07-06 Thread Kevan Miller

On Jul 6, 2011, at 4:40 AM, ranbaab wrote:

 Hi all,
 
 I have web application which is deploy on geronimo 2.2.1 little-G.
 
 After starting the application, deploy through command line as 
 
 deploy --user system --password manager deploy --inPlace ../../bhm
 
 Deploy successfully and the application works fine.
 
 When I try to redeploy or undeploy through command line, the geronimo server
 stop automatically by displaying the error message in the deploy.log as

Strange. The deploy exception would seem to be caused by the server having 
stopped.

Just to confirm -- after undeploy/redeploy, the server process has stopped?

snip

 *The web application used DBservice connected through RMI.*
 Note:-The geronimo is started as window service using main class DaemonCLI.
 Can anybody through some light on this issue?

Have a look at var/log/geronimo.log -- any indication (e.g. exceptions) why the 
server stopped?

Can you explain what you mean by DBService connected through RMI?

--kevan

Re: HTTPServlet.doOptions not called

2011-07-06 Thread Kevan Miller

On Jun 29, 2011, at 6:21 PM, jeromeernestgarcia wrote:

 We have a web page that uses the Dojo toolkit which issues a OPTIONS request
 prior to a GET. The javascript is sending these requests to a Java
 HTTPServlet instance managed by Geronimo. The OPTIONS request fails because
 the server responds with a 302 Moved Temporarily response. 
 
 I have overridden the doOptions method in my HTTPServlet subclass but that
 never gets called. Since that failed, I added an override of
 service(ServletRequest req, ServletResponse res) and set breakpoints all the
 way down to Http11ConnectionHandler trying to find out where the OPTIONS
 method is being blocked. It seems like it never get in.

Which distribution (Jetty/Tomcat) and version of Geronimo are you using?

What does your web.xml/geronimo-web.xml contain?

 
 I also tried to do some telnet experiments:
 
 telnet localhost 8080
 OPTIONS / HTTP/1.1
 host: localhost
 This gives a good response
 
 telnet localhost 8080
 OPTIONS /demandResponse HTTP/1.1
 Host: localhost:8080
 This returns HTTP/1.1 302 Moved Temporarily

What is the redirect address? 

 
 telnet localhost 8080
 GET /demandResponse HTTP/1.1
 Host: localhost:8080
 This returns HTTP/1.1 302 Moved Temporarily
 
 Copying the URL for the GET request into a browser and sending the request
 results in the correct call to the HTTPServlet.doGet method.
 
 Can anyone explain why this happens and what I need to do to get the
 HTTPServlet.doOptions method called?

Well, your browser is handling the redirect, automatically. Telnet, is not... 
;-)

--kevan


Fwd: Reminder: TAC Assistance to ApacheCon NA 2011 closes July 8th

2011-07-02 Thread Kevan Miller
Even though I recently posted the first notice, it's worth repeating. This is a 
great program. 

--kevan

Begin forwarded message:

 From: Gavin McDonald ga...@16degrees.com.au
 Date: July 2, 2011 8:16:14 PM EDT
 To: p...@apache.org
 Subject: Reminder: TAC Assistance to ApacheCon NA 2011 closes July 8th
 Reply-To: priv...@incubator.apache.org
 Reply-To: ga...@16degrees.com.au
 
 PMCs, please re-post this reminder to your user and dev lists and anywhere
 else you see fit.
 
 -
 
 
 Hi All,
 
 Just a friendly (and final)  reminder that applications for financial help
 to attend
 ApacheCon NA 2011 in Vancouver close this coming Friday 8th July (2200 BST :
 UTC+1)
 
 Financial assistance is available for Travel (planes, trains, whatever) ,
 Accomodation (at
 the conference venue hotel) and Conference entrance fees. Dependant on your
 circumstances will decide how much of that you would be given.
 
 Please visit http://apache.org/travel for more information and a link to the
 application
 form.
 
 Remember: We DO help people get to ApacheCon and other Apache events every
 year, 
 we DO want to help people get there who otherwise could not, that is why we
 exist.
 
 Spread the word, you are welcome to tweet, blog, email, post, phone or smoke
 signal
 to anyone who you think might benefit from attending ApacheCon this year.
 
 Kind Regards,
 
 The Travel Assistance Committee.
 
 
 -
 To unsubscribe, e-mail: private-unsubscr...@incubator.apache.org
 For additional commands, e-mail: private-h...@incubator.apache.org
 



Fwd: Travel Assistance applications now open for ApacheCon NA 2011

2011-06-30 Thread Kevan Miller
I'm behind on my community@ email, I guess... 

FYI.

Begin forwarded message:

 From: Gavin McDonald ga...@16degrees.com.au
 Date: June 6, 2011 4:01:40 AM EDT
 To: commun...@apache.org
 Subject: Travel Assistance applications now open for ApacheCon NA 2011
 Reply-To: commun...@apache.org
 Reply-To: ga...@16degrees.com.au
 
 The Apache Software Foundation (ASF)'s Travel Assistance Committee (TAC) is
 now accepting applications for ApacheCon North America 2011, 7-11 November
 in Vancouver BC, Canada.
 
 The TAC is seeking individuals from the Apache community at-large --users,
 developers, educators, students, Committers, and Members-- who would like to
 attend ApacheCon, but need some financial support in order to be able to get
 there. There are limited places available, and all applicants will be scored
 on their individual merit.
 
 Financial assistance is available to cover flights/trains, accommodation and
 entrance fees either in part or in full, depending on circumstances.
 However, the support available for those attending only the BarCamp (7-8
 November) is less than that for those attending the entire event (Conference
 + BarCamp 7-11 November). The Travel Assistance Committee aims to support
 all official ASF events, including cross-project activities; as such, it may
 be prudent for those in Asia and Europe to wait for an event geographically
 closer to them. 
 
 More information can be found at http://www.apache.org/travel/index.html
 including a link to the online application and detailed instructions for
 submitting.
 
 Applications will close on 8 July 2011 at 22:00 BST (UTC/GMT +1).
 
 We wish good luck to all those who will apply, and thank you in advance for
 tweeting, blogging, and otherwise spreading the word.
 
 Regards,
 The Travel Assistance Committee
 
 
 -
 To unsubscribe, e-mail: community-unsubscr...@apache.org
 For additional commands, e-mail: community-h...@apache.org
 



Re: Geronimo 2.2.1 with JSF 2

2011-06-29 Thread Kevan Miller

On Jun 29, 2011, at 4:39 PM, Chris Joysn wrote:

 Hello Kevan,
 
 this Geronimo server is a cool thing :)
 
 i think i fixed the issue with the maven, eclipse and run on server issue:
 i activated that the maven dependencies are exported as well at the projects 
 settings.
 
 but:
 i started with a fresh copy of Geronimo.
 i added a geronimo-web.xml to WEB-INF/ with the content u provided
 and when i deploy the project using the geronimo server adapter nothing 
 happens
 at geronimo. and there is no log message in the geronimo.log file. but the 
 server
 view in Eclipse shows the webapp running and [Synchronized]
 
 when i undeploy the webapp from the eclipses server view, add the 
 geronimo-web.xml,
 the webapp is deployed again, the logfile says: 
 
 2011-06-29 21:51:00,225 WARN  [TomcatModuleBuilder] Web application . does 
 not contain a WEB-INF/geronimo-web.xml deployment plan.  This may or may not 
 be a problem, depending on whether you have things like resource references 
 that need to be resolved.  You can also give the deployer a separate 
 deployment plan file on the command line.
 2011-06-29 21:51:00,250 INFO  [DeploymentContext] The Strict Manifest 
 Classpath processing mode is in effect.
 This option can be altered by specifying 
 -DXorg.apache.geronimo.deployment.LenientMFCP=true|false
 Specify =true for more lenient processing such as ignoring missing jars and 
 references that are not spec compliant.
 
 and after a while the geronimo console shows the webapp up and running with 
 the name of the context. 
 but i can not access it, tomcat shows a 404 for the context.
 
 again, not logfile entry besides the warning regarding the geronimo-web.xml...
 
 when i use the deployer from the geronimo web console and specify the war 
 (containing the geronimo-web.xml) and the geronimo-web.xml as plan, then the 
 webapp appears in the consoles Web App WARs view.
 when i start the web app the web app is shown as running, but the context is 
 not available, Tomcat shows again a 404.
 
 and, as usual, no log messages regarding the actions deployment, 
 undeployment, why the context is not accessible...
 
 i dont have an idea whats going on...

Hi Chris,
Do you have a simple project that you can share? At a minimum, it seems that 
there is a deployment failure. And we could be doing a (much) better job of 
communicating the problem. May also be a problem in your app layout. Anyway, if 
you create a JIRA, and attach a zip file of your project. Hopefully, somebody 
can take a look at it...

--kevan

Re: BUILD ERROR in Daytrader while building using mvn install

2011-06-22 Thread Kevan Miller

On Jun 22, 2011, at 6:30 AM, vishwanathb wrote:

 Hi All
today i have downloaded the latest version of daytrader and when i
 try to build i get the below error.I am not an expert in Maven or SVN can
 you pls provide me any suggestion

svn up and try again. Should be working now...

--kevan


Re: now as new thread: hidden-classes on ear lib directory

2011-06-22 Thread Kevan Miller

On Jun 22, 2011, at 10:10 PM, Ivan wrote:

 IIRC, the EAR classloader is not the only parent classloader for your web 
 application. I think that Geronimo adds the JPA related classloader as one of 
 the parent classloaders of your web application,  and unfortunately, the EAR 
 classloader is not the first on in the list.

Ah. Yes, you're right. Slowly, I swap it back in. So, Marco, I don't think 
there's a way to put everything in your EAR's lib directory.

--kevan

Re: Can my company use Geronimo?

2011-06-20 Thread Kevan Miller

On Jun 19, 2011, at 11:46 PM, Miya Guo wrote:

 Hello every bodies here :)
 
 I am a developer from Asia, now my company want to use Geronimo as
 server part in our new commercial project.
 
 I know the license of Geronimo is Apache License 2.0, which is
 friendly to commercial project.
 But I also notice that in the downloaded folder, there is a file named
 LICENSE, which lists a great amount of sub-licenses for those
 dependent packages used by Geronimo.
 So I am confused and I can't confrim whether our commercial project
 could use Geronimo freely or not.
 (My English is poor so I can not understand the legal terms in those 
 licenses.)
 
 Could anyone here tell me whether our commercial project could use
 Genorimo freely or not?.
 Thanks very much.

Hi
First, please note -- we will not be able to offer you legal advice. I am not a 
lawyer. So, if you are looking for a legal opinion, I urge you to seek 
qualified legal counsel.

Here's information about the legal affairs committee at the ASF -- 
http://www.apache.org/legal/ There is a mailing list (legal-discuss@a.o) for 
discussion of legal matters. You are welcome to ask your questions on this 
list. However, it's likely that you'll find the same answers, there...

Here is an FAQ for license related questions at the ASF -- 
http://www.apache.org/foundation/licence-FAQ.html

For more specific information about AL v2 and 3rd party licenses, see -- 
http://www.apache.org/legal/resolved.html

It is the Geronimo project's opinion that our software conforms to the Software 
License Criteria established by the ASF. As you note, we do include a number of 
3rd party binary dependencies. We feel that all of these dependencies fall 
under either the Category A classification 
(http://www.apache.org/legal/resolved.html#category-a) or Category B Weak 
Copyleft classificaiton (see 
http://www.apache.org/legal/resolved.html#category-b). 

Finally, please note the ASF's policy for trademarks -- 
http://www.apache.org/foundation/marks/

 
 Comment:
 Below is some usage scenarios of Geronimo in our commercial project:
 1. Only use binary format, it means we won't modify any source code of
 Genorimo (include dependent packages).
 2. It is used as application server in our commercial project.
 3. This commercial project will be sold as a solution to the customers.


In my non-qualified opinion, I see no problems with the above -- as long as you 
conform to the requirements of the Apache License. I think the following link 
is your best guide -- 
http://www.apache.org/foundation/licence-FAQ.html#WhatDoesItMEAN . Will repeat 
-- I urge you to seek out specific legal advice from qualified individuals.

All that said -- would be very happy to see you *using* and *redistributing* 
our software. Look forward to working with you in the future...

--kevan



Re: War deployemnt

2011-06-18 Thread Kevan Miller

On May 31, 2011, at 1:07 PM, Mansour Al Akeel wrote:

 I was able to create the ear file, and I think I am getting closer to
 deploy it to geronimo. I am facing this issue, and wondering if there's
 a way to resolve it without diging the WAR file, and correct the
 web.xml. I was able to find a similar issue on the mailing list here 
 
 http://mail-archives.apache.org/mod_mbox/geronimo-user/200803.mbox/%3c18dc284a-a7e8-4f8e-a99e-f6ca5098d...@yahoo.com%3E
 
 Hopping I don't need to fix all the war files.

Hi Mansour,
Geronimo 2.x validates web.xml deployment descriptors. IIRC, 
hippo-repository-application is the only war file where there is a 
non-conformant web.xml. 

FYI, Geronimo trunk is not currently validating deployment descriptors. So, 
your war should deploy ok on trunk.

--kevan

Re: Help with G3.0 building

2011-06-07 Thread Kevan Miller

On Jun 7, 2011, at 6:51 PM, Russell E Glaue wrote:

 
 
 On 06/07/2011 05:08 PM, Kevan Miller wrote:
 
 On Jun 7, 2011, at 5:48 PM, Russell E Glaue wrote:
 
 I had originally done the install 'mvn clean install' yesterday, and 
 received a
 build error. I then did it in the two stages and got the same results.
 That is why I ended up executing mvn compile and package separately so I 
 could
 see if the error was in the compiling stage or the packaging stage.
 
 I just updated the svn repo, issued 'mvn clean install' again, on trunk 
 revision
 1133142 and received the same error message.
 
 (Note, for finish time, the system time is way off, -06:10)
 -
 [org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState 
 for:
 org.apache.geronimo.configs/uddi-tomcat/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.configs/uddi-tomcat/3.0-SNAPSHOT/car
 State changed from stopping to stopped
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] could not package plugin
 
 Embedded error: Unable to generate the wsdl file using wsgen.
 com.sun.tools.ws.spi.WSToolsObjectFactory in classloader null
 [INFO] 
 
 [INFO] For more information, run Maven with the -e switch
 [INFO] 
 
 [INFO] Total time: 67 minutes 10 seconds
 [INFO] Finished at: Tue Jun 07 11:19:26 EDT 2011
 [INFO] Final Memory: 475M/742M
 [INFO] 
 
 [ger@linux7 asf-geronimo-server-trunk]# history | tail -2
 192  mvn clean install
 193  history | tail -2
 [ger@linux7 asf-geronimo-server-trunk]# svn info
 Path: .
 URL: https://svn.apache.org/repos/asf/geronimo/server/trunk
 Repository Root: https://svn.apache.org/repos/asf
 Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
 Revision: 1133142
 Node Kind: directory
 Schedule: normal
 Last Changed Author: gawor
 Last Changed Rev: 1133030
 Last Changed Date: 2011-06-07 10:43:37 -0400 (Tue, 07 Jun 2011)
 
 [ger@linux7 asf-geronimo-server-trunk]#
 -
 
 I am compiling with java version 1.6.0_25
 I am not using the nexus proxy server.
 I have downloaded and installed all maven dependencies which maven itself 
 was
 not able to connect to a repo to download.
 
 Thanks for all the info! One additional question: what version of maven are 
 you using?
 
 The latest automated build worked -- 
 http://ci.apache.org/builders/geronimo-server-trunk/builds/63 -- well, the 
 Testsuite tests had some failures that weren't recorded properly, but can 
 ignore that for now...
 
 Do you have an SDK or a JSE installed? wsgen would only come with an SDK. 
 So, if you only have a JSE, that would explain the failure.
 
 --kevan
 
 Yes, I am running the SE or Standard Edition of Java - the full JDK bundle
 of the J2SE6.
 https://cwiki.apache.org/GMOxDEV/building-apache-geronimo.html
 The documentation says You will need a JDK 5.0+ (J2SE 1.5.0+) or compatible 
 JDK
 to build Apache Geronimo. ...
 
 I actually considered that I should be using the Java EE SDK (this what you 
 mean
 right?) but the Geronimo Development documentation did not state that. The 
 docs
 say to use the JDK, and specifically the J2SE.
 So... I have been trying to get G3.0 to compile with only the JDK.


Right. So, I chose my acronyms unwisely. Let me try again. 

You should build with a JAVA SE JDK, not a JRE.  

You don't want/need the Java EE SDK. Sorry for the confusion.

 
 I am using the Java SE 6u26, JDK 1.6.0_25
 I am using the latest version of Maven 2, 2.2.1
 
 I tried one time with Maven 3, but G3.0 did not compile successfully. So I
 reverted to 2.2.1 which is documented to use, on the Wiki.
 https://cwiki.apache.org/GMOxDEV/building-apache-geronimo.html
 ...For 3.0, you need [maven] version 2.2.1 or later. ...
 
 I am actually building G3.0 Successfully. And all the test suites seem to be
 successful (no failures yet). Just this one very odd occurrence.

Can you post more of the build output near the failure? I don't have a clear 
picture of where in the build process you're getting this failure.

You might find it easier to create a Jira and attach the failure info to the 
Jira. Up to you...

I'm mostly building with maven 3. I asked about your maven version only to try 
and pin down the source of your failure...

snip

 I can update the wiki page Building Apache Geronimo with the resulting
 configuration I have for G3.0 if I can actually succeed in this.
 This will be a good test case for a novice approach to compiling G3.0 for 
 those
 who would be strictly following the documentation.

That would be great. We're happy to give people write access to our Wiki. We 
do, however, ask that an ICLA be submitted -- 
http://www.apache.org/licenses/#clas The insures any

Re: Travel Assistance applications now open for ApacheCon NA 2011

2011-06-06 Thread Kevan Miller
All,
If you're interested in attending ApacheCon and could use some travel 
assistance to help get you there, this is a great program.

--kevan
On Jun 6, 2011, at 4:03 AM, Gavin McDonald wrote:

 
 The Apache Software Foundation (ASF)'s Travel Assistance Committee (TAC) is
 now accepting applications for ApacheCon North America 2011, 7-11 November
 in Vancouver BC, Canada.
 
 The TAC is seeking individuals from the Apache community at-large --users,
 developers, educators, students, Committers, and Members-- who would like to
 attend ApacheCon, but need some financial support in order to be able to get
 there. There are limited places available, and all applicants will be scored
 on their individual merit.
 
 Financial assistance is available to cover flights/trains, accommodation and
 entrance fees either in part or in full, depending on circumstances.
 However, the support available for those attending only the BarCamp (7-8
 November) is less than that for those attending the entire event (Conference
 + BarCamp 7-11 November). The Travel Assistance Committee aims to support
 all official ASF events, including cross-project activities; as such, it may
 be prudent for those in Asia and Europe to wait for an event geographically
 closer to them. 
 
 More information can be found at http://www.apache.org/travel/index.html
 including a link to the online application and detailed instructions for
 submitting.
 
 Applications will close on 8 July 2011 at 22:00 BST (UTC/GMT +1).
 
 We wish good luck to all those who will apply, and thank you in advance for
 tweeting, blogging, and otherwise spreading the word.
 
 Regards,
 The Travel Assistance Committee



Re: ERROR [AbstractEncryption] Unable to decrypt

2011-06-05 Thread Kevan Miller

On Jun 5, 2011, at 12:33 PM, 4lorn wrote:

 Kevan (or any helpful soul),
 
 I'm encountering a similar error, and would love some assistance if you're
 up for another cup of coffee.

My emailbot's coffee filter just beeped... :)

 
 I'm running Ubuntu Linux 2.6.35.4-rscloud (Rackspace's Ubuntu kernel) on x64
 architecture with 4GB of memory and plenty of storage.
 
 Here are outputs of various commands verifying JAVA:
 
 $ echo $JAVA_HOME: /usr/bin/java
 $ echo $PATH: (includes) /usr/bin/java/bin
 $ which java: /user/bin/java
 $ java -version: java versions 1.6.0_21
 
 After reading this thread, I removed a previous Geronimo directory,
 downloaded v2.2.1 from a different mirror, verified the MD5 checksum, and
 unpacked the verified tarball.
 
 Running
 $sudo ./startup.sh from $GERONIMO_HOME/bin fails.
 
 The first sign of an error in geronimo.log is:
 ERROR [AbstractEncryption] Unable to encrypt
 java.security.NoSuchAlgorithmException: Cannot find any provider supporting
 AES.

This indicates a problem with your JAVA_HOME or JRE_HOME setting.

So, /usr/bin/java is a symbolic link to /usr/lib/jvm/java-6-sun-1.6.0.21/?

geronimo.sh (which is invoked by startup.sh) is going to configure 
-Djava.ext.dirs. In your case it should include something like 
'/usr/bin/java/jre/lib/ext'. If that directory doesn't contain 
sunjce_provider.jar (which contains the AES provider), then you're going to see 
that failure.

FYI, I setup a symbolic link and was able to start Geronimo:

$ ln -s /usr/lib/jvm/java-6-sun-1.6.0.22/ ~/java-symbolic-link
$ JAVA_HOME=/home/kevan/java-symbolic-link/ ./geronimo.sh run --long

Seems to work ok for me. ps aux | grep server.jar gives me the following:

/home/kevan/java-symbolic-link//jre/bin/java -Xmx256m -XX:MaxPermSize=128m 
-javaagent:/home/kevan/geronimo-tomcat6-javaee5-2.2.1/bin/jpa.jar 
-Dorg.apache.geronimo.home.dir=/home/kevan/geronimo-tomcat6-javaee5-2.2.1 
-Djava.endorsed.dirs=/home/kevan/geronimo-tomcat6-javaee5-2.2.1/lib/endorsed:/home/kevan/java-symbolic-link//jre/lib/endorsed
 
-Djava.ext.dirs=/home/kevan/geronimo-tomcat6-javaee5-2.2.1/lib/ext:/home/kevan/java-symbolic-link//jre/lib/ext
 -Djava.io.tmpdir=var/temp -jar 
/home/kevan/geronimo-tomcat6-javaee5-2.2.1/bin/server.jar --long

Have a look at your set up and let us know what your environment looks like.

--kevan

Re: ERROR [AbstractEncryption] Unable to decrypt

2011-06-05 Thread Kevan Miller

On Jun 5, 2011, at 3:29 PM, 4lorn wrote:

 Kevan,
 
 May you have all the delicious joe you can ever get into your mug.  I can't 
 believe how fast you responded (and on a Sunday (my time) no less)!
 
 I ran:
 $sudo JAVA_HOME=/usr/lib/jvm/java-6-sun ./geronimo.sh run --long
 
 Same result, encryption error.

Hmm. Did the error message change? I would have expected a ERROR 
[AbstractEncryption] Unable to decrypt message instead of a 
NoSuchAlgorithmException...


 
 I then downloaded a farm-fresh installation of Geronimo, validated, unpacked, 
 and ran exactly the same command against the new directory.  Success!
 
 I believe the original error confirms the issue previous posters in the 
 thread encountered.  Whether the path to JAVA_HOME was explicitly called out 
 or not, once a bad shell command to run Geronimo was executed, the 
 installation became corrupt, and no amount of pointing to the correct 
 JAVA_HOME path would fix it.
 
 As for my environment, /usr/bin/java is as you guessed, a symbolic link.  It 
 links to /etc/alternatives/java, which in turn, links to the actual 
 JAVA_HOME.  I doubt that link-nesting could cause a problem, but I've been 
 wrong before.

Me too.. Anyway -- great that it's working for you, now.

--kevan


Re: JMS Port and portOffset

2011-06-01 Thread Kevan Miller

On Jun 1, 2011, at 7:48 AM, Florian Schaetz wrote:

 Hello,
 
 by using the attached plan, I added a new JMS topic, works fine. But now, if 
 I set the portOffset in config-substitutions, I always get an exception when 
 starting the server, as it seems, that somewhere is still the old (61616) 
 port configured (see Exception.txt). Could anyone give me a hint what I will 
 have to modify when using a portOffset?

Hi Flo
Stop your server and edit var/config/config.xml:

At the bottom of this file, replace:

module name=console.jms/top/1.0/rar/

with:

module name=console.jms/top/1.0/rar
  gbean name=top
attribute name=ServerUrltcp://${ServerHostname}:${ActiveMQPort + 
PortOffset}/attribute
  /gbean
/module

and restart your server.

A geronimo plugin can automatically define the default config.xml contents of a 
module. Making this a reproducible process.

See 
repository/org/apache/geronimo/configs/activemq-ra/2.2.1/activemq-ra-2.2.1.car/META-INF/geronimo-plugin.xml
 for an example (adjust version numbers accordingly, if you're using an 
alternate version).

--kevan



Re: deploy:new-server-instance does not deploy a full new server instance

2011-06-01 Thread Kevan Miller

On Jun 1, 2011, at 12:12 PM, Russell E Glaue wrote:

 
 Regarding the G3.0 Wiki documentation:
 https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
 
 (And also G2.2 Docs:
 https://cwiki.apache.org/GMOxDOC22/running-multiple-geronimo-instances.html)
 
 Creating a new server instance can be completed with gogo commands as follows:
 -
 ...
 To create an instance named foo do the following. All your instance data will 
 be
 put in geronimo_home/foo. All the directories named below are relative to
 geronimo_home.
 Follow the procedures as below:
 
 Create a directory foo under geronimo_home.
 Copy var, repository and etc directories to foo.You can use the command
 deploy:new-server-instance to help you with this step.
 Edit foo/var/config/config-substitutions.properties and change the portOffset.
 Try using any integers such as 1, 2, 10, 20, 30.. for various instances.
 -
 
 I interpret that the deploy:new-server-instance command should do the 
 following:
 1. Create a directory foo under geronimo_home.
 2. Copy var to foo
 3. Copy repository to foo
 4. Copy etc to foo
 
 However, under both G2.2 and G3.0-SNAPSHOT this command only does steps 1 and 
 2.
 I have to perform steps 3 and 4 manually.
 
 Shouldn't the deploy:new-server-instance perform all 4 steps?
 
 
 This is not a show stopper, but the deploy:new-server-instance is a nice
 feature to have - if it does all 4 steps.

Under 2.2, the etc and repository were intentionally shared. 

Obviously, there are some issues with 3.0-SNAPSHOT -- and the 
new-server-instance command should be updated. I confess I didn't realize that 
etc and repository had to be unique per server instance, now... 

Could you create a Jira? Perhaps you'd be interested in working on this?

--kevan

Re: ERROR [AbstractEncryption] Unable to decrypt

2011-05-25 Thread Kevan Miller

On May 25, 2011, at 1:06 AM, michael.peterson wrote:

 So...yeah...you called the contents of the file correctly: 
 
 http\://localhost\:8080/plugin/maven-repo/=system\={Simple}null 
 
 I updated that to manager as you suggested...it does get a lot father 
 than before. 
 
 I'm pasting the entire log and stack traces below for your read pleasure. 

Thanks. 

OK. So, it's another badly encrypted value. Big question is how are these 
occurring...

Did you build your server from source? Or did you download a distribution? Can 
you download a clean distribution (e.g. 
http://www.apache.org/dist/geronimo/2.2.1/geronimo-tomcat6-javaee5-2.2.1-bin.tar.gz)
 and try and start that? Assuming it starts cleanly, can you stop, then restart?

--kevan

Re: ERROR [AbstractEncryption] Unable to decrypt

2011-05-25 Thread Kevan Miller

On May 25, 2011, at 12:25 PM, michael.peterson wrote:

 Dang...it looks like maybe where ever I downloaded it might have a slightly
 different package than the one you just pointed me at. When I downloaded
 from the link you gave me and started it...it worked perfectly. I think it
 overwrote the one I had originally downloaded...but let me see if I can find
 the link I downloaded from again.

Good. Though I'd be surprised/worried if there was a bad binary on one of our 
mirrors. Regardless, all users should validate their downloads using the 
PGP/SHA/MD5 signature and checksums located on our download site -- 
http://geronimo.apache.org/apache-geronimo-v221-release.html

Still possible that there is some environment/scenario where the password 
encryption/obfuscation is failing (and thus corrupting the install).

--kevan

Re: ERROR [AbstractEncryption] Unable to decrypt

2011-05-25 Thread Kevan Miller

On May 25, 2011, at 9:56 PM, michael.peterson wrote:

 Ok...I think I see what was happening. 
 
 When I first installed and tried to run geronimo.sh run I didn't 
 have JAVA_HOME set. it failed with a bunch of messages. Then I 
 realized that problem and set JAVA_HOME...but it looks like that time 
 the property files have already been rewritten and the install 
 corrupted. I didn't realize it was happening at the time of 
 course...but since the new install was working I tried to redo the 
 step to get to that broken state. The only way I could achieve that 
 was to remove the JAVA_HOME and try and run geronimo. 
 
 Does that make sense to you? 

Very nice. That could make a lot of sense. Definitely something to investigate. 

 
 Anyways...I think I'm past this problem and can start trying to get 
 the actual application running now. Please let me know if you have any 
 additional questions for me. 

Great. 

Michael,
Many thanks for helping to chase this down. It seems some prudent checks to 
avoid this situation are needed 

Thanks!

--kevan



Re: ERROR [AbstractEncryption] Unable to decrypt

2011-05-24 Thread Kevan Miller

On May 24, 2011, at 1:31 AM, michael.peterson wrote:

 I was wondering if there's been any progress on this.
 
 I'm trying to get 2.2.1 (geronimo-tomcat6-javaee5-2.2.1) running on MoacOS.
 
 Using GERONIMO_HOME:   /Applications/geronimo-tomcat6-javaee5-2.2.1
 Using GERONIMO_TMPDIR: var/temp
 Using JRE_HOME:   
 /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
 Booting Geronimo Kernel (in Java 1.6.0_24)...
 Starting Geronimo Application Server v2.2.1
 [*   ]  13%   1s Starting
 org.apache.ger...2011-05-23 22:17:57,749 ERROR [AbstractEncryption] Unable
 to decrypt
 java.io.EOFException
   at
 java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2280)
   at
 java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)
   at 
 java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
 
 Any thoughts?

Thanks for the nudge. I've posted a debug jar to 
http://people.apache.org/~kevan/geronimo-crypto-2.2.2-SNAPSHOT.jar

Diff of my changes are: 
http://people.apache.org/~kevan/AbstractEncryption-diff.txt

Download geronimo-crypto-2.2.2-SNAPSHOT.jar. artifact_aliases won't work for a 
lib jar. So, you'll need to:

cp $GERONIMO_HOME/lib/geronimo-crypto-2.2.1.jar 
$GERONIMO_HOME/lib/geronimo-crypto-2.2.1.bak
cp geronimo-crypto-2.2.2-SNAPSHOT.jar 
$GERONIMO_HOME/lib/geronimo-crypto-2.2.1.jar  

And start/restart geronimo. 

I expect to see output similar to:

2011-05-24 12:45:06,143 ERROR [AbstractEncryption] decrypt() source = 
rO0ABXNyABlqYXZheC5jcnlwdG8uU2VhbGVkT2JqZWN0PjY9psO3VHACAARbAA1lbmNvZGVkUGFyYW1zdAACW0JbABBlbmNyeXB0ZWRDb250ZW50cQB+AAFMAAlwYXJhbXNBbGd0ABJMamF2YS9sYW5nL1N0cmluZztMAAdzZWFsQWxncQB+AAJ4cHB1cgACW0Ks8xf4BghU4AIAAHhwEHnh03EmiNu4VTuWH+xZiRBwdAADQUVT
2011-05-24 12:45:06,145 ERROR [AbstractEncryption] decrypt() base64 decoded 
data = 
aced0005737200196a617661782e63727970746f2e5365616c65644f626a6563743e363da6c3b754700200045b000d656e636f646564506172616d737400025b425b0010656e63727970746564436f6e74656e7471007e00014c0009706172616d73416c677400124c6a6176612f6c616e672f537472696e673b4c00077365616c416c6771007e0002787070757200025b42acf317f8060854e0027870001079e1d3712688dbb8553b961fec59891070740003414553
2011-05-24 12:45:06,256 ERROR [AbstractEncryption] decrypt() spec algorithm = 
AES
2011-05-24 12:45:06,256 ERROR [AbstractEncryption] decrypt() cipher = 
javax.crypto.Cipher@40a16605
2011-05-24 12:45:06,347 ERROR [AbstractEncryption] decrypt() returning manager

I suspect the problem is with our Base64 decode. What is your default/native 
charset?

Would be good to create a Jira for this issue (or is there already one, and 
I've forgotten?).

--kevan



Re: ERROR [AbstractEncryption] Unable to decrypt

2011-05-24 Thread Kevan Miller

On May 24, 2011, at 2:37 PM, michael.peterson wrote:

 Ok...I just tried it now instead of waiting until tonight...notice the 
 source = null...I assume that's bad. 

Indeed.

OK. So, not what I was expecting, but progress. Would you be able to do a 
little debugging? If not, may have to create another debug jar (or get a 
stronger cup of coffee...).

The problem must be in 
framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/PluginRepositoryDownloader.java.
 

Full Geronim source is available on our download page: 
http://geronimo.apache.org/apache-geronimo-v221-release.html
Or more specific source would be in 
http://repo1.maven.org/maven2/org/apache/geronimo/framework/geronimo-plugin/2.2.1/geronimo-plugin-2.2.1-sources.jar
or if you prefer svn -- 
https://svn.apache.org/repos/asf/geronimo/server/tags/geronimo-2.2.1

See the for() loop beginning at line 108 of PluginRepositoryDownloader. 
Something's going wrong in there...

--kevan

Re: ERROR [AbstractEncryption] Unable to decrypt

2011-05-24 Thread Kevan Miller

On May 24, 2011, at 4:40 PM, michael.peterson wrote:

 I might be able to try tonight..although if you want to give me 
 another jar I'll mail you a cup of coffee for the effort. :) 

:D Coffee is a strong motivator...

http://people.apache.org/~kevan/debug/geronimo-plugin-2.2.2-SNAPSHOT.jar


cp 
repository/org/apache/geronimo/framework/geronimo-plugin/2.2.1/geronimo-plugin-2.2.1.jar
 
repository/org/apache/geronimo/framework/geronimo-plugin/2.2.1/geronimo-plugin-2.2.1.bak
cp geronimo-plugin-2.2.2-SNAPSHOT.jar 
repository/org/apache/geronimo/framework/geronimo-plugin/2.2.1/geronimo-plugin-2.2.1.jar

And start/restart geronimo...

I'm expecting something like:

2011-05-24 22:19:35,742 ERROR [PluginRepositoryDownloader] userRepositoryList: 
/Users/kevan/Servers/geronimo-tomcat6-javaee5-2.2.1/var/config/plugin-repositories.properties
2011-05-24 22:19:35,742 ERROR [PluginRepositoryDownloader] url: 
http://localhost:8080/plugin/maven-repo/
2011-05-24 22:19:35,742 ERROR [PluginRepositoryDownloader] entry: 
system={Simple}rO0ABXNyABlqYXZheC5jcnlwdG8uU2VhbGVkT2JqZWN0PjY9psO3VHACAARbAA1lbmNvZGVkUGFyYW1zdAACW0JbABBlbmNyeXB0ZWRDb250ZW50cQB+AAFMAAlwYXJhbXNBbGd0ABJMamF2YS9sYW5nL1N0cmluZztMAAdzZWFsQWxncQB+AAJ4cHB1cgACW0Ks8xf4BghU4AIAAHhwEHnh03EmiNu4VTuWH+xZiRBwdAADQUVT
2011-05-24 22:19:35,742 ERROR [PluginRepositoryDownloader] creds[0]: system
2011-05-24 22:19:35,742 ERROR [PluginRepositoryDownloader] creds[1]: 
{Simple}rO0ABXNyABlqYXZheC5jcnlwdG8uU2VhbGVkT2JqZWN0PjY9psO3VHACAARbAA1lbmNvZGVkUGFyYW1zdAACW0JbABBlbmNyeXB0ZWRDb250ZW50cQB+AAFMAAlwYXJhbXNBbGd0ABJMamF2YS9sYW5nL1N0cmluZztMAAdzZWFsQWxncQB+AAJ4cHB1cgACW0Ks8xf4BghU4AIAAHhwEHnh03EmiNu4VTuWH+xZiRBwdAADQUVT

--kevan



Re: ERROR [AbstractEncryption] Unable to decrypt

2011-05-24 Thread Kevan Miller

On May 25, 2011, at 12:18 AM, michael.peterson wrote:

 Cool...here's the results: 
 
 
 mipeter2-mac:bin mipeter2$ ./geronimo.sh run 
 Using GERONIMO_HOME:   /Applications/geronimo-tomcat6-javaee5-2.2.1 
 Using GERONIMO_TMPDIR: var/temp 
 Using JRE_HOME: 
 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 
 Booting Geronimo Kernel (in Java 1.6.0_24)... 
 Starting Geronimo Application Server v2.2.1 
 [*   ]  13%   3s Starting 
 org.apache.ger...2011-05-24 21:18:02,985 ERROR 
 [PluginRepositoryDownloader] userRepositoryList: 
 /Applications/geronimo-tomcat6-javaee5-2.2.1/var/config/plugin-repositories.properties
  
 2011-05-24 21:18:02,999 ERROR [PluginRepositoryDownloader] url: 
 http://localhost:8080/plugin/maven-repo/
 2011-05-24 21:18:02,999 ERROR [PluginRepositoryDownloader] entry: 
 system={Simple}null 

OK. Great. How does that value compare with the actual contents of 
/Applications/geronimo-tomcat6-javaee5-2.2.1/var/config/plugin-repositories.properties?

The contents of that file should look like:

#List of known plugin repositories. Fomat:  url=username=password
#Thu Apr 28 14:41:55 EDT 2011
http\://localhost\:8080/plugin/maven-repo/=system\={Simple}rO0ABXNyABlqYXZheC5jcnlwdG8uU2VhbGVkT2JqZWN0PjY9psO3VHACAARbAA1lbmNvZGVkUGFyYW1zdAACW0JbABBlbmNyeXB0ZWRDb250ZW50cQB+AAFMAAlwYXJhbXNBbGd0ABJMamF2YS9sYW5nL1N0cmluZztMAAdzZWFsQWxncQB+AAJ4cHB1cgACW0Ks8xf4BghU4AIAAHhwEHnh03EmiNu4VTuWH+xZiRBwdAADQUVT
~/.m2/repository/=

I'm assuming it looks something like:
http\://localhost\:8080/plugin/maven-repo/=system\={Simple}null

If you change to be:
http\://localhost\:8080/plugin/maven-repo/=system\=manager

And start geronimo, what happens? I assume it works with no exception. Well, 
actually there may be an exception. Because when we see the plain text 
password, we'll attempt to obfuscate/encode the password using a {Simple} 
encode and rewrite the file with the obfuscated password. I assume that this 
encode is failing and instead generating a null.

--kevan



Re: Error on calling undeploy command using java.lang.Process

2011-05-13 Thread Kevan Miller

On May 13, 2011, at 4:25 PM, mafranko wrote:

 Hi all,
 
 I'm having the following error when calling the undeploy command from a Java
 application:
 
 INFO: Module my_application unloaded.
 Module my_application uninstalled.
 
 Exception in thread main java.lang.IllegalArgumentException: Need at least
 10 spaces for printing, but indent=4 and endCol=-974
   at
 org.apache.geronimo.deployment.cli.DeployUtils.println(DeployUtils.java:113)
   at
 org.apache.geronimo.deployment.cli.CommandStart.execute(CommandStart.java:66)
   at
 org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:171)
   at
 org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
   at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
   at 
 org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
 
 
 The application is correctly removed but the process returns 1
 (p.exitValue()) and the error above in the process.getErrorStream().
 
 Any idea?

What version is this? DeployUtils.println() is attempting to format its output 
to match the width of your terminal. Looks like the terminal width is a funny 
value. Your line numbers don't match our recent releases. Current code looks 
like:

// some terminals will give a terminal width of zero (e.g. emacs 
shell). 
// in that case, default to a reasonable term width value.
if (endCol == 0) {
endCol = DEFAULT_WIDTH;
}

Your endCol setting is less than zero. Either figure out how to create a 
better output environment or update the println() implementation to avoid this 
problem...

--kevan



Re: ERROR [AbstractEncryption] Unable to decrypt

2011-05-09 Thread Kevan Miller

On May 9, 2011, at 4:30 PM, jeromeernestgarcia wrote:

 I am also seeing the Unable to decrypt failure when starting Geronimo. I
 would appreciate any possible help. Here is a snip from the geronimo.log
 file:

How are you starting geronimo? (e.g. bin/geronimo.sh run)

What is your JAVA_HOME / JRE_HOME environment setting?

Is the jar /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/jce.jar a valid jar file?

I'm running fine with java-6-sun-1.6.0.22 on ubuntu. 
JAVA_HOME=/usr/lib/jvm/java-6-sun/

I'm guessing that if you edit var/config/plugin-repositories.properties and 
remove the line starting with http\://localhost\:8080 ... this particular error 
will go away. However, seems like some basic configuration problem exists. 

Would like to get to the bottom of this issue. If somebody has an environment 
on which they can recreate this and is willing to spend a little time with it, 
would be nice...

--kevan

Re: ERROR [AbstractEncryption] Unable to decrypt

2011-05-09 Thread Kevan Miller

On May 9, 2011, at 7:00 PM, jeromeernestgarcia wrote:

 - I am using bin/geronimo.sh to start.
 
 - I edited var/config/plugin-repositories.properties
 Remove the http\://localhost\:8080 ...  but it still fails
 Replace the http\://localhost\:8080 ... with 
 http\://localhost\:8080/plugin/maven-repo/=system\=manager  but it still fails

Oh well. Seemed like a good idea at the time...

Would you be willing/able to do some debugging of AbstractEncryption? That'd be 
much appreciated. Source file is 
http://svn.apache.org/repos/asf/geronimo/server/tags/geronimo-2.2.1/framework/modules/geronimo-crypto/src/main/java/org/apache/geronimo/crypto/AbstractEncryption.java

Or, I could cook up a jar file with some debug/log statements. 

--kevan

Re: Error unmarshaling return when attempting to deploy ear file; then Geronimo server hangs

2011-05-02 Thread Kevan Miller

On May 2, 2011, at 1:50 PM, WinnieNicklaus wrote:

 I am attempting to deploy an application EAR. I have successfully deployed
 deployment plans to repository/console/dbpool and repository/console/jms,
 and am attempting to deploy the application EAR to
 repository/default/application name.  The command I am using is
 
 java -jar geronimo_home/bin/deployer.jar --user geronimo --password
 password deploy application_name.ear

Is there a reason that you are using 'java -jar' to run the deploy command, 
rather than the bin/deploy.sh (or .bat) shell script? It does set a few options 
(e.g. geronimo.home.dir and java.io.tmpdir). I don't think this is causing your 
error, but 'java -jar' would not be my recommended technique for running the 
deploy command...

 
 When I do this, I get the following error:
 
 10:59:42,353 ERROR [BaseDeploymentFactory] java.rmi.UnmarshalException:
 Error unmarshaling return; nested exception is: 
java.io.EOFException
 org.apache.geronimo.kernel.InternalKernelException:
 java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: 
java.io.EOFException

snip

 
 At this point, nothing more seems to happen, and the Geronimo server console
 is unresponsive.  When I restart it, the application shows up on the
 Application EARs page as installed, but stopped.  If I try to start it, the
 server crashes again.  The same behavior happens if I attempt to deploy the
 application through the Deploy New page on the console.
 
 Is this a problem with the EAR file itself?  It was created in France and I
 am in the US, so perhaps there is an encoding issue that confuses java when
 looking for EOF?

Well, the server should not be behaving this way. Clearly there's something in 
the ear file which is causing a deployment failure. But even with this problem, 
the server should be a bit more resilient and doing a better job indicating the 
cause of the problem to the deploy command and cleaning up the application on 
the server...

Are there any errors in the server or deployer log files in var/log? I would 
expect something to show up there... if you can post a test ear file that 
illustrates the problem, somebody could look at it for you. I'm guessing you 
can't make the app available, however...

--kevan

Re: EJB and Web tutorial 3.0 -- deplyment error

2011-04-21 Thread Kevan Miller

On Apr 21, 2011, at 6:00 PM, joquetaire wrote:

 
 Forrest Xia wrote:
 
 Please try the latest 3.0 trunk. 3.0-M1 might not support that new
 feature.
 
 Forrest
 
 
 'new feature' you say  i'm sorry but... isn't accessing EJB from
 Servlets/JSP 'the basic feature of Java EE ??

M1 was a while ago and definitely had it's share of bugs/missing features.

 
 the tutorial is simply copied from v2.2 and screenshots are actually from
 v2.1 - anyway, you say it may not work just because it hasn't been resolved
 in v3.0 yet... so the question is:
 + when v3.0-M2 will be available?
 or
 + where can download (COMPILED version of) latest trunk? - b'cos no way i
 will manage to compile it by myself...

Here's the latest 3.0-SNAPSHOT build:
https://repository.apache.org/content/groups/snapshots/org/apache/geronimo/assemblies/geronimo-tomcat7-javaee6-web/3.0-SNAPSHOT/geronimo-tomcat7-javaee6-web-3.0-20110421.083329-40-bin.tar.gz
 (you should be able to find the .zip, full java ee, or jetty-based 
alternatives relative to this url...)

--kevan



Re: Geronimo 3.0 release timing?

2011-04-06 Thread Kevan Miller

On Apr 1, 2011, at 2:35 PM, Si Chen wrote:

 Hi,
 
 I really like the new Geronimo 3.0 and your OSGi support.  We'd love to use 
 it for the next version of opentaps!
 
 Could anyone give me a rough idea of when 3.0 might be released?

I'd say we're looking at 2 months.

 
 Also, will 3.0M2 be released soon?

M2 was slowed down a bit by TCK issues. Some question in my mind about what to 
do with it... I'd be in favor of cutting a new M2 branch from current trunk. Or 
just keep working on 3.0...

--kevan

Re: Geronimo 2.2 with Tomcat 7?

2011-03-29 Thread Kevan Miller

On Mar 29, 2011, at 8:30 AM, Martin Storch wrote:

 Hi there,
 
 I would like to update my publishing system and have heard that Geronimo
 2.2 doesn't work with Tomcat 7.0, just with Tomcat 6.x. Is that true?

Correct. Geronimo 2.2 includes Tomcat 6.0.x.

 
 When I just install the Geronimo Framework, how can I connect that with (a
 separate) Tomcat-Installation?

You don't connect it to an existing Tomcat installation. Tomcat (or Jetty) is 
included when you install Geronimo. 

 Do I still need Tomcat when Geronimo is installed? Where is the difference
 between those programs.

No. Geronimo could replace Tomcat. Tomcat implements the Servlet/JSP 
specification. Geronimo can provide full Java EE 5 functionality (Servlet/JSP, 
JSF, JPA, EJB, JMS, etc). Geronimo is component-based and the functionality 
provided by a Geronimo server is flexible. We provide a full Java EE server and 
a minimal (web container plus a bit more) server assembly. You can also create 
a server assembly with just the features you require. For instance, I know 
somebody running Geronimo with OpenEJB and ActiveMQ, but without a web 
container.

 
 And finally, when will Geronimo 3.0 be done?

Fairly soon, we hope. I'm guessing 2-3 months.

--kevan

Re: Default Servlet mapping within ear deployer

2011-03-29 Thread Kevan Miller

On Mar 28, 2011, at 8:06 AM, Thomas Neidhart wrote:

 Dear all,
 
 I am having some troubles with the deployment of an ear that contains a
 war with a servlet mapping like that:
 
  servlet-mapping
servlet-namedefault/servlet-name
url-pattern/images/*/url-pattern
  /servlet-mapping
 
 The purpose is to let the default servlet serve everything in the images
 directory, as there is another servlet that serves the rest:
 
  servlet-mapping
servlet-nameapp/servlet-name
url-pattern/*/url-pattern
  /servlet-mapping
 
 While this works pretty well when deploying the war stand-alone, it
 fails when deploying it as part of an ear (excerpt):
 
 org.apache.geronimo.common.DeploymentException: Web app xxx contains a
 servlet mapping that refers to servlet 'default' but no such servlet was
 found! at
 org.apache.geronimo.jetty7.deployment.JettyModuleBuilder.buildServletMappings(JettyModuleBuilder.java:740)
 ...
 
 
 It looks like that in the case of an ear, the default servlet is
 unknown/unset. Am I missing some dependency to a gbean in the
 geronimo-web.xml or geronimo-application.xml? I already tried adding
 geronimo.configs.[jetty|jetty-deployer] without success.
 
 As I could not find anything related to that, my current workaround is
 to define the default servlet myself:
 
  servlet
servlet-namestatic/servlet-name
servlet-classorg.eclipse.jetty.servlet.DefaultServlet/servlet-class
  /servlet
 
 This only works when using jetty of course, and it would be nice to find
 a way to use the default servlet also within an ear.

I don't know our builder code well enough to have a simple answer for you... 

You must be using Geronimo 2.2.x, correct?

It would be interesting to know what happens on a Geronimo 2.2.x Tomcat server 
assembly. Also, have you tried with Geronimo 2.1.x?

--kevan

Re:

2011-03-21 Thread Kevan Miller
Please see http://geronimo.apache.org/mailing-lists.html for information on 
subscribing/unsubscribing from our mailing lists.

--kevan

On Mar 21, 2011, at 9:45 AM, Cristian Uta wrote:

 unsubscribe cristian



Re: Same problem on Lenny Re: java.security.NoSuchAlgorithmException on Windows

2011-03-20 Thread Kevan Miller

On Mar 18, 2011, at 7:25 PM, weberjn wrote:

 I ran into the same problem on Debian Lenny in a 32 bit vserver, no idea
 what's wrong. JBoss 6 runs fine from the same command prompt, so no problem
 with Java, I guess. Before I ran a Ubuntu 10.4 64 bit on the same VM,
 Geronimo ran fine. After reinstalling to Lenny 32 bit there was the problem.
 (I switched to 32 because of the much smaller memory footprint)
 
 weberjn@lenny:~/geronimo-tomcat6-javaee5-2.2.1/bin$ which java
 /usr/local/java/bin/java
 weberjn@vs534:~/geronimo-tomcat6-javaee5-2.2.1/bin$ file `which java`
 /usr/local/java/bin/java: ELF 32-bit LSB executable, Intel 80386, version 1
 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not
 stripped
 weberjn@lenny:~/geronimo-tomcat6-javaee5-2.2.1/bin$ echo $JAVA_HOME
 /usr/local/java
 weberjn@lenny:~/geronimo-tomcat6-javaee5-2.2.1/bin$ java -version
 java version 1.6.0_24
 Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
 Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
 weberjn@lenny:~/geronimo-tomcat6-javaee5-2.2.1/bin$ echo $JRE_HOME
 
 weberjn@lenny:~/geronimo-tomcat6-javaee5-2.2.1/bin$  ll /usr/local/java
 lrwxrwxrwx 1 root staff 11 2011-03-18 23:07 /usr/local/java - jdk1.6.0_24
 weberjn@lenny:~/geronimo-tomcat6-javaee5-2.2.1/bin$ ./geronimo.sh run
 Using GERONIMO_HOME:   /home/weberjn/geronimo-tomcat6-javaee5-2.2.1
 Using GERONIMO_TMPDIR: var/temp
 Using JRE_HOME:/usr/local/java
 /usr/local/java/bin/java
 Booting Geronimo Kernel (in Java 1.6.0_24)...
 Starting Geronimo Application Server v2.2.1
 [*   ]  13%   1s  Loading
 org.apache.ger...2011-03-19 00:03:07,297 ERROR [AbstractEncryption] Unable
 to decrypt
 java.security.NoSuchAlgorithmException: Cannot find any provider supporting
 AES
at javax.crypto.Cipher.getInstance(DashoA13*..)

What is in your '/usr/local/java//lib/ext' directory? geronimo.sh is going to 
construct that as part of the -Djava.ext.dirs= setting passed to java. I expect 
that the directory does not exist/or does not contain any jars on your Lenny 
system.

What happens if you configure JAVA_HOME=/usr/local/jdk1.6.0_24? Does 
/usr/local/jdk1.6.0_24/lib/ext exist and contain jar files (e.g. 
sunjce_provider.jar)?

I expect that sorting out your JAVA_HOME setting may well fix your problem. If 
not, then let us know... It looks like to me that we no longer need to be 
configuring -Djava.ext.dirs at all. So, we could do some cleanup of 
geronimo.sh/.bat... You're welcome to create a Jira (and submit a patch, if 
you're interested).

--kevan






Re: DeploymentException: POJO web service not configured by any web service builder

2011-03-16 Thread Kevan Miller

On Mar 16, 2011, at 10:00 AM, cshett wrote:

 Yes, I'm using minimal geronimo 2.2.1.  The WAR I'm trying to deploy contains
 the ImportData web service.  I don't see any other exceptions besides the
 one I already posted.
 
 I'm guessing I need to configure a web service builder or something, but I'm
 not really sure what that means or how to go about doing that.

A minimal server doesn't contain web services support. You'd need a full Java 
EE server for that. I'd start there. Or you can create a custom assembly...

--kevan

Re: ClassNotFoundException: org.apache.commons.io.output.DeferredFileOutputStream

2011-03-16 Thread Kevan Miller

On Mar 16, 2011, at 5:04 AM, Martin Hejl wrote:

 Hi Kevan,
 
 thank you for your feedback - as suggested, I've created
 https://issues.apache.org/jira/browse/GERONIMO-5868

Thanks.

 
 Adding
 dep:hidden-classes
  dep:filterorg.apache.commons.io/dep:filter
  dep:filterorg.apache.commons.fileupload/dep:filter
 /dep:hidden-classes
 does indeed solve the problem (apparently, inverse-classloading doesn't even 
 need to be set).

Oops. I didn't mean to include the inverse-classloading element.

 
 Is there a way to get around having to add commons-fileupload and commons-io 
 to  WebContent/WEB-INF/lib/ at all? I tried adding a dependency to the 
 deployment plan
 
 dep:dependencies
  dep:dependency
dep:groupIdcommons-fileupload/dep:groupId
dep:artifactIdcommons-fileupload/dep:artifactId
dep:version1.1.1/dep:version
dep:typejar/dep:type
  /dep:dependency
  dep:dependency
dep:groupIdcommons-io/dep:groupId
dep:artifactIdcommons-io/dep:artifactId
dep:version1.2/dep:version
dep:typejar/dep:type
  /dep:dependency
 /dep:dependencies
 
 to use the jars that are already on the server (without any jars in 
 WebContent/WEB-INF/lib/) but that resulted in the same 
 java.lang.ClassNotFoundException
 
 Should that approach work, or should the WAR or EAR always be self-contained 
 regarding its dependencies?

You have both hidden-classes and the commons dependencies in your deployment 
plan? I would expect this to work.

--kevan

Re: ClassNotFoundException: org.apache.commons.io.output.DeferredFileOutputStream

2011-03-15 Thread Kevan Miller

On Mar 15, 2011, at 1:15 PM, Martin Hejl wrote:

 Hi Kevan,
 
 Probably I'm doing something wrong - but I'm seeing the same effect. 
 
 Here's what I did:
   • create a simple Dynamic Web Project (jsp file containing the form 
 definition, and a servlet that the form-action points to
   • add commons-fileupload.jar and commons-io.jar to 
 WebContent/WEB-INF/lib/
   • Deploy

Hi Martin,
I expect the problem is being caused because fileupload/io classes are being 
loaded from a parent classloader. Try deploying your application with a 
deployment plan. Something like the following:

?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web-1.1; 
 xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.1; 
 xmlns:naming=http://geronimo.apache.org/xml/ns/naming-1.1;
  dep:environment
dep:moduleId
  dep:groupIdorg.mygroup/dep:groupId
  dep:artifactIdMyApp/dep:artifactId
  dep:version1.1/dep:version
  dep:typecar/dep:type
/dep:moduleId
!-- 
 Don't load commons-io or fileupload from parent classloaders
  --
dep:hidden-classes
  dep:filterorg.apache.commons.io/dep:filter
  dep:filterorg.apache.commons.fileupload/dep:filter
/dep:hidden-classes
dep:inverse-classloading/
  /dep:environment
  web:context-root/MyApp/web:context-root
/web-app

Save to a file (e.g. mydeploymentplan.xml) and deploy your application:

./deploy.sh deploy myapp.war mydeploymentplan.xml

If that doesn't fix your problem, create a Jira and attach a test WAR that will 
demonstrate the problem. 

--kevan

Re: Geronimo 3.0

2011-03-10 Thread Kevan Miller
Please don't post the same question to both dev@ and user@ mailing lists. 

Here's my response to your dev list posting...

On Mar 10, 2011, at 10:22 AM, Martin Storch wrote:

 Hi there,
 
 when will Geronimo 3.0 be done?

We're a few months away. We haven't set a release target, yet. 

 
 When I use Geronimo as an App-Server, do I still need (to install) Tomcat?
 How are all these Apache-Apps are working together? I'm confused!

Geronimo creates server assemblies which embed either Tomcat or Jetty. You 
don't need to install them separately. They are included in the server 
distribution.

 
 So I need Cocoon (as a web development framework) and Tomcat (as a Servlet
 Container) and still Geronimo? For what?

If you need Java EE capabilities, you'd want Geronimo. If you simply need 
JSP/Servlet support, then either Tomcat, Jetty, or Geronimo can be used.

 
 Is Geronimo 2.x with Java EE 5 and Tomcat 7.x with JavaBeans 3.0
 compatible?

Geronimo 2.1.x and 2.2.x both support Java EE 5 (and thus the  Enterprise 
JavaBeans 3.0 specification).

--kevan

Re: ClassNotFoundException: org.apache.commons.io.output.DeferredFileOutputStream

2011-02-28 Thread Kevan Miller

On Feb 28, 2011, at 4:55 AM, Ben Adam wrote:

 Hi
 
 I am getting the following runtime error in geronimo 2.2.1 while trying 
 upload a file using a servlet to activemq.  Any help appriciated.

Are you including commons-fileupload and commons-io in your application?

--kevan

Re: unsub

2011-02-21 Thread Kevan Miller
Information about our mailing lists is here -- 
http://geronimo.apache.org/mailing-lists.html

To unsubscribe, send an email to user-unsubscr...@geronimo.apache.org

--kevan

Re: Unable to classload servlet class using SharedLib GBean

2011-02-16 Thread Kevan Miller

On Feb 9, 2011, at 12:49 PM, Minny wrote:

 
 I have several jar files in var\shared\lib directory, and one of them does
 contain the SCESession class.  I tried the following geronimo-application
 xml file,  but received the same error.
 
 application
 xmlns:app=http://geronimo.apache.org/xml/ns/j2ee/application-2.0;
 xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.2;
 application-name=MYApp

Closing the loop on this... Discussed with Minny off list. Problem was the 
schema specification of the deployment plan. Essentially was not a valid 
deployment plan. The following should work just fine:

application xmlns=http://geronimo.apache.org/xml/ns/j2ee/application-2.0;
 xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.2;
 application-name=MYApp
...

--kevan

Re: Stateless/sessionless servlet consuming too much memory

2011-02-12 Thread Kevan Miller

On Feb 12, 2011, at 12:58 AM, dfr...@teamhuber.com wrote:

 One more question...
 
 What is 'ContextManager' and where/how can I get it?
 
 In my (WASCE v2.1.1.3 based) project I am unable to resolve this:
 
 import org.apache.geronimo.security.ContextManager;

You'll need to add the following to your project (adjust the version number 
accordingly):

{geronimo-home}/repository/org/apache/geronimo/framework/geronimo-security/2.1.7/geronimo-security-2.1.7.jar

--kevan

Re: Unable to classload servlet class using SharedLib GBean

2011-02-09 Thread Kevan Miller

On Feb 9, 2011, at 8:40 AM, Minny wrote:

 
 Down below is the stack trace. 
 
 Deployment FailedClassloader for WebApp_IDcan't find Could not fully load
 class: flow.AppRoot
 due to:com.avaya.sce.runtimecommon.SCESession
 in classLoader: 
 [org.apache.geronimo.kernel.classloader.JarFileClassLoader
 id=default/Application_ID_MYApp.war/1297258411134/car]
 org.apache.geronimo.common.DeploymentException: Classloader for
 WebApp_IDcan't find Could not fully load class: flow.AppRoot
 due to:com.avaya.sce.runtimecommon.SCESession
 in classLoader: 
 [org.apache.geronimo.kernel.classloader.JarFileClassLoader
 id=default/Application_ID_MYApp.war/1297258411134/car]
 
 The jar file is definitely in the right directory and readable.  Including
 the sharedlib dependency on geronimo-web.xml in the war works fine, but we
 are trying to stay with on geronimo deployment file in the ear.

And com.avaya.sce.runtimecommon.SCESession is in the sharedlib jar?

Did you try moving your dependency from your web-app module to the 
application?I would assume the following would work:

application
xmlns:app=http://geronimo.apache.org/xml/ns/j2ee/application-2.0;
xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.2;
application-name=MYApp
sys:environment
   sys:moduleId
 sys:groupIdtest/sys:groupId
 sys:artifactIdMYApp/sys:artifactId
 sys:version1.0/sys:version
 sys:typeear/sys:type
   /sys:moduleId
   sys:dependencies
 sys:dependency
   sys:groupIdorg.apache.geronimo.configs/sys:groupId
   sys:artifactIdsharedlib/sys:artifactId
   sys:typecar/sys:type
  /sys:dependency
   /sys:dependencies
   sys:inverse-classloading/
 /sys:environment

 module
   webMYApp.war/web
  web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web-1.1;
xmlns:nam=http://geronimo.apache.org/xml/ns/naming-1.1;
xmlns:sec=http://geronimo.apache.org/xml/ns/security-1.1;
xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.1;
   sys:environment
   sys:moduleId
   sys:groupIdtest/sys:groupId
   sys:artifactIdMYApp/sys:artifactId
   sys:version1.0/sys:version
   sys:typewar/sys:type
   /sys:moduleId
  sys:dependencies/
   sys:inverse-classloading/
   /sys:environment
   context-root/MYApp/context-root
/web-app
   /module
/application

--kevan

Re: Unable to classload servlet class using SharedLib GBean

2011-02-09 Thread Kevan Miller
OK. I'm out of ideas. What version of Geronimo? If you create a Jira and 
provide a test case, somebody can take a look...

--kevan
On Feb 9, 2011, at 12:49 PM, Minny wrote:

 
 I have several jar files in var\shared\lib directory, and one of them does
 contain the SCESession class.  I tried the following geronimo-application
 xml file,  but received the same error.
 
 application
 xmlns:app=http://geronimo.apache.org/xml/ns/j2ee/application-2.0;
 xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.2;
 application-name=MYApp
  sys:environment
sys:moduleId
  sys:groupIdtest/sys:groupId
  sys:artifactIdMYApp/sys:artifactId
  sys:version1.0/sys:version
  sys:typeear/sys:type
/sys:moduleId
sys:dependencies
  sys:dependency
sys:groupIdorg.apache.geronimo.configs/sys:groupId
sys:artifactIdsharedlib/sys:artifactId
  /sys:dependency
/sys:dependencies
sys:inverse-classloading /
  /sys:environment
  module
webMYApp.war/web
web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web-1.1;
xmlns:nam=http://geronimo.apache.org/xml/ns/naming-1.1;
xmlns:sec=http://geronimo.apache.org/xml/ns/security-1.1;
xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.1;
  sys:environment
sys:moduleId
  sys:groupIdaegon/sys:groupId
  sys:artifactIdMYApp/sys:artifactId
  sys:version1.0/sys:version
  sys:typewar/sys:type
/sys:moduleId
sys:dependencies /
sys:inverse-classloading /
  /sys:environment
  context-root/MYApp/context-root
/web-app
  /module
 /application
 
 
 Classloader for WebApp_IDcan't find Could not fully load class: flow.AppRoot
 due to:com.avaya.sce.runtimecommon.SCESession
 in classLoader: 
 [org.apache.geronimo.kernel.classloader.JarFileClassLoader
 id=default/Application_ID_MYApp.war/1297272961915/car]
 org.apache.geronimo.common.DeploymentException: Classloader for
 WebApp_IDcan't find Could not fully load class: flow.AppRoot
 due to:com.avaya.sce.runtimecommon.SCESession
 
 I do not have the geronimo-web.xml file in the war file.  I am trying to
 stay away from having to configure geronimo in two different place for ear
 and war.  If I just deploy the war with geronimo-web.xml, everything works
 fine. 
 *** Working geronimo-web.xml ***
 
 ?xml version=1.0 encoding=utf-8?
 web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web-1.1;
  environment xmlns=http://geronimo.apache.org/xml/ns/deployment-1.1;
 
moduleId
  groupIdtest/groupId
  artifactIdMYApp/artifactId
  version1.1/version
  typewar/type
/moduleId
dependencies
  dependency
   groupIdorg.apache.geronimo.configs/groupId
artifactIdsharedlib/artifactId
  /dependency
/dependencies
  /environment
  context-root/MYApp/context-root
 /web-app
 
 Thanks,
 Minny
 
 -- 
 View this message in context: 
 http://apache-geronimo.328035.n3.nabble.com/Unable-to-classload-servlet-class-using-SharedLib-GBean-tp1480361p2460166.html
 Sent from the Users mailing list archive at Nabble.com.



  1   2   3   4   5   6   7   >