cancel
Showing results for 
Search instead for 
Did you mean: 

Error on fresh Alfresco installation. War deployment

konart
Champ in-the-making
Champ in-the-making
Hi!

I have some porblems with running fresh alfresco installation on Windows 7 x64.

/share is accessable, /alfresco gives 404 error though

Here is what I see in logs:

INFO: Deploying web application archive C:\Alfresco\tomcat\webapps\alfresco.war
июн 06, 2014 12:45:06 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
июн 06, 2014 12:45:06 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/alfresco] startup failed due to previous errors
июн 06, 2014 12:45:06 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive C:\Alfresco\tomcat\webapps\share.war
to listener instance of class org.alfresco.web.app.ContextLoaderListener
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:4973)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
   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:632)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
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)
   … 26 more
Caused by: java.net.URISyntaxException: Illegal character in hostname at index 13: http://inskag_comp:7070/alfresco
   at java.net.URI$Parser.fail(Unknown Source)
   at java.net.URI$Parser.parseHostname(Unknown Source)
   at java.net.URI$Parser.parseServer(Unknown Source)
   at java.net.URI$Parser.parseAuthority(Unknown Source)
   at java.net.URI$Parser.parseHierarchical(Unknown Source)
   at java.net.URI$Parser.parse(Unknown Source)
   at java.net.URI.<init>(Unknown Source)
   at org.alfresco.module.vti.handler.alfresco.DefaultUrlHelper.getExternalURL(DefaultUrlHelper.java:75)
   … 29 more

июн 06, 2014 12:44:59 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener
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:4973)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
   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:632)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
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)
   … 26 more
Caused by: java.net.URISyntaxException: Illegal character in hostname at index 13: http://inskag_comp:7070/alfresco
   at java.net.URI$Parser.fail(Unknown Source)
   at java.net.URI$Parser.parseHostname(Unknown Source)
   at java.net.URI$Parser.parseServer(Unknown Source)
   at java.net.URI$Parser.parseAuthority(Unknown Source)
   at java.net.URI$Parser.parseHierarchical(Unknown Source)
   at java.net.URI$Parser.parse(Unknown Source)
   at java.net.URI.<init>(Unknown Source)
   at org.alfresco.module.vti.handler.alfresco.DefaultUrlHelper.getExternalURL(DefaultUrlHelper.java:75)
   … 29 more

июн 06, 2014 12:44:59 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.repo.webdav.WebDAVSessionListener
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:4973)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
   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:632)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
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)
   … 26 more
Caused by: java.net.URISyntaxException: Illegal character in hostname at index 13: http://inskag_comp:7070/alfresco
   at java.net.URI$Parser.fail(Unknown Source)
   at java.net.URI$Parser.parseHostname(Unknown Source)
   at java.net.URI$Parser.parseServer(Unknown Source)
   at java.net.URI$Parser.parseAuthority(Unknown Source)
   at java.net.URI$Parser.parseHierarchical(Unknown Source)
   at java.net.URI$Parser.parse(Unknown Source)
   at java.net.URI.<init>(Unknown Source)
   at org.alfresco.module.vti.handler.alfresco.DefaultUrlHelper.getExternalURL(DefaultUrlHelper.java:75)
   … 29 more


The full log is in the attachment.

Any ideas how to fix this?
5 REPLIES 5

jpotts
World-Class Innovator
World-Class Innovator
I'm pretty sure you cannot have an underscore in your hostname ("inskag_comp"). If that is in your alfresco-global.properties you should change it to a valid hostname.

Jeff

konart
Champ in-the-making
Champ in-the-making
Checked that and hosts file - no such thing there.

my  alfresco-global looks like this:


###############################
## Common Alfresco Properties #
###############################

dir.root=C:/Alfresco/alf_data

alfresco.context=alfresco
alfresco.host=127.0.0.1
alfresco.port=8080
alfresco.protocol=http

share.context=share
share.host=127.0.0.1
share.port=8080
share.protocol=http

### database connection properties ###
db.driver=org.postgresql.Driver
db.username=alfresco
db.password=tomica
db.name=alfresco
db.url=jdbc:postgresql://localhost:5432/${db.name}

### FTP Server Configuration ###
ftp.enabled=true
ftp.port=21

### RMI service ports ###
alfresco.rmi.services.port=50500
avm.rmi.service.port=0
avmsync.rmi.service.port=0
attribute.rmi.service.port=0
authentication.rmi.service.port=0
repo.rmi.service.port=0
action.rmi.service.port=0
deployment.rmi.service.port=0

### External executable locations ###
ooo.exe=C:/Alfresco/libreoffice/App/libreoffice/program/soffice.exe
ooo.enabled=true
ooo.port=8100
img.root=C:\\Alfresco\\imagemagick
img.coders=${img.root}\\modules\\coders
img.config=${img.root}\\config
img.gslib=${img.root}\\lib
img.exe=${img.root}\\convert.exe
swf.exe=C:/Alfresco/swftools/pdf2swf.exe
swf.languagedir=C:/Alfresco/swftools/japanese

jodconverter.enabled=false
jodconverter.officeHome=C:/Alfresco/libreoffice/App/libreoffice
jodconverter.portNumbers=8100

### Initial admin password ###
alfresco_user_store.adminpassword=b2e72958efee2858e04d2ff2035fe53c

### E-mail site invitation setting ###
notification.email.siteinvite=false

### License location ###
dir.license.external=C:/Alfresco

### Solr indexing ###
index.subsystem.name=solr
dir.keystore=${dir.root}/keystore
solr.port.ssl=8443

### BPM Engine ###
system.workflow.engine.jbpm.enabled=false

authentication.chain=alfrescoNtlm1:alfrescoNtlm,external1:external


The only place where this name `inskag_comp` can be found - is the computer name, but I'm afraid I can't change that.

jpotts
World-Class Innovator
World-Class Innovator
Try setting cifs.serverName=inskagcomp

Or, if you aren't using CIFS, set cifs.enabled=false

Jeff

jpotts
World-Class Innovator
World-Class Innovator
Sorry, I just noticed your error message is complaining about the SharePoint protocol ("vti"), not CIFS. So that won't fix your problem.

You could disable the SharePoint protocol if you don't need it. Or change its hostname. I don't have those properties at hand but I'll poke around.

Jeff

mitpatoliya
Star Collaborator
Star Collaborator
I think you might be using share-config-custom.xml where you are using this wrong host name format as this line suggest.
Illegal character in hostname at index 13: http://inskag_comp:7070/alfresco

So checkout in whole installation directory from where this host name and port is coming and change it to normal name without special characters.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.