You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Billy Vandory <bi...@yahoo.com> on 2010/03/26 08:03:21 UTC

Geronimo plugin issue (or maven)?

Geronimo plugin 2.2 for Eclipse 3.4 on Geronimo 2.2 runtime

I have a very simple project in Eclipse: 3 projects: Ear, Web and Java

When I use the Geronimo plugin to publish my app, the dependencies that I
have configured in my POM are not being included in the WAR file correctly. 
Oddly, when I build the war file using maven outside of eclipse, the
dependencies are included correctly in the WAR file.  I have three
dependencies configured for the web app as follows:

<dependency>
  <groupId>com.waka</groupId>
  <artifactId>logging</artifactId>
  <version>1.0</version>			
</dependency>	
<dependency>
  <groupId>org.apache</groupId>
  <artifactId>log4j</artifactId>
  <version>1.2.15</version>
</dependency>
<dependency>
  <groupId>org.apache.geronimo.specs</groupId>
  <artifactId>geronimo-servlet_2.5_spec</artifactId>
  <version>1.2</version>
  <scope>provided</scope>
</dependency>


Using the geronimo plugin, org.apache.log4j is being included (correct), the
com.waka.logging dependency is not being included (problem) and the
geronimo_servlet_specs is being included (it shouldnt be, since the scope is
provided)  

I have tried using the "Add a runtime dependency to Geronimo's shared
library" option, with the same result.

Just as a side note, In geronimo-web.xml, im hiding the apache log4j classes
as I want to use my own logging facility.

Has anyone else experienced this problem? 

Thanks,

Billy
-- 
View this message in context: http://n3.nabble.com/Geronimo-plugin-issue-or-maven-tp634363p634363.html
Sent from the Users mailing list archive at Nabble.com.

Re: Geronimo plugin issue (or maven)?

Posted by Jack Cai <gr...@gmail.com>.
Don't worry. This is starndard Manifest format - prefixing a wrapped line
with a space. You can check the manifest in lib/server.jar. It's the same
thing.

-Jack

On Sat, Mar 27, 2010 at 10:35 AM, Billy Vandory <bi...@yahoo.com>wrote:

>
> I got the above working by setting Maven as a dependency in eclipse.  Now I
> have another issue with GEP.  I want to enable "in place library support",
> but I noticed that the MANIFEST.MF  that GEP produces and places in the
> geronimo/var/shared/lib directory as a JAR file cuts off the paths with
> spaces (in fact it appears to be truncating the lines).  Here is a sample
> of
> the MANIFEST produced by the GEP plugin:
>
>
> Manifest-Version: 1.0
> Class-Path: file:/C:/codebase.wakawaka/wakaear/target/ file:/C:/repo/o
>  rg/apache/log4j/1.2.15/log4j-1.2.15.jar file:/C:/repo/junit/junit/4.8
>  .1/junit-4.8.1.jar file:/C:/repo/org/apache/log4j/1.2.15/log4j-1.2.15
>  -sources.jar file:/C:/repo/com/waka/logging/1.0/logging-1.0.jar file:
>  /C:/repo/org/apache/geronimo/specs/geronimo-servlet_2.5_spec/1.2/gero
>  nimo-servlet_2.5_spec-1.2.jar
>
> See how it puts a space between C:/repo/o rg/apache AND junit/4.8 .1
>
> Could someone confirm that Geronimo reads the jar file placed in the
> Geronimo/var/shared/lib directory to locate the libraries, and if the
> spaces
> would indeed cause problems.  I'm trying to find where in the plugin code
> the manifest is produced and fix that.
>
> Thanks,
> Billy
>
> --
> View this message in context:
> http://n3.nabble.com/Geronimo-plugin-issue-or-maven-tp634363p677851.html
> Sent from the Users mailing list archive at Nabble.com.
>

Re: Geronimo plugin issue (or maven)?

Posted by Billy Vandory <bi...@yahoo.com>.
I got the above working by setting Maven as a dependency in eclipse.  Now I
have another issue with GEP.  I want to enable "in place library support",
but I noticed that the MANIFEST.MF  that GEP produces and places in the
geronimo/var/shared/lib directory as a JAR file cuts off the paths with
spaces (in fact it appears to be truncating the lines).  Here is a sample of
the MANIFEST produced by the GEP plugin:


Manifest-Version: 1.0
Class-Path: file:/C:/codebase.wakawaka/wakaear/target/ file:/C:/repo/o
 rg/apache/log4j/1.2.15/log4j-1.2.15.jar file:/C:/repo/junit/junit/4.8
 .1/junit-4.8.1.jar file:/C:/repo/org/apache/log4j/1.2.15/log4j-1.2.15
 -sources.jar file:/C:/repo/com/waka/logging/1.0/logging-1.0.jar file:
 /C:/repo/org/apache/geronimo/specs/geronimo-servlet_2.5_spec/1.2/gero
 nimo-servlet_2.5_spec-1.2.jar

See how it puts a space between C:/repo/o rg/apache AND junit/4.8 .1

Could someone confirm that Geronimo reads the jar file placed in the
Geronimo/var/shared/lib directory to locate the libraries, and if the spaces
would indeed cause problems.  I'm trying to find where in the plugin code
the manifest is produced and fix that.

Thanks,
Billy

-- 
View this message in context: http://n3.nabble.com/Geronimo-plugin-issue-or-maven-tp634363p677851.html
Sent from the Users mailing list archive at Nabble.com.