geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From glloyd <gllo...@gmail.com>
Subject Re: Newbie running Geronimo/Jetty on mac
Date Wed, 10 Feb 2010 19:55:00 GMT

Ok I had to chown the geronimo directory because I copied it in there with
finder and it was owned by root. That fixed the deploy directory problem. I
am not sure what the other exception is yet though.

Thanks for the help Kevin.



glloyd wrote:
> 
> Thanks Kevin, 
> 
> Where would the optimal place be to setup the Java_home env variable for
> geronimo. I looked at the setjavaenv.sh script, but that sure doesn't look
> like it was meant to be tinkered with. Following your suggestion I
> exported the CurrentJDK as Java home and it seems to have gotten further
> but I now have several errors coming out to the console. The most serious
> seems to be that there is no deploy directory which seems quite strange to
> me.
> 
> Console:
> 
> ./geronimo.sh run --long
> Using GERONIMO_HOME:   /usr/share/geronimo-jetty7-javaee5-2.2
> Using GERONIMO_TMPDIR: var/temp
> Using JRE_HOME:       
> /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
> Booting Geronimo Kernel (in Java 1.6.0_17)...
> Module  1/74 org.apache.geronimo.framework/j2ee-system/2.2/car                      
               
> started in   .000s
> Module  2/74 org.apache.geronimo.framework/jee-specs/2.2/car                        
               
> started in   .000s
> Module  3/74 org.apache.geronimo.plugins.classloaders/xbean-finder/2.2/car          
               
> started in   .000s
> Module  4/74 org.apache.geronimo.framework/xmlbeans/2.2/car                         
               
> started in   .000s
> Module  5/74 org.apache.geronimo.framework/rmi-naming/2.2/car                       
               
> started in   .163s
> Module  6/74
> org.apache.geronimo.plugins.classloaders/geronimo-javaee-deployment_1.1MR3_spec/2.2/car
> started in   .000s
> Module  7/74 org.apache.geronimo.framework/plugin/2.2/car                           
              
> 2010-02-10 14:40:49,790 ERROR [AbstractEncryption] Unable to decrypt
> java.io.EOFException
> 	at
> java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281)
> 	at
> java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)
> 	at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:781)
> 	at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
> 	at
> org.apache.geronimo.crypto.AbstractEncryption.decrypt(AbstractEncryption.java:76)
> 	at
> org.apache.geronimo.crypto.EncryptionManager.decrypt(EncryptionManager.java:109)
> 	at
> org.apache.geronimo.system.plugin.PluginRepositoryDownloader.loadUserRepositories(PluginRepositoryDownloader.java:122)
> 	at
> org.apache.geronimo.system.plugin.PluginRepositoryDownloader.<init>(PluginRepositoryDownloader.java:80)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	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.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
> 	at
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:539)
> 	at
> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377)
> 	at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
> 	at
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
> 	at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
> 	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:130)
> 	at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:816)
> 	at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> 	at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> 	at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> 	at
> org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$e7a25b4b.startConfiguration(<generated>)
> 	at
> org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
> 	at
> org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
> 	at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
> 	at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> 	at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
>  started in   .882s
> Module  8/74 org.apache.geronimo.framework/geronimo-gbean-deployer/2.2/car          
               
> started in   .390s
> Module  9/74 org.apache.geronimo.configs/j2ee-server/2.2/car                        
               
> started in   .076s
> Module 10/74 org.apache.geronimo.framework/j2ee-security/2.2/car                    
               
> started in   .245s
> Module 11/74 org.apache.geronimo.framework/server-security-config/2.2/car           
               
> started in   .046s
> Module 12/74
> org.apache.geronimo.plugins.classloaders/geronimo-schema-jee_5/2.2/car              
  
> started in   .000s
> Module 13/74 org.apache.geronimo.configs/j2ee-deployer/2.2/car                      
               
> started in   .156s
> Module 14/74 org.apache.geronimo.configs/client-deployer/2.2/car                    
               
> started in   .042s
> Module 15/74 org.apache.geronimo.configs/aspectj/2.2/car                            
               
> started in   .013s
> Module 16/74 org.apache.geronimo.configs/clustering/2.2/car                         
               
> started in   .056s
> Module 17/74 org.apache.geronimo.configs/transaction/2.2/car                        
               
> started in   .177s
> Module 18/74 org.apache.geronimo.configs/connector-deployer/2.2/car                 
               
> started in   .101s
> Module 19/74 org.apache.geronimo.configs/derby/2.2/car                              
               
> started in   .000s
> Module 20/74 org.apache.geronimo.configs/system-database/2.2/car                    
               
> started in  1.118s
> Module 21/74 org.apache.geronimo.configs/openjpa/2.2/car                            
               
> started in   .007s
> Module 22/74 org.apache.geronimo.configs/webservices-common/2.2/car                 
               
> started in   .000s
> Module 23/74 org.apache.geronimo.configs/openejb/2.2/car                            
               
> started in   .810s
> Module 24/74 org.apache.geronimo.configs/openejb-deployer/2.2/car                   
               
> started in   .102s
> Module 25/74
> org.apache.geronimo.configs/openejb-clustering-builder-wadi/2.2/car                 
  
> started in   .616s
> Module 26/74 org.apache.geronimo.configs/jetty7/2.2/car                             
               
> started in   .459s
> Module 27/74 org.apache.geronimo.configs/jetty7-deployer/2.2/car                    
               
> started in   .124s
> Module 28/74
> org.apache.geronimo.configs/jetty7-clustering-builder-wadi/2.2/car                  
  
> started in   .109s
> Module 29/74 org.apache.geronimo.configs/openejb-corba-deployer/2.2/car             
               
> started in   .111s
> Module 30/74 org.apache.geronimo.configs/j2ee-corba-yoko/2.2/car                    
               
