OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

He we will discuss about how to make customization and improvement to the OpenKM source code.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
Petr_Valenta
Senior Boarder
Senior Boarder
Posts: 47
Joined: Mon Mar 06, 2017 9:10 am

OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

Post by Petr_Valenta » Mon Mar 20, 2017 12:37 pm

Hello

I am not able to make a build by Maven due to the Error code 401, Unauthorized.

I have downloaded the latest "OpenKM-6.3-community-portable-dev-1.0.zip".

Before the build I cleared .m2, USER\AppData\Local\Temp, USER\AppData\Roaming\Mozilla\eclipse and USER\AppData\Local\eclipse\

Then I started Eclipse and made refresh. After some downloads invoked automatically by this F5 I triggered a maven build (there are two possibilites - I tried both of them). And both end up with the Error 401.

Code: Select all

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenKM Web Application 6.3.1-DEV
[INFO] ------------------------------------------------------------------------
Downloading: http://maven.openkm.com/maven2/com/dropbox/sdk/dropbox-client/5.1.3/dropbox-client-5.1.3.pom
Downloading: http://maven.openkm.com/maven2/net/sf/jodreports/2.3.0/jodreports-2.3.0.pom
Downloading: http://maven.openkm.com/maven2/com/github/dcarter/gdata-java-client/gdata-contacts-3.0/1.46.0/gdata-contacts-3.0-1.46.0.pom
Downloading: http://maven.openkm.com/maven2/com/github/dcarter/gdata-java-client/gdata-docs-3.0/1.46.0/gdata-docs-3.0-1.46.0.pom
Downloading: http://maven.openkm.com/maven2/com/ettrema/milton-api/1.8.1.3/milton-api-1.8.1.3.pom
Downloading: http://maven.openkm.com/maven2/com/ettrema/milton-servlet/1.8.1.3/milton-servlet-1.8.1.3.pom
Downloading: http://maven.openkm.com/maven2/commons-logging/commons-logging/1.2.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata commons-logging:commons-logging:1.2.1-SNAPSHOT/maven-metadata.xml from/to openkm.com (http://maven.openkm.com/maven2): Access denied to http://maven.openkm.com/maven2/commons-logging/commons-logging/1.2.1-SNAPSHOT/maven-metadata.xml. Error code 401, Unauthorized
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.546s
[INFO] Finished at: Mon Mar 20 11:02:17 CET 2017
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "openkm-6.3-community" could not be activated because it does not exist.
[ERROR] Failed to execute goal on project openkm: Could not resolve dependencies for project com.openkm:openkm:war:6.3.1-DEV: Failed to collect dependencies for [junit:junit:jar:4.11 (compile), com.googlecode.catch-exception:catch-exception:jar:1.2.0 (compile), javax.transaction:jta:jar:1.1 (test), javassist:javassist:jar:3.12.1.GA (test), org.hsqldb:hsqldb:jar:2.2.6 (test), javax.servlet:servlet-api:jar:2.5 (provided), javax.servlet:jstl:jar:1.2 (provided), javax.servlet.jsp:jsp-api:jar:2.1 (provided), javax.mail:mail:jar:1.4.7 (provided), log4j:log4j:jar:1.2.17 (provided), org.apache.tomcat:tomcat-catalina:jar:7.0.27 (provided), commons-io:commons-io:jar:1.4 (compile), commons-fileupload:commons-fileupload:jar:1.2.2 (compile), commons-httpclient:commons-httpclient:jar:3.1 (compile), org.apache.commons:commons-compress:jar:1.0 (compile), de.schlichtherle:truezip:jar:6.8.2 (compile), org.slf4j:slf4j-api:jar:1.5.3 (compile), org.slf4j:slf4j-log4j12:jar:1.5.3 (compile), org.slf4j:jul-to-slf4j:jar:1.5.3 (compile), dnsjava:dnsjava:jar:2.0.8 (compile), commons-beanutils:commons-beanutils:jar:1.8.3 (compile), commons-codec:commons-codec:jar:1.2 (compile), javax.jcr:jcr:jar:1.0 (compile), org.apache.jackrabbit:jackrabbit-core:jar:1.6.5 (compile), org.apache.jackrabbit:jackrabbit-text-extractors:jar:1.6.5 (compile), net.homeip.yusuke:twitter4j:jar:2.0.10 (compile), rome:rome:jar:1.0 (compile), net.sf.jasperreports:jasperreports:jar:3.7.6 (compile), org.codehaus.groovy:groovy-all-minimal:jar:1.5.8 (compile), org.jbpm.jbpm3:jbpm-jpdl:jar:3.3.1.OKM (compile), org.jbpm.jbpm3:jbpm-identity:jar:3.3.1.OKM (compile), org.hibernate:hibernate-core:jar:3.6.10.Final (compile), org.hibernate:hibernate-ehcache:jar:3.6.10.Final (compile), org.hibernate:hibernate-search:jar:3.4.2.Final (compile), org.hibernate:hibernate-validator:jar:4.2.0.Final (compile), org.apache.lucene:lucene-queries:jar:3.1.0 (compile), org.beanshell:bsh:jar:2.0b5 (compile), com.dropbox.sdk:dropbox-client:jar:5.1.3 (compile), org.artofsolving.jodconverter:jodconverter-core:jar:3.0-beta-4 (compile), entagged.audioformats:audioformats:jar:0.15 (compile), com.drewnoakes:metadata-extractor:jar:2.4.0-beta-1 (compile), org.apache.poi:poi:jar:3.9 (compile), org.apache.poi:poi-scratchpad:jar:3.9 (compile), org.apache.pdfbox:pdfbox:jar:1.6.0 (compile), com.catcode:odfutils:jar:051129 (compile), org.dts:jmyspell-core:jar:1.0.0-beta-2 (compile), net.sf:jodreports:jar:2.3.0 (compile), org.odftoolkit:odfdom-java:jar:0.8.6 (compile), org.hyperic:sigar:jar:1.6.5.132 (compile), com.google.gwt:gwt-servlet:jar:2.4.0 (runtime), com.google.gwt:gwt-user:jar:2.4.0 (provided), com.google.gwt:gwt-dev:jar:2.4.0 (provided), com.google.code.gwt-log:gwt-log:jar:3.1.6 (compile), com.google.gwt:gwt-incubator:jar:2.1.0 (compile), gwt-vl.sourceforge.net:gwt-vl:jar:2.0b-without-hibernate (compile), org.openrdf.sesame:onejar:jar:2.2.4 (compile), com.google.code.gson:gson:jar:2.2.4 (compile), com.kenai.crontab-parser:crontab-parser:jar:1.0.1 (compile), de.sven-jacobs:loremipsum:jar:1.0 (compile), com.github.dcarter.gdata-java-client:gdata-contacts-3.0:jar:1.46.0 (compile), com.github.dcarter.gdata-java-client:gdata-docs-3.0:jar:1.46.0 (compile), org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.7.12 (compile), org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.7.12 (compile), org.apache.cxf:cxf-rt-transports-http:jar:2.7.12 (compile), org.apache.cxf:cxf-rt-ws-security:jar:2.7.12 (compile), org.apache.ws.security:wss4j:jar:1.6.16 (compile), org.springframework:spring-core:jar:3.1.0.RELEASE (compile), org.springframework:spring-beans:jar:3.1.0.RELEASE (compile), org.springframework:spring-web:jar:3.1.0.RELEASE (compile), org.springframework:spring-context:jar:3.1.0.RELEASE (compile), org.springframework:spring-orm:jar:3.1.0.RELEASE (compile), org.springframework.ws:spring-ws-core:jar:2.0.3.RELEASE (compile), org.springframework.security:spring-security-core:jar:3.1.0.RELEASE (compile), org.springframework.security:spring-security-config:jar:3.1.0.RELEASE (compile), org.springframework.security:spring-security-web:jar:3.1.0.RELEASE (compile), org.springframework.security:spring-security-taglibs:jar:3.1.0.RELEASE (compile), org.springframework.security:spring-security-ldap:jar:3.1.0.RELEASE (compile), com.google.code:jspf:jar:1.0.1 (compile), org.apache.chemistry.opencmis:chemistry-opencmis-server-support:jar:0.10.0 (compile), org.apache.chemistry.opencmis:chemistry-opencmis-server-bindings:jar:0.10.0 (compile), com.ettrema:milton-api:jar:1.8.1.3 (compile), com.ettrema:milton-servlet:jar:1.8.1.3 (compile), net.sf.dozer:dozer:jar:5.3.2 (compile), com.google.zxing:core:jar:2.2 (compile), com.google.zxing:javase:jar:2.2 (compile), com.amazonaws:aws-java-sdk:jar:1.3.0 (compile), com.cybozu:langdetect:jar:2011.11.28 (compile), net.sourceforge:jashi:jar:2008.07.31 (compile), com.googlecode.jcsv:jcsv:jar:1.4.0 (compile), org.owasp:encoder:jar:1.1 (compile), com.auxilii:msgparser:jar:1.12 (compile), com.ibm.icu:icu4j:jar:50.1.1 (compile), ca.uwaterloo.a3seth:omr-tool:jar:2007.07.01 (compile), net.sourceforge:jiu:jar:2007.07.01 (compile), org.docx4j:docx4j:jar:2.8.1 (compile), org.reflections:reflections:jar:0.9.9-RC1 (compile)]: Failed to read artifact descriptor for com.dropbox.sdk:dropbox-client:jar:5.1.3: Could not transfer artifact com.dropbox.sdk:dropbox-client:pom:5.1.3 from/to openkm.com (http://maven.openkm.com/maven2): Access denied to http://maven.openkm.com/maven2/com/dropbox/sdk/dropbox-client/5.1.3/dropbox-client-5.1.3.pom. Error code 401, Unauthorized -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Moreover, when I check m2, there are missing some libraries - for example .m2\repository\org\apache\tomcat\tomcat-util\7.0.27 does not contain any jar.

Interesting is that the same DEV was working last week....

What am I doing wrong?

Environment:
* VMWare 12.5.2 24GB RAM, 4 processors
* MS Windows 7 Professional Service Pack 1
* java.version=1.8.0_121
* OpenKM-6.3-community-portable-dev-1.0.zip downloaded 20.3.2017 with no customizations

jllort
Moderator
Moderator
Posts: 9647
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

Post by jllort » Tue Mar 21, 2017 7:13 pm

Try to replace for version 1.2.1-SNAPSHOT ( we will investigate the problem ).

pavila
Moderator
Moderator
Posts: 3032
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re: OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

Post by pavila » Wed Mar 22, 2017 6:41 am

I suggest trying last OpenKM 6.3.3 source code from GitHub https://github.com/openkm/document-management-system because we've detected problems with some libraries version which are not currently available from their original repos.

Petr_Valenta
Senior Boarder
Senior Boarder
Posts: 47
Joined: Mon Mar 06, 2017 9:10 am

Re: OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

Post by Petr_Valenta » Wed Mar 22, 2017 7:12 am

Ok, I'm on 6.3.3 now. Thanks a lot.

Petr_Valenta
Senior Boarder
Senior Boarder
Posts: 47
Joined: Mon Mar 06, 2017 9:10 am

Re: OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

Post by Petr_Valenta » Wed Mar 22, 2017 11:12 am

Is there any description, how to install OpenKM deployed by means of the eclipse connected to github OpenKM 6.3.3 on a clean tomcat 7x?

When run the maven, take a deployed war and try to install it on the tomcat the installation is sucessfull but the application itself is not running. After moving OpenKM.xml to the root of tomcat, adding setenv.bat, some configurations in server.xml and context.xml and other steps the OpenOK is finally running, but I am not able to activate logging (after adding log4j libraries into tomcat/lib, adding setenv.bat and some configurations in server.xml log-files are created but remains empty) and it is impossible to log in (OKM ends up with the exception added to the end if this text).

Steps above are not documented anywhere on your web. I made them according to errors written into tha catalina's log.

What steps are neccessary to do to make the application functional on the pure tomcat?

Environment:
* Sources were downloaded 20.3.2017 (two days ago).
* VMWare 12.5.2 10GB RAM, 4 processors
* MS Windows 7 Professional Service Pack 1
* java.version=1.8.0_121
* OpenKM-6.3.3
* Apache Tomcat/7.0.47 64bit
* Eclipse Version: Neon.2 Release (4.6.2) Build id: 20161208-0600

-----

Code: Select all

Bře 22, 2017 11:57:59 DOP. org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Bře 22, 2017 11:57:59 DOP. org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Bře 22, 2017 11:57:59 DOP. org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@27591298')
Bře 22, 2017 11:58:12 DOP. org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Bře 22, 2017 11:58:13 DOP. org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Bře 22, 2017 11:58:23 DOP. org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:459)
	at java.util.Properties.setProperty(Properties.java:166)
	at org.hibernate.cfg.Configuration.setProperty(Configuration.java:2108)
	at com.openkm.dao.HibernateUtil.getSessionFactory(HibernateUtil.java:145)
	at com.openkm.dao.HibernateUtil.getSessionFactory(HibernateUtil.java:82)
	at com.openkm.servlet.RepositoryStartupServlet.init(RepositoryStartupServlet.java:94)
	at javax.servlet.GenericServlet.init(GenericServlet.java:160)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
	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:633)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1120)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1678)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Bře 22, 2017 11:58:23 DOP. org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /OpenKM threw load() exception
