geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevan Miller <kevan.mil...@gmail.com>
Subject Re: Startup Error Using Eclipse
Date Fri, 02 Oct 2009 22:10:34 GMT

On Sep 29, 2009, at 5:02 PM, Wiles, Wade wrote:

> I’ve seen some previous posts about similar issues so I thought this  
> would be a good place to start. ( I have also posted on The  
> MyEclipse forum)
>
> I’m running MyEclipseIDE 7.5 on MacBookPro JDK 1.5. I can start  
> Geronimo( geronimo-tomcat6-javaee5-2.1.4) manually using the command  
> line but when I use Eclipse ( without a project ) I get an error as  
> listed below:
>
> Here is the program args from the launch config screen:
> /Applications/geronimo-tomcat6-javaee5-2.1.4/bin/server.jar —long
>
> -Djava.library.path=/System/Library/Frameworks/JavaVM.framework/ 
> Versions/1.5.0/Home/bin -Dorg.apache.geronimo.base.dir=/Applications/ 
> geronimo-tomcat6-javaee5-2.1.4 -Djava.io.tmpdir=/Applications/ 
> geronimo-tomcat6-javaee5-2.1.4/var/temp -Djava.ext.dirs=/System/ 
> Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/jre/lib/ 
> ext:"/Applications/geronimo-tomcat6-javaee5-2.1.4/lib/ext" - 
> Djava.endorsed.dirs=/System/Library/Frameworks/JavaVM.framework/ 
> Versions/1.5.0/Home/jre/lib/endorsed:"/Applications/geronimo-tomcat6- 
> javaee5-2.1.4/lib/endorsed"

Hi Wade,
Your problem is in your -Djava.ext.dirs setting. Replace:

/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/jre/ 
lib/ext

with:

/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext

Similar problem with endorsed.dirs, but endorsed.dirs will be empty,  
anyway... Note that the above is not setting -javaagent. So, OpenJPA  
will not be operating in its normal mode. Start a server using  
'geronimo.sh run', will start the server as follows:

/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java  
-javaagent:/Users/kevan/Servers/geronimo-tomcat6-javaee5-2.1.4/bin/ 
jpa.jar -Dorg.apache.geronimo.home.dir=/Users/kevan/Servers/geronimo- 
tomcat6-javaee5-2.1.4 -Djava.endorsed.dirs=/Users/kevan/Servers/ 
geronimo-tomcat6-javaee5-2.1.4/lib/endorsed:/System/Library/Frameworks/ 
JavaVM.framework/Versions/1.5/Home/lib/endorsed -Djava.ext.dirs=/Users/ 
kevan/Servers/geronimo-tomcat6-javaee5-2.1.4/lib/ext:/System/Library/ 
Frameworks/JavaVM.framework/Versions/1.5/Home/lib/ext - 
Djava.io.tmpdir=var/temp -jar /Users/kevan/Servers/geronimo-tomcat6- 
javaee5-2.1.4/bin/server.jar

--kevan
Mime
View raw message