2015-04-28 60 views
0

的答案下面的錯誤變成了當我嘗試登錄在露天4.2錯誤而試圖登錄露天社區...已經嘗試過這裏給出

「您的驗證細節並未承認或露天可能 不在這個時候可用。「

http://127.0.0.1:8082/alfresco不工作..

HTTP狀態404 - /露天

類型狀態報告

消息/露天

描述所請求的資源不可用。

我已經嘗試過這裏給出的解決方案..但他們沒有工作..

露天登錄

15:58:35,032 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default] 
15:58:35,051 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete 
15:58:44,732 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Stopping 'sysAdmin' subsystem, ID: [sysAdmin, default] 
15:58:44,757 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Stopped 'sysAdmin' subsystem, ID: [sysAdmin, default] 
15:58:44,764 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vtiUrlHelper' defined in file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\org.alfresco.module.vti\context\vti-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Unable to construct valid Sharepoint URL. 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) 
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) 
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) 
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) 
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) 
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580) 
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) 
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) 
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) 
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) 
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) 
    at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63) 
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618) 
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963) 
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:166) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 
    at java.lang.Thread.run(Thread.java:722) 
Caused by: java.lang.IllegalArgumentException: Unable to construct valid Sharepoint URL. 
    at org.alfresco.module.vti.handler.alfresco.DefaultUrlHelper.getExternalURL(DefaultUrlHelper.java:79) 
    at org.alfresco.module.vti.handler.alfresco.DefaultUrlHelper.afterPropertiesSet(DefaultUrlHelper.java:157) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) 
    ... 27 more 
Caused by: java.net.URISyntaxException: Illegal character in hostname at index 12: http://vIPER_PC:7070/alfresco 
    at java.net.URI$Parser.fail(URI.java:2829) 
    at java.net.URI$Parser.parseHostname(URI.java:3368) 
    at java.net.URI$Parser.parseServer(URI.java:3217) 
    at java.net.URI$Parser.parseAuthority(URI.java:3136) 
    at java.net.URI$Parser.parseHierarchical(URI.java:3078) 
    at java.net.URI$Parser.parse(URI.java:3034) 
    at java.net.URI.<init>(URI.java:680) 
    at org.alfresco.module.vti.handler.alfresco.DefaultUrlHelper.getExternalURL(DefaultUrlHelper.java:75) 
    ... 30 more 
15:58:35,032 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default] 
15:58:35,051 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete 
15:58:44,732 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Stopping 'sysAdmin' subsystem, ID: [sysAdmin, default] 
15:58:44,757 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Stopped 'sysAdmin' subsystem, ID: [sysAdmin, default] 
15:58:44,764 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vtiUrlHelper' defined in file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\org.alfresco.module.vti\context\vti-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Unable to construct valid Sharepoint URL. 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) 
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) 
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) 
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) 
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) 
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580) 
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) 
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) 
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) 
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) 
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) 
    at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63) 
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618) 
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963) 
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:166) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 
    at java.lang.Thread.run(Thread.java:722) 
Caused by: java.lang.IllegalArgumentException: Unable to construct valid Sharepoint URL. 
    at org.alfresco.module.vti.handler.alfresco.DefaultUrlHelper.getExternalURL(DefaultUrlHelper.java:79) 
    at org.alfresco.module.vti.handler.alfresco.DefaultUrlHelper.afterPropertiesSet(DefaultUrlHelper.java:157) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) 
    ... 27 more 
Caused by: java.net.URISyntaxException: Illegal character in hostname at index 12: http://vIPER_PC:7070/alfresco 
    at java.net.URI$Parser.fail(URI.java:2829) 
    at java.net.URI$Parser.parseHostname(URI.java:3368) 
    at java.net.URI$Parser.parseServer(URI.java:3217) 
    at java.net.URI$Parser.parseAuthority(URI.java:3136) 
    at java.net.URI$Parser.parseHierarchical(URI.java:3078) 
    at java.net.URI$Parser.parse(URI.java:3034) 
    at java.net.URI.<init>(URI.java:680) 
    at org.alfresco.module.vti.handler.alfresco.DefaultUrlHelper.getExternalURL(DefaultUrlHelper.java:75) 
    ... 30 more 
+0

你在主機名周圍的'alfresco-global.properties'文件中設置了什麼? – Gagravarr

+1

[主機名中不允許下劃線](http://domainkeys.sourceforge.net/underscore.html)。在配置中嘗試使用127.0.0.1而不是vIPER_PC(假設您在本地運行所有內容) – wonderb0lt

回答

2

你的主機名是非法的,因爲它包含了一個「_」字符,如前所述通過堆棧跟蹤的這一部分:

原因:java.net.URISyntaxException:主機名中的非法字符 位於索引12:http://vIPER_PC:7070/alfresco 在java.net.URI中的$ Parser.fail(URI.java:2829)

如果這是你的alfresco-global.properties您應將其更改爲一個有效的主機名。

由於錯誤是對VTI模塊相關的,你可以遵循this solution這表明這兩個行的alfresco-global.properties補充:

vti.server.external.host=127.0.0.1 
vti.server.external.port=8080 

您還可以禁用在SharePoint協議(又名VTI),如果你不」真的需要它。