java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:459)
	at java.util.Properties.setProperty(Properties.java:166)
	at org.hibernate.cfg.Configuration.setProperty(Configuration.java:2108)
	at com.openkm.dao.HibernateUtil.getSessionFactory(HibernateUtil.java:145)
	at com.openkm.dao.HibernateUtil.getSessionFactory(HibernateUtil.java:82)
	at com.openkm.servlet.RepositoryStartupServlet.init(RepositoryStartupServlet.java:94)
	at javax.servlet.GenericServlet.init(GenericServlet.java:160)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
	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:633)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1120)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1678)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Bře 22, 2017 11:58:50 DOP. org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:459)
	at java.util.Properties.setProperty(Properties.java:166)
	at org.hibernate.cfg.Configuration.setProperty(Configuration.java:2108)
	at com.openkm.dao.HibernateUtil.getSessionFactory(HibernateUtil.java:145)
	at com.openkm.dao.HibernateUtil.getSessionFactory(HibernateUtil.java:82)
	at com.openkm.dao.LanguageDAO.findAll(LanguageDAO.java:97)
	at com.openkm.dao.LanguageDAO.findAll(LanguageDAO.java:74)
	at org.apache.jsp.login_005fdesktop_jsp._jspService(login_005fdesktop_jsp.java:202)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
	at org.apache.jsp.login_jsp._jspService(login_jsp.java:71)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Bře 22, 2017 11:58:50 DOP. org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [/OpenKM] threw exception [An exception occurred processing JSP page /login.jsp at line 8

5:   <jsp:param name="error" value="${param.error}"/>
6: </jsp:include>
7: <% } else { %>
8: <jsp:include page="login_desktop.jsp">
9:   <jsp:param name="error" value="${param.error}"/>
10: </jsp:include>
11: <% } %>