> started in   .826s
> Module 31/74 org.apache.geronimo.configs/mejb/2.2/car                               
               
> started in   .482s
> Module 32/74 org.apache.geronimo.framework/transformer-agent/2.2/car                
               
> started in   .000s
> Module 33/74 org.apache.geronimo.framework/gshell-framework/2.2/car                 
               
> started in   .000s
> Module 34/74 org.apache.geronimo.framework/gshell-geronimo/2.2/car                  
               
> started in   .000s
> Module 35/74 org.apache.geronimo.framework/gshell-remote/2.2/car                    
               
> started in   .000s
> Module 36/74
> org.apache.geronimo.configs/persistence-jpa10-deployer/2.2/car                      
  
> started in   .060s
> Module 37/74 org.apache.geronimo.configs/hot-deployer/2.2/car                       
              
> 2010-02-10 14:40:57,735 ERROR [GBeanInstanceState] Error while starting;
> GBean is now in the FAILED state:
> abstractName="org.apache.geronimo.configs/hot-deployer/2.2/car?ServiceModule=org.apache.geronimo.configs/hot-deployer/2.2/car,j2eeType=GBean,name=HotDeployer"
> java.lang.IllegalStateException: Hot deploy directory
> /usr/share/geronimo-jetty7-javaee5-2.2/deploy does not exist and cannot be
> created!
> 	at
> org.apache.geronimo.deployment.hot.DirectoryHotDeployer.doStart(DirectoryHotDeployer.java:153)
> 	at
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:953)
> 	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.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
> 	at
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:539)
> 	at
> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377)
> 	at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
> 	at
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
> 	at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
> 	at sun.reflect.GeneratedMethodAccessor22.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
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> 	at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> 	at
> org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$e7a25b4b.startConfiguration(<generated>)
> 	at
> org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
> 	at
> org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
> 	at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
> 	at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> 	at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
> Server Startup failed
> 
> org.apache.geronimo.kernel.config.LifecycleException: start of
> org.apache.geronimo.configs/hot-deployer/2.2/car failed
> 	at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
> 	at sun.reflect.GeneratedMethodAccessor22.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
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> 	at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> 	at
> org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$e7a25b4b.startConfiguration(<generated>)
> 	at
> org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
> 	at
> org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
> 	at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
> 	at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> 	at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
> Caused by: org.apache.geronimo.kernel.config.InvalidConfigException:
> Unknown start exception
> 	at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:522)
> 	at
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
> 	at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
> 	... 15 more
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
> Configuration org.apache.geronimo.configs/hot-deployer/2.2/car failed to
> start due to the following reasons:
>   The service
> ServiceModule=org.apache.geronimo.configs/hot-deployer/2.2/car,j2eeType=GBean,name=HotDeployer
> did not start because Hot deploy directory
> /usr/share/geronimo-jetty7-javaee5-2.2/deploy does not exist and cannot be
> created!
> 
> 	at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:485)
> 	... 17 more
> log4j:WARN No appenders could be found for logger
> (org.eclipse.jetty.util.log).
> log4j:WARN Please initialize the log4j system properly.
> 
> 
> kevan wrote:
>> 
>> 
>> On Feb 10, 2010, at 12:57 PM, glloyd wrote:
>> 
>>> 
>>> I can't seem to get Geronimo to launch at all the geronimo.out contains
>>> the
>>> following:
>>> 
>>> Booting Geronimo Kernel (in Java 1.6.0_17)...
>>> Module  1/74 org.apache.geronimo.framework/j2ee-system/2.2/car              
                       
>>> started in   .000s
>>> Module  2/74 org.apache.geronimo.framework/jee-specs/2.2/car                
                       
>>> started in   .000s
>>> Module  3/74
>>> org.apache.geronimo.plugins.classloaders/xbean-finder/2.2/car               
          
>>> started in   .000s
>>> Module  4/74 org.apache.geronimo.framework/xmlbeans/2.2/car                 
                       
>>> started in   .000s
>>> Module  5/74 org.apache.geronimo.framework/rmi-naming/2.2/car               
                       
>>> started in   .226s
>>> Module  6/74
>>> org.apache.geronimo.plugins.classloaders/geronimo-javaee-deployment_1.1MR3_spec/2.2/car
>>> started in   .000s
>>> Module  7/74 org.apache.geronimo.framework/plugin/2.2/car                   
                      
>>> 2010-02-10 12:24:45,381 ERROR [AbstractEncryption] Unable to decrypt
>>> java.security.NoSuchAlgorithmException: Cannot find any provider
>>> supporting
>>> AES
>>>        at javax.crypto.Cipher.getInstance(DashoA13*..)
>>>        at
>>> org.apache.geronimo.crypto.AbstractEncryption.decrypt(AbstractEncryption.java:74)
>> 
>> Almost certain that your issue is related to your JAVA_HOME or JRE_HOME
>> setting. It's a little tricky on Mac OS, given the Java install layout.
>> Here's my settings:
>> 
>> export
>> JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
>> 
>> If that doesn't work, let us know some more details -- exactly how you
>> are starting geronimo, etc. I'd recommend running geronimo in the
>> foreground, while your working through this issue (e.g. "./geronimo.sh
>> run --long")
>> 
>> $ ./geronimo.sh run --long
>> Using GERONIMO_HOME:   /Users/kevan/Servers/geronimo-tomcat6-javaee5-2.2
>> Using GERONIMO_TMPDIR: var/temp
>> Using JRE_HOME:       
>> /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
>> Booting Geronimo Kernel (in Java 1.6.0_17)...
>> ...
>> 
>> --kevan
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Newbie-running-Geronimo-Jetty-on-mac-tp27535372s134p27537058.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message