geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Shin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GERONIMO-6017) JAVA_HOME environment variable with blank spaces in Windows
Date Mon, 20 Jun 2011 22:04:47 GMT
JAVA_HOME environment variable with blank spaces in Windows
-----------------------------------------------------------

                 Key: GERONIMO-6017
                 URL: https://issues.apache.org/jira/browse/GERONIMO-6017
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: car-maven-plugin
    Affects Versions: 3.0
         Environment: *java version "1.6.0_25"*
{quote} Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode) {quote}



*Apache Maven 2.2.1* (r801777; 2009-08-06 12:16:01-0700)
{quote} 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" {quote}
            Reporter: Gary Shin
            Priority: Minor


JAVA_HOME with blank spaces in Windows is failing the build. 

Eg:- "Program Files" being detected as "Files"

_Quick workaround is to use "Progra~1". The Error log is given 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
{color:red}Process output: {}java.lang.NoClassDefFoundError: Files\Java\jdk1/6/0_25\jre\lib\endorsed{color}
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] ------------------------------------------------------------------------


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message