Stacktrace:] with root cause
java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:459)
	at java.util.Properties.setProperty(Properties.java:166)
	at org.hibernate.cfg.Configuration.setProperty(Configuration.java:2108)
	at com.openkm.dao.HibernateUtil.getSessionFactory(HibernateUtil.java:145)
	at com.openkm.dao.HibernateUtil.getSessionFactory(HibernateUtil.java:82)
	at com.openkm.dao.LanguageDAO.findAll(LanguageDAO.java:97)
	at com.openkm.dao.LanguageDAO.findAll(LanguageDAO.java:74)
	at org.apache.jsp.login_005fdesktop_jsp._jspService(login_005fdesktop_jsp.java:202)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
	at org.apache.jsp.login_jsp._jspService(login_jsp.java:71)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Bře 22, 2017 11:58:57 DOP. org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Bře 22, 2017 11:58:57 DOP. org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Bře 22, 2017 11:58:57 DOP. org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext

pavila
Moderator
Moderator
Posts: 3032
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re: OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

Post by pavila » Wed Mar 22, 2017 1:11 pm

Rather than a clean Tomcat I would recommend the one located at https://sourceforge.net/projects/openkm/files/common/

ahinojosa
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: Tue Jul 11, 2017 12:47 pm

Re: OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

Post by ahinojosa » Tue Jul 11, 2017 12:54 pm

