geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Russell E Glaue <rgl...@cait.org>
Subject Re: G3-trunk build failed
Date Mon, 20 Jun 2011 19:39:58 GMT
Well then the error looks related to your installed JDK.

Have you ensured your endorsed directory exists at the location the error
indicated? The error looks like it is trying to open a File URL, and is erroring.

JDK_HOME/lib/endorsed
JDK_HOME/jre/lib/endorsed

The build process is looking for your JAXB stuff in endorsed, so you can try
setting them specifically in your JAVA_OPTS
-Djava.endorsed.dirs=/path/to/endorsed (which contains JAXB in Java 1.6)

But if you have to do this to get it working, then your may have a user-modified
environment for Java. If this is true, try removing all java options from your
environment (like CLASSPATH, and all other properties) and only set JAVA_HOME in
your windows properties.

Also, if you are not sure if your JDK install has been tweaked, you may want to
install a fresh copy.

-RG


On 06/20/2011 02:08 PM, Gary Shin wrote:
> No i am running it from command line on windows. only JAVA_HOME is set
> for JDK installation
> 
> Thanks,
> SG
> 
> On Mon, Jun 20, 2011 at 12:01 PM, Russell E Glaue <rglaue@cait.org
> <mailto:rglaue@cait.org>> wrote:
> 
> 
>     Are you by chance building trunk within Eclipse?
>     Windows+Eclipse+Maven requires extra configuration. I am guessing it
>     should be
>     set for you - but in your case perhaps something is not setup right?
> 
>     Take a look at the Eclipse installation configuration.
>     Ensure that the "java.endorsed.dirs" variable is pointing correctly
>     at your
>     local JDK installation.
> 
>     It could also be, perhaps, one of these issues:
>     1. Eclipse is referencing an JRE and not the JDK
>     2. Adding the JDK in Installed JRE might resolve this.
>     http://stackoverflow.com/questions/1773060/programmatically-configure-eclipse-installed-jres
> 
>     -RG
> 
> 
>     On 06/20/2011 01:32 PM, Gary Shin wrote:
>     > Hi,
>     >     The system configurations are given below
>     >
>     > Trunk checked out at revision: 1137722
>     >
>     > java version "1.6.0_25"
>     > Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
>     > Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
>     >
>     >
>     > Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
>     > Java version: 1.6.0_25
>     > Java home: C:\Program Files\Java\jdk1.6.0_25\jre
>     > Default locale: en_US, platform encoding: Cp1252
>     > OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
>     >
>     > *Running maven with debug enabled i found this error which is causing
>     > the build fail. I understand that it is a windows' path issue as
>     > highlighted below (Program Files detected as Files). So where exactly
>     > can this be changed?*
>     > *
>     > *
>     > Error log below
>     >
>     > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] :
>     > GBeanInstanceState for:
>     > org.apache.geronimo.configs/uddi-tomcat/3.0-SNAPSHOT/c
>     >
>     ar?configurationName=org.apache.geronimo.configs/uddi-tomcat/3.0-SNAPSHOT/car
>     > State changed from stopped to starting
>     > [org.apache.geronimo.kernel.config.Configuration] : Started
>     > configuration org.apache.geronimo.configs/uddi-tomcat/3.0-SNAPSHOT/car
>     > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] :
>     > GBeanInstanceState for:
>     > org.apache.geronimo.configs/uddi-tomcat/3.0-SNAPSHOT/c
>     >
>     ar?configurationName=org.apache.geronimo.configs/uddi-tomcat/3.0-SNAPSHOT/car
>     > State changed from starting to running
>     > [org.apache.geronimo.kernel.config.SimpleConfigurationManager] :
>     Loaded
>     > Configuration org.apache.geronimo.configs/uddi-tomcat/3.0-SNAPS
>     >
>     HOT/car?configurationName=org.apache.geronimo.configs/uddi-tomcat/3.0-SNAPSHOT/car
>     > Process output: {}java.lang.NoClassDefFoundError:
>     > Files\Java\jdk1/6/0_25\jre\lib\endorsed
>     > Caused by: java.lang.ClassNotFoundException:
>     > Files\Java\jdk1.6.0_25\jre\lib\endorsed
>     >         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>     >         at java.security.AccessController.doPrivileged(Native Method)
>     >         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>     >         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>     >         at
>     sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>     >         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>     > Could not find the main class:
>     Files\Java\jdk1.6.0_25\jre\lib\endorsed.
>     >  Program will exit.
>     > Exception in thread "main"
>     > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] :
>     > GBeanInstanceState for:
>     > org.apache.geronimo.configs/uddi-tomcat/3.0-SNAPSHOT/c
>     >
>     ar?configurationName=org.apache.geronimo.configs/uddi-tomcat/3.0-SNAPSHOT/car
>     > State changed from running to stopping
>     > [org.apache.geronimo.kernel.config.Configuration] : Stopping
>     > configuration org.apache.geronimo.configs/uddi-tomcat/3.0-SNAPSHOT/car
>     > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] :
>     > GBeanInstanceState for:
>     > org.apache.geronimo.configs/uddi-tomcat/3.0-SNAPSHOT/c
>     >
>     ar?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: WSDL generation failed
>     > [INFO]
>     >
>     ------------------------------------------------------------------------
>     > [INFO] Trace
>     > org.apache.maven.lifecycle.LifecycleExecutionException: could not
>     > package plugin
>     >         at
>     >
>     org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>     >         at
>     >
>     org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>     >         at
>     >
>     org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>     >         at
>     >
>     org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>     >         at
>     >
>     org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>     >         at
>     >
>     org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>     >         at
>     org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>     >         at
>     org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>     >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>     >         at
>     >
>     org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>     >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     >         at
>     >
>     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     >         at
>     >
>     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     >         at java.lang.reflect.Method.invoke(Method.java:597)
>     >         at
>     > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>     >         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>     >         at
>     > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>     >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>     > Caused by: org.apache.maven.plugin.MojoExecutionException: could not
>     > package plugin
>     >         at
>     >
>     org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.java:238)
>     >         at
>     >
>     org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>     >         at
>     >
>     org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>     >         ... 17 more
>     > Caused by: org.apache.geronimo.common.DeploymentException: WSDL
>     > generation failed
>     >         at
>     >
>     org.apache.geronimo.jaxws.sun.tools.WsdlGenerator.generateWsdl(WsdlGenerator.java:176)
>     >         at
>     >
>     org.apache.geronimo.jaxws.sun.tools.SunWsdlGenerator.generateWsdl(SunWsdlGenerator.java:34)
>     >         at
>     >
>     org.apache.geronimo.axis2.builder.Axis2Builder.initialize(Axis2Builder.java:153)
>     >         at
>     >
>     org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.configurePOJO(JAXWSServiceBuilder.java:320)
>     >         at
>     >
>     org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:619)
>     >         at
>     >
>     org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:174)
>     >         at
>     >
>     org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:752)
>     >         at
>     org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:252)
>     >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     >         at
>     >
>     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     >         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:131)
>     >         at
>     >
>     org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:872)
>     >         at
>     >
>     org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
>     >         at
>     >
>     org.apache.geronimo.mavenplugins.car.PackageMojo.invokeDeployer(PackageMojo.java:524)
>     >         at
>     >
>     org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(PackageMojo.java:340)
>     >         at
>     >
>     org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.java:235)
>     >         ... 19 more
>     > [INFO]
>     >
>     ------------------------------------------------------------------------
>     > [INFO] Total time: 23 minutes 25 seconds
>     > [INFO] Finished at: Mon Jun 20 11:25:27 PDT 2011
>     > [INFO] Final Memory: 714M/881M
>     > [INFO]
>     >
>     ------------------------------------------------------------------------
>     >
>     >
>     > Thanks and Regards,
>     > SG
>     >
>     > On Sat, Jun 18, 2011 at 4:29 PM, Gary Shin <gs4u86@gmail.com
>     <mailto:gs4u86@gmail.com>
>     > <mailto:gs4u86@gmail.com <mailto:gs4u86@gmail.com>>> wrote:
>     >
>     >     Using Java SDK 1.6 and maven 2.2.1 also i set the MAVEN_OPTS as
>     >     mentioned. Right now, i dont have access to developer machine,
>     will
>     >     post the whole information with dump again
>     >
>     >
>     >     On Sat, Jun 18, 2011 at 1:01 PM, Russell E. Glaue
>     <rglaue@cait.org <mailto:rglaue@cait.org>
>     >     <mailto:rglaue@cait.org <mailto:rglaue@cait.org>>> wrote:
>     >
>     >         Can you provide some more information about your build
>     environment?
>     >
>     >         Java version (output from `java --version`)
>     >         Maven version (output from `mvn --version`)
>     >         Geronimo trunk revision/info you are attempting to build
>     (output
>     >         from `svn info`)
>     >
>     >         You are using the Java SDK 1.6?
>     >         You have your JAVA_HOME env var set to the Java SDK 1.6?
>     >
>     >         -RG
>     >
>     >
>     >         ----- Original Message -----
>     >         From: Gary Shin <gs4u86@gmail.com
>     <mailto:gs4u86@gmail.com> <mailto:gs4u86@gmail.com
>     <mailto:gs4u86@gmail.com>>>
>     >         To: dev@geronimo.apache.org
>     <mailto:dev@geronimo.apache.org> <mailto:dev@geronimo.apache.org
>     <mailto:dev@geronimo.apache.org>>
>     >         Sent: Fri, 17 Jun 2011 19:59:57 -0500 (CDT)
>     >         Subject: G3-trunk build failed
>     >
>     >         I get this error when using the trunk to build G3
>     >
>     >         [INFO] Started deployer:
>     >        
>     org.apache.geronimo.framework/geronimo-gbean-deployer/3.0-SNAPSHOT/car
>     >         [INFO]
>     >        
>     ------------------------------------------------------------------------
>     >         [ERROR] FATAL ERROR
>     >         [INFO]
>     >        
>     ------------------------------------------------------------------------
>     >         org.codehaus.classworlds.NoSuchRealmException: plexus.core
>     >                at
>     >        
>     org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:128)
>     >                at
>     >        
>     org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434)
>     >                at
>     org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>     >
>     >
>     >         Help is really appreciated
>     >
>     >         Thanks,
>     >         SG
>     >
>     >         On Fri, Jun 17, 2011 at 5:30 PM, David Jencks
>     >         <david_jencks@yahoo.com <mailto:david_jencks@yahoo.com>
>     <mailto:david_jencks@yahoo.com <mailto:david_jencks@yahoo.com>>>wrote:
>     >
>     >         > Please build trunk.  We should probably delete the M2 branch
>     >         since it isnt'
>     >         > being updated to match the evolution of other projects
>     such as
>     >         openwebbeans
>     >         > and openejb
>     >         >
>     >         > david jencks
>     >         >
>     >         > On Jun 17, 2011, at 4:39 PM, Gary Shin wrote:
>     >         >
>     >         > > Hi,
>     >         > >
>     >         > > The G3-M2 checked out from M2 branch is failing with the
>     >         following error.
>     >         > Any help is appreciated.
>     >         > >
>     >         > >
>     >         > >
>     >         > > Build log below
>     >         > >
>     >         > > ............
>     >         > > ............
>     >         > > [INFO] Building Geronimo Plugins, OpenWebBeans :: Core
>     >         > > [INFO]    task-segment: [clean, install]
>     >         > > [INFO]
>     >         >
>     >        
>     ------------------------------------------------------------------------
>     >         > > [INFO] [clean:clean {execution: default-clean}]
>     >         > > [INFO] Deleting file set:
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\target
>     >         > (included: [**], excluded: [])
>     >         > > [INFO] [genesis:validate-configuration {execution:
>     default}]
>     >         > > [INFO] [geronimo-property:set-property {execution:
>     >         set-property}]
>     >         > > [INFO] [enforcer:enforce {execution: default}]
>     >         > > [INFO] [remote-resources:process {execution: default}]
>     >         > > [INFO] [resources:resources {execution:
>     default-resources}]
>     >         > > [INFO] Using 'UTF-8' encoding to copy filtered resources.
>     >         > > [INFO] Copying 1 resource
>     >         > > [INFO] skip non existing resourceDirectory
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\src\main\filtered-resources
>     >         > > [INFO] Copying 3 resources
>     >         > > [INFO] [compiler:compile {execution: default-compile}]
>     >         > > [INFO] Compiling 9 source files to
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\target\classes
>     >         > > [INFO]
>     >         >
>     >        
>     ------------------------------------------------------------------------
>     >         > > [ERROR] BUILD FAILURE
>     >         > > [INFO]
>     >         >
>     >        
>     ------------------------------------------------------------------------
>     >         > > [INFO] Compilation failure
>     >         > >
>     >         > >
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\src\main\java\org\apache\geronimo\openwebbeans\GeronimoResourceInjectionService.java:[40,31]
>     >         > [deprecation] org.apache.webbeans.util.SecurityUtil in
>     >         > org.apache.webbeans.util has been deprecated
>     >         > >
>     >         > >
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\src\main\java\org\apache\geronimo\openwebbeans\GeronimoResourceInjectionService.java:[64,29]
>     >         > [deprecation] org.apache.webbeans.util.SecurityUtil in
>     >         > org.apache.webbeans.util has been deprecated
>     >         > >
>     >         > >
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\src\main\java\org\apache\geronimo\openwebbeans\GeronimoResourceInjectionService.java:[64,41]
>     >         > cannot find symbol
>     >         > > symbol  : method
>     >         doPrivilegedGetDeclaredFields(java.lang.Class<capture#16
>     >         > of ?>)
>     >         > > location: class org.apache.webbeans.util.SecurityUtil
>     >         > >
>     >         > >
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\src\main\java\org\apache\geronimo\openwebbeans\GeronimoResourceInjectionService.java:[80,32]
>     >         > [deprecation] org.apache.webbeans.util.SecurityUtil in
>     >         > org.apache.webbeans.util has been deprecated
>     >         > >
>     >         > >
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\src\main\java\org\apache\geronimo\openwebbeans\GeronimoResourceInjectionService.java:[80,44]
>     >         > cannot find symbol
>     >         > > symbol  : method
>     >         > doPrivilegedSetAccessible(java.lang.reflect.Field,boolean)
>     >         > > location: class org.apache.webbeans.util.SecurityUtil
>     >         > >
>     >         > >
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\src\main\java\org\apache\geronimo\openwebbeans\GeronimoResourceInjectionService.java:[91,32]
>     >         > [deprecation] org.apache.webbeans.util.SecurityUtil in
>     >         > org.apache.webbeans.util has been deprecated
>     >         > >
>     >         > >
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\src\main\java\org\apache\geronimo\openwebbeans\GeronimoResourceInjectionService.java:[91,44]
>     >         > cannot find symbol
>     >         > > symbol  : method
>     >         > doPrivilegedSetAccessible(java.lang.reflect.Field,boolean)
>     >         > > location: class org.apache.webbeans.util.SecurityUtil
>     >         > >
>     >         > >
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\src\main\java\org\apache\geronimo\openwebbeans\WebBeansConfigurationListener.java:[78,46]
>     >         > [deprecation] getInstance() in
>     >         org.apache.webbeans.config.WebBeansContext
>     >         > has been deprecated
>     >         > >
>     >         > >
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\src\main\java\org\apache\geronimo\openwebbeans\WebBeansConfigurationListener.java:[83,80]
>     >         > cannot find symbol
>     >         > > symbol  : variable PROPERTY_OWB_APPLICATION
>     >         > > location: class
>     >         org.apache.webbeans.config.OpenWebBeansConfiguration
>     >         > >
>     >         > >
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\src\main\java\org\apache\geronimo\openwebbeans\WebBeansConfigurationListener.java:[100,72]
>     >         > cannot find symbol
>     >         > > symbol  : variable PROPERTY_OWB_APPLICATION
>     >         > > location: class
>     >         org.apache.webbeans.config.OpenWebBeansConfiguration
>     >         > >
>     >         > >
>     >         >
>     >        
>     D:\Development\G3-M2\plugins\openwebbeans\geronimo-openwebbeans\src\main\java\org\apache\geronimo\openwebbeans\OpenWebBeansWebInitializer.java:[57,69]
>     >         > cannot find symbol
>     >         > > symbol  : variable PROPERTY_OWB_APPLICATION
>     >         > > location: class
>     >         org.apache.webbeans.config.OpenWebBeansConfiguration
>     >         > >
>     >         > >
>     >         > > [INFO]
>     >         >
>     >        
>     ------------------------------------------------------------------------
>     >         > > [INFO] For more information, run Maven with the -e switch
>     >         > > [INFO]
>     >         >
>     >        
>     ------------------------------------------------------------------------
>     >         > > [INFO] Total time: 5 minutes 6 seconds
>     >         > > [INFO] Finished at: Fri Jun 17 16:34:18 PDT 2011
>     >         > > [INFO] Final Memory: 335M/873M
>     >         > > [INFO]
>     >         >
>     >        
>     ------------------------------------------------------------------------
>     >         > >
>     >         > >
>     >         > >
>     >         > >
>     >         > >
>     >         > >
>     >         > > Thanks,
>     >         > > SG
>     >         >
>     >         >
>     >
>     >
>     >
> 
> 

Mime
View raw message