`
fanrey
  • 浏览: 254959 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

archiva server is service_unavailable

 
阅读更多
登陆archiva server, 发现报503 Service_Unavailable的错,所有页面都无法访问了。用sudo archiva restart重起archiva,错误依旧。
然后发现硬盘满了(archiva装在/home目录下)
# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              59G   56G     0 100% /
udev                  3.9G  104K  3.9G   1% /dev
/dev/sda3              32G   31G     0 100% /home
/dev/sda2              50G   45G  2.1G  96% /tmp

清理硬盘后
df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              59G   56G   79M 100% /
udev                  3.9G  104K  3.9G   1% /dev
/dev/sda3              32G   19G   12G  61% /home
/dev/sda2              50G   45G  2.1G  96% /tmp

用sudo archiva console启动,console中报错如下:
Running Apache Archiva...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | 2012-09-25 17:23:45.618::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
jvm 1    | 2012-09-25 17:23:45.904::WARN:  Deprecated configuration used for ./apps
jvm 1    | 2012-09-25 17:23:45.954::INFO:  jetty-6.1.19
jvm 1    | 2012-09-25 17:23:46.268::INFO:  No Transaction manager found - if your webapp requires one, please configure one.
jvm 1    | 2012-09-25 17:23:46.743:/archiva:INFO:  Initializing Spring root WebApplicationContext
jvm 1    | 2012-09-25 17:23:50.279::WARN:  Failed startup of context org.mortbay.jetty.webapp.WebAppContext@13785d3{/archiva,file:/home/efanrui/bin/apache-archiva-1.3.1/apps/archiva/}
jvm 1    | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xmlRpcUserRepositories' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'userRepositories' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepositories': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'roleManager' defined in URL [jar:file:/home/efanrui/bin/apache-archiva-1.3.1/apps/archiva/WEB-INF/lib/redback-rbac-role-manager-1.2.3.jar!/org/codehaus/plexus/redback/role/DefaultRoleManager.class]: Initialization of bean failed; nested exception is javax.jdo.JDODataStoreException: Failed initialising database. Please check that your database JDBC driver is accessible, and the database URL and username/password are correct. Exception : Failed to start database './data/databases/users', see the next exception for details.
jvm 1    | SQL Exception: Failed to start database './data/databases/users', see the next exception for details.
jvm 1    | at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
jvm 1    | at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
jvm 1    | at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
jvm 1    | at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source)
jvm 1    | at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
jvm 1    | at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
jvm 1    | at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
jvm 1    | at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
jvm 1    | at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
jvm 1    | at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
jvm 1    | at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
jvm 1    | at org.jpox.util.FailoverUtils.getConnection(FailoverUtils.java:51)
jvm 1    | at org.jpox.store.rdbms.RDBMSManager.<init>(RDBMSManager.java:244)
jvm 1    | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
jvm 1    | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
jvm 1    | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
jvm 1    | at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
jvm 1    | at org.jpox.util.ClassUtils.newInstance(ClassUtils.java:73)
jvm 1    | at org.jpox.store.StoreManagerFactory.getStoreManager(StoreManagerFactory.java:73)
jvm 1    | at org.jpox.AbstractPersistenceManager.getStoreManager(AbstractPersistenceManager.java:295)
jvm 1    | at org.jpox.AbstractPersistenceManager.<init>(AbstractPersistenceManager.java:217)
jvm 1    | at org.jpox.PersistenceManagerImpl.<init>(PersistenceManagerImpl.java:42)
jvm 1    | at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:178)
jvm 1    | at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:153)
jvm 1    | at org.codehaus.plexus.redback.rbac.jdo.JdoTool.getPersistenceManager(JdoTool.java:115)
jvm 1    | at org.codehaus.plexus.redback.rbac.jdo.JdoTool.getObjectById(JdoTool.java:300)
jvm 1    | at org.codehaus.plexus.redback.rbac.jdo.JdoTool.objectExistsById(JdoTool.java:348)
jvm 1    | at org.codehaus.plexus.redback.rbac.jdo.JdoRbacManager.resourceExists(JdoRbacManager.java:463)
jvm 1    | at org.codehaus.plexus.redback.rbac.cached.CachedRbacManager.resourceExists(CachedRbacManager.java:612)
jvm 1    | at org.codehaus.plexus.redback.role.processor.DefaultRoleModelProcessor.processResources(DefaultRoleModelProcessor.java:77)
jvm 1    | at org.codehaus.plexus.redback.role.processor.DefaultRoleModelProcessor.process(DefaultRoleModelProcessor.java:61)
jvm 1    | at org.codehaus.plexus.redback.role.DefaultRoleManager.loadApplication(DefaultRoleManager.java:165)
jvm 1    | at org.codehaus.plexus.redback.role.DefaultRoleManager.loadRoleModel(DefaultRoleManager.java:107)
jvm 1    | at org.codehaus.plexus.redback.role.DefaultRoleManager.initialize(DefaultRoleManager.java:411)
jvm 1    | at org.codehaus.plexus.spring.PlexusLifecycleBeanPostProcessor.postProcessAfterInitialization(PlexusLifecycleBeanPostProcessor.java:217)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:361)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1344)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
jvm 1    | at java.security.AccessController.doPrivileged(Native Method)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
jvm 1    | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
jvm 1    | at org.codehaus.plexus.spring.PlexusComponentFactoryBean.resolveRequirement(PlexusComponentFactoryBean.java:246)
jvm 1    | at org.codehaus.plexus.spring.PlexusComponentFactoryBean.createInstance(PlexusComponentFactoryBean.java:163)
jvm 1    | at org.codehaus.plexus.spring.PlexusComponentFactoryBean.getObject(PlexusComponentFactoryBean.java:108)
jvm 1    | at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:121)
jvm 1    | at java.security.AccessController.doPrivileged(Native Method)
jvm 1    | at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:116)
jvm 1    | at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:91)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1288)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:275)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
jvm 1    | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
jvm 1    | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
jvm 1    | at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:495)
jvm 1    | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
jvm 1    | at java.security.AccessController.doPrivileged(Native Method)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
jvm 1    | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
jvm 1    | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
jvm 1    | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
jvm 1    | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
jvm 1    | at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
jvm 1    | at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
jvm 1    | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
jvm 1    | at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
jvm 1    | at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
jvm 1    | at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)
jvm 1    | at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
jvm 1    | at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
jvm 1    | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
jvm 1    | at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
jvm 1    | at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
jvm 1    | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
jvm 1    | at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
jvm 1    | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
jvm 1    | at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
jvm 1    | at org.mortbay.jetty.Server.doStart(Server.java:224)
jvm 1    | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
jvm 1    | at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
jvm 1    | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
jvm 1    | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
jvm 1    | at java.lang.reflect.Method.invoke(Method.java:597)
jvm 1    | at org.mortbay.start.Main.invokeMain(Main.java:194)
jvm 1    | at org.mortbay.start.Main.start(Main.java:534)
jvm 1    | at org.mortbay.start.Main.start(Main.java:441)
jvm 1    | at org.mortbay.start.Main.main(Main.java:119)
jvm 1    | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
jvm 1    | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
jvm 1    | at java.lang.reflect.Method.invoke(Method.java:597)
jvm 1    | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1    | at java.lang.Thread.run(Thread.java:619)
jvm 1    |
jvm 1    | Another instance of Derby may have already booted the database /home/efanrui/bin/apache-archiva-1.3.1/data/databases/users.
jvm 1    | ERROR XSDB6: Another instance of Derby may have already booted the database /home/efanrui/bin/apache-archiva-1.3.1/data/databases/users.
jvm 1    | at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
jvm 1    | at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSLockOnDB(Unknown Source)
jvm 1    | at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.run(Unknown Source)
jvm 1    | at java.security.AccessController.doPrivileged(Native Method)
jvm 1    | at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.getJBMSLockOnDB(Unknown Source)
jvm 1    | at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.boot(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
jvm 1    | at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
jvm 1    | at org.apache.derby.impl.store.raw.RawStore.boot(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
jvm 1    | at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
jvm 1    | at org.apache.derby.impl.store.access.RAMAccessManager.boot(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
jvm 1    | at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
jvm 1    | at org.apache.derby.impl.db.BasicDatabase.bootStore(Unknown Source)
jvm 1    | at org.apache.derby.impl.db.BasicDatabase.boot(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
jvm 1    | at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
jvm 1    | at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
jvm 1    | at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
jvm 1    | at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
jvm 1    | at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
jvm 1    | at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
jvm 1    | at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
jvm 1    | at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
jvm 1    | at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
jvm 1    | at org.jpox.util.FailoverUtils.getConnection(FailoverUtils.java:51)
jvm 1    | at org.jpox.store.rdbms.RDBMSManager.<init>(RDBMSManager.java:244)
jvm 1    | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
jvm 1    | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
jvm 1    | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
jvm 1    | at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
jvm 1    | at org.jpox.util.ClassUtils.newInstance(ClassUtils.java:73)
jvm 1    | at org.jpox.store.StoreManagerFactory.getStoreManager(StoreManagerFactory.java:73)
jvm 1    | at org.jpox.AbstractPersistenceManager.getStoreManager(AbstractPersistenceManager.java:295)
jvm 1    | at org.jpox.AbstractPersistenceManager.<init>(AbstractPersistenceManager.java:217)
jvm 1    | at org.jpox.PersistenceManagerImpl.<init>(PersistenceManagerImpl.java:42)
jvm 1    | at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:178)
jvm 1    | at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:153)
jvm 1    | at org.codehaus.plexus.redback.rbac.jdo.JdoTool.getPersistenceManager(JdoTool.java:115)
jvm 1    | at org.codehaus.plexus.redback.rbac.jdo.JdoTool.getObjectById(JdoTool.java:300)
jvm 1    | at org.codehaus.plexus.redback.rbac.jdo.JdoTool.objectExistsById(JdoTool.java:348)
jvm 1    | at org.codehaus.plexus.redback.rbac.jdo.JdoRbacManager.resourceExists(JdoRbacManager.java:463)
jvm 1    | at org.codehaus.plexus.redback.rbac.cached.CachedRbacManager.resourceExists(CachedRbacManager.java:612)
jvm 1    | at org.codehaus.plexus.redback.role.processor.DefaultRoleModelProcessor.processResources(DefaultRoleModelProcessor.java:77)
jvm 1    | at org.codehaus.plexus.redback.role.processor.DefaultRoleModelProcessor.process(DefaultRoleModelProcessor.java:61)
jvm 1    | at org.codehaus.plexus.redback.role.DefaultRoleManager.loadApplication(DefaultRoleManager.java:165)
jvm 1    | at org.codehaus.plexus.redback.role.DefaultRoleManager.loadRoleModel(DefaultRoleManager.java:107)
jvm 1    | at org.codehaus.plexus.redback.role.DefaultRoleManager.initialize(DefaultRoleManager.java:411)
jvm 1    | at org.codehaus.plexus.spring.PlexusLifecycleBeanPostProcessor.postProcessAfterInitialization(PlexusLifecycleBeanPostProcessor.java:217)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:361)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1344)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
jvm 1    | at java.security.AccessController.doPrivileged(Native Method)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
jvm 1    | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
jvm 1    | at org.codehaus.plexus.spring.PlexusComponentFactoryBean.resolveRequirement(PlexusComponentFactoryBean.java:246)
jvm 1    | at org.codehaus.plexus.spring.PlexusComponentFactoryBean.createInstance(PlexusComponentFactoryBean.java:163)
jvm 1    | at org.codehaus.plexus.spring.PlexusComponentFactoryBean.getObject(PlexusComponentFactoryBean.java:108)
jvm 1    | at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:121)
jvm 1    | at java.security.AccessController.doPrivileged(Native Method)
jvm 1    | at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:116)
jvm 1    | at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:91)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1288)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:275)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
jvm 1    | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
jvm 1    | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
jvm 1    | at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:495)
jvm 1    | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
jvm 1    | at java.security.AccessController.doPrivileged(Native Method)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
jvm 1    | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
jvm 1    | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
jvm 1    | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
jvm 1    | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
jvm 1    | at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
jvm 1    | at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
jvm 1    | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
jvm 1    | at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
jvm 1    | at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
jvm 1    | at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)
jvm 1    | at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
jvm 1    | at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
jvm 1    | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
jvm 1    | at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
jvm 1    | at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
jvm 1    | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
jvm 1    | at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
jvm 1    | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
jvm 1    | at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
jvm 1    | at org.mortbay.jetty.Server.doStart(Server.java:224)
jvm 1    | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
jvm 1    | at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
jvm 1    | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
jvm 1    | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
jvm 1    | at java.lang.reflect.Method.invoke(Method.java:597)
jvm 1    | at org.mortbay.start.Main.invokeMain(Main.java:194)
jvm 1    | at org.mortbay.start.Main.start(Main.java:534)
jvm 1    | at org.mortbay.start.Main.start(Main.java:441)
jvm 1    | at org.mortbay.start.Main.main(Main.java:119)
jvm 1    | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
jvm 1    | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
jvm 1    | at java.lang.reflect.Method.invoke(Method.java:597)
jvm 1    | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1    | at java.lang.Thread.run(Thread.java:619)
jvm 1    |
jvm 1    | NestedThrowables:
jvm 1    | SQL Exception: Failed to start database './data/databases/users', see the next exception for details.
jvm 1    | Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryMetadataBuilder': Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class] for property 'role'; nested exception is java.lang.IllegalArgumentException: Cannot find class [org.apache.maven.artifact.repository.metadata.RepositoryMetadataBuilder]
jvm 1    | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
jvm 1    | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
jvm 1    | at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:495)
jvm 1    | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
jvm 1    | at java.security.AccessController.doPrivileged(Native Method)
jvm 1    | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
jvm 1    | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
jvm 1    | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
jvm 1    | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
jvm 1    | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
jvm 1    | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
jvm 1    | at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
jvm 1    | at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
jvm 1    | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
jvm 1    | at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
jvm 1    | at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
jvm 1    | at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)
jvm 1    | at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
jvm 1    | at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
jvm 1    | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
jvm 1    | at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
jvm 1    | at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
jvm 1    | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
jvm 1    | at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
jvm 1    | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
jvm 1    | at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
jvm 1    | at org.mortbay.jetty.Server.doStart(Server.java:224)
jvm 1    | at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
jvm 1    | at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
jvm 1    | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
jvm 1    | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
jvm 1    | at java.lang.reflect.Method.invoke(Method.java:597)
jvm 1    | at org.mortbay.start.Main.invokeMain(Main.java:194)
jvm 1    | at org.mortbay.start.Main.start(Main.java:534)
jvm 1    | at org.mortbay.start.Main.start(Main.java:441)
jvm 1    | at org.mortbay.start.Main.main(Main.java:119)
jvm 1    | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
jvm 1    | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
jvm 1    | at java.lang.reflect.Method.invoke(Method.java:597)
jvm 1    | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1    | at java.lang.Thread.run(Thread.java:619)

接着用ps -ef|grep -i archiva发现同时起了好多archiva的进程,应该是sudo archiva stop无法停掉service了。
用kill杀掉后再起,发现还报错,错误信息和刚才不太一样了,可能是Derby数据库文件在磁盘满时损坏了。
jvm 1    | 2012-09-26 1Running Apache Archiva...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | 2012-09-26 10:33:41.163::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
jvm 1    | 2012-09-26 10:33:41.435::WARN:  Deprecated configuration used for ./apps
jvm 1    | 2012-09-26 10:33:41.501::INFO:  jetty-6.1.19
jvm 1    | 2012-09-26 10:33:41.889::INFO:  No Transaction manager found - if your webapp requires one, please configure one.
jvm 1    | 2012-09-26 10:33:42.450:/archiva:INFO:  Initializing Spring root WebApplicationContext
jvm 1    | 2012-09-26 10:33:48.720::WARN:  Failed startup of context org.mortbay.jetty.webapp.WebAppContext@1e0f2f6{/archiva,file:/home/efanrui/archiva/apache-archiva-1.3.1/apps/archiva/}
jvm 1    | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'archivaTaskScheduler': Post-processing of the FactoryBean's object failed; nested exception is javax.jdo.JDODataStoreException: Failed initialising database. Please check that your database JDBC driver is accessible, and the database URL and username/password are correct. Exception : Cannot create PoolableConnectionFactory (Failed to start database './data/databases/archiva', see the next exception for details.)
jvm 1    | org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Failed to start database './data/databases/archiva', see the next exception for details.)
jvm 1    | at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
jvm 1    | at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)

启动一个崭新的archiva server, 把目录$ARCHIVA_HOME/data/databases/archiva/下的文件用新生成的文件代替, 然后再启动archiva server,这次OK了。
但网页浏览时发现SNAPSHOT的jar文件少了很多。在网页上做一个"scan"操作,过了一个小时后, 一切恢复如初。
分享到:
评论

相关推荐

    Archiva server mirroring configuration

    《Archiva服务器镜像配置详解》 Apache Archiva是一款开源的企业级 Maven 仓库管理器,它可以帮助开发者管理和控制软件库的整个生命周期。在Archiva中,配置服务器镜像是一个重要的功能,可以有效地提升开发效率,...

    Apache Archiva中文版使用手册

    ### Apache Archiva 使用手册核心知识点解析 #### 一、概览 Apache Archiva 是一个用于管理软件组件(例如 Java 的 JAR 文件)及其依赖性的工具。它主要支持 Maven 工件,同时也支持其他构建工具。本手册旨在详细...

    archiva的安装

    进入`conf`目录,编辑`server.xml`和`archiva.xml`文件,根据你的需求进行个性化配置。例如,你可以修改端口号、仓库路径等。 ### 4. 启动Archiva 1. 在Archiva的bin目录下,根据你的操作系统执行相应的启动脚本。...

    archiva-configuration-1.3.jar

    标签:archiva-configuration-1.3.jar,archiva,configuration,1.3,jar包下载,依赖包

    maven私服apache-archiva-2.2.3-bin.tar.gz

    Apache Archiva是一款开源的Maven私有仓库服务器,它的主要功能是管理和存储Maven项目构建的成果,如JAR、WAR和其他依赖项。这个“apache-archiva-2.2.3-bin.tar.gz”文件是Archiva的一个特定版本,即2.2.3版本的二...

    docker-archiva:Apache Archiva 的 docker 镜像

    xetusoss/档案用于简单独立部署的 Apache Archiva 映像。标签标签描述 跟踪最新版本的 Archiva 跟踪Archiva v2快照构建 此图像的旧版本有关最近的更改,请参阅!快速参考获得帮助: 如果您发现此图像有问题,请在...

    archiva-consumer-api-1.0.1.jar

    标签:archiva-consumer-api-1.0.1.jar,archiva,consumer,api,1.0.1,jar包下载,依赖包

    archiva-converter-1.3.1.jar

    标签:archiva-converter-1.3.1.jar,archiva,converter,1.3.1,jar包下载,依赖包

    archiva-security-1.0.2-javadoc.jar

    标签:archiva-security-1.0.2-javadoc.jar,archiva,security,1.0.2,javadoc,jar包下载,依赖包

    archiva-scheduler-repository-1.4-M2-sources.jar

    标签:archiva-scheduler-repository-1.4-M2-sources.jar,archiva,scheduler,repository,1.4,M2,sources,jar包下载,依赖包

    archiva-consumer-api-1.4-M2-javadoc.jar

    标签:archiva-consumer-api-1.4-M2-javadoc.jar,archiva,consumer,api,1.4,M2,javadoc,jar包下载,依赖包

    archiva-scheduler-repository-2.0.1-sources.jar

    标签:archiva-scheduler-repository-2.0.1-sources.jar,archiva,scheduler,repository,2.0.1,sources,jar包下载,依赖包

    archiva-common-1.4-M2.jar

    标签:archiva-common-1.4-M2.jar,archiva,common,1.4,M2,jar包下载,依赖包

    archiva-security-1.4-M2.jar

    标签:archiva-security-1.4-M2.jar,archiva,security,1.4,M2,jar包下载,依赖包

    apache-archiva-1.0-alpha-2-bin.tar.gz

    echo 'export PATH=$PATH:$ARCHIVA_HOME/bin' &gt;&gt; ~/.bashrc source ~/.bashrc ``` 安装完成后,可以通过以下命令启动 Archiva: ```bash ./bin/archiva start ``` 为了使 Archiva 在系统启动时自动运行,可以将其...

    archiva-scheduler-repository-api-2.0.0-sources.jar

    标签:archiva-scheduler-repository-api-2.0.0-sources.jar,archiva,scheduler,repository,api,2.0.0,sources,jar包下载,依赖包

    archiva

    Archiva是Maven,Continuum和ANT等构建工具的理想伴侣。 Archiva提供了多种功能,其中包括远程存储库代理,安全访问管理,构建工件存储,交付,浏览,索引和使用情况报告,可扩展的扫描功能等等!archiva/2.2.1/src/

    archiva-scheduler-repository-1.4-M4-sources.jar

    标签:archiva-scheduler-repository-1.4-M4-sources.jar,archiva,scheduler,repository,1.4,M4,sources,jar包下载,依赖包

    archiva-search-1.1.jar.zip

    《Archiva搜索功能详解——基于archiva-search-1.1.jar》 在Java开发领域,管理依赖库是一项至关重要的任务,而Apache Archiva作为一个开源的、企业级的Maven仓库管理器,为开发者提供了强大的解决方案。本文将深入...

Global site tag (gtag.js) - Google Analytics