Hello,

I'm trying to install dev enviroment last version (Openkm-6.3-community-portable-dev-1.0) and I'm getting same error in Eclipse as the one described here.

Code: Select all

Downloading: http://maven.openkm.com/maven2/commons-logging/commons-logging/1.2.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata commons-logging:commons-logging:1.2.1-SNAPSHOT/maven-metadata.xml from/to openkm.com (http://maven.openkm.com/maven2): Access denied to http://maven.openkm.com/maven2/commons-logging/commons-logging/1.2.1-SNAPSHOT/maven-metadata.xml. Error code 401, Unauthorized
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
Because of this error Maven Build fails.
How can I fix the problem?

Thanks
:D

Petr_Valenta
Senior Boarder
Senior Boarder
Posts: 47
Joined: Mon Mar 06, 2017 9:10 am

Re: OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

Post by Petr_Valenta » Tue Jul 11, 2017 2:14 pm

Hello

I think the problem is in definition inside repository of maven.

I was trying Openkm-6.3-community-portable-dev-1.0 but it came to me to be too slow and fragile. But there were more reasons why I ended up with my own maven repository built on JFrog Artifactory.

In my local repository - except for other things - I removed the SNAPSHOT version of commons_logging (so I went back to the previous version of comon-logging). And now it works for me.

Maybe your way will be by updating your pom.xml...

Hope this help

Petr
Attachments
common-logging.jpg

jllort
Moderator
Moderator
Posts: 9647
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

Post by jllort » Wed Jul 12, 2017 4:01 pm

We have released a new portable environment based in virtual machine ( OVA ). We have still not officially released because by mistake we have copied in a wrong place. You can download now from https://sourceforge.net/projects/openkm/files/common/ ( it's the 10GB file ).

The user credentials in the OS are ( openkm / openkm ). The VM is based in linux mint distribution and comes with all running. I suggest 4GB ram and 2 cores for get it running. OVA has been tested with VM player and Virtual Box ( really comes from virtual box export ).

Petr_Valenta
Senior Boarder
Senior Boarder
Posts: 47
Joined: Mon Mar 06, 2017 9:10 am

Re: OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

Post by Petr_Valenta » Thu Jul 13, 2017 4:52 am

Hello

The provied link is not working - I am cyclicng between OpenKM-ComPorDev.ova and common ....

Petr

pavila
Moderator
Moderator
Posts: 3032
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re: OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

Post by pavila » Fri Jul 14, 2017 5:30 am

What do you mean with "not working"? Can't you access it? I've just tried and works.

Petr_Valenta
Senior Boarder
Senior Boarder
Posts: 47
Joined: Mon Mar 06, 2017 9:10 am

Re: OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

Post by Petr_Valenta » Fri Jul 14, 2017 5:54 am

I cannot attach the video here to show it.

I can access, I can see OVA, but when I click on OVA, nothing is being downloaded and I can see a list of versions with comomn on the first row. If I go to 6.3.4, I can see war file othe OpenKM. If I click on common, I can see OVA again. When I click thr OVA, I can see the list of versions, ....

See the attachments from the bottom to the top.
Attachments
OVA_5.JPG
OVA_4.JPG
OVA_3.JPG
OVA_2.JPG
OVA_1.JPG

jllort
Moderator
Moderator
Posts: 9647
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized

Post by jllort » Sat Jul 15, 2017 4:43 pm

The OVA is here https://sourceforge.net/projects/openkm/files/common/ but seems there's some problem in source forge for this file "OpenKM-ComPorDev.ova" and is not being able to download. We will investigate it.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest