Code Monkey home page Code Monkey logo

Comments (14)

suewonjp avatar suewonjp commented on July 21, 2024

Thank you for a try.

As stated on the readme, Civilizer works on JRE (Java Runtime Environment) 7 or later.
The exception you've got usually indicates that you are trying to run Civilizer with incompatible Java virtual machine on your system.
I guess your JVM might be 6 or earlier. Is that correct? if not, please, tell me more about your system (OS, JVM, other info.)
If your JVM is earlier than 7, please, install the latest JRE. And then try it one more time.
https://java.com/en/download/

If you still have problems, let me know, I'll help you anytime.

If it's web based it would be cool to have a demo site to gain an idea of the product without installing anything.

I've thought of that. It's pending currently due to of funding or other issues.
A cool website for Civilizer will be constructed in the future with its dedicated runtime demo...

Thanks,

from civilizer.

BrunoWinck avatar BrunoWinck commented on July 21, 2024

I have JRE6, JRE7, 4 versions of Java, I'm not going to install one more now that it comes with toolbars attached.

I modified the script to run the java.exe directly, changed the classpath accordingly, same.

Waiting for the online demo ...

from civilizer.

suewonjp avatar suewonjp commented on July 21, 2024

Sorry for your inconvenience.
I experimented on my own and found out my mistake...
I've rebuilt the binary and reloaded it.

Would you replace your downloaded Civilizer with a new one and retry it?
I'll really appreciate that...

Before running it, please, run the following command from the command prompt to confirm your java version.

java -version

  • If you see something like "java version "1.7.0_xx"", that's totally OK.
    • You don't have to modify the script.
  • Or if you see "java version 1.6.xx", you need to edit the script to execute java.exe under JRE7.
    • Or alternatively, Change the system path so that JRE7 is the default JRE on your system.

And I guess the new binary will run...

I'm not going to install one more now that it comes with toolbars attached.

Well, as Oracle claims, this might not be a good idea.
Oracle have blocked their JRE7 download page. Only logged users can download JRE7 now. Anonymous users can't download it from Oracle site any more.
In my opinion, that means the version has some [security] issues...
So I recommend you to install the latest JRE...

Waiting for the online demo ...

I'll work on it.

Thanks,

from civilizer.

BrunoWinck avatar BrunoWinck commented on July 21, 2024

Yes i did that already, I modified the script, the PATH and the CLASSPATH
i've never been a fan of java but IMHO it prefigure the end of java as an end user installable solution.

from civilizer.

suewonjp avatar suewonjp commented on July 21, 2024

Yes i did that already, I modified the script, the PATH and the CLASSPATH

Well, that's not my point.

_I've rebuilt the binary and uploaded it._
My point was "would you download Civilizer again and retry it."

You mean even if you tried the new Civilizer, you still have the same problem?
Then, let me know that.

from civilizer.

suewonjp avatar suewonjp commented on July 21, 2024

Well, I replaced the binary a few hours ago at
https://github.com/suewonjp/civilizer/releases/download/v0.9.0.RC2/civilizer.0.9.0.RC2.zip

The old one,which is gone now, would not run even if your system JRE is version 7.
But new binary will run. I tested it on Windows 8.1 machine.

Sorry for the inconvenience...
I know It is a hassle, but if you retry it one more time, I'll really appreciate that.

from civilizer.

BrunoWinck avatar BrunoWinck commented on July 21, 2024

Nope
Tried on many ports

When I open a browser at http://localhost:1245/civilizer/app/home

I get

HTTP ERROR: 503

Problem accessing /civilizer/app/home. Reason:

Service Unavailable

Powered by Jetty://

civilizer.0.9.0.RC2 (1)\civilizer>run-civilizer -port 12450
[ run-civilizer.bat ] Loading Civilizer...
2015-10-31 17:42:16.368:INFO::main: Logging initialized @377ms
2015-10-31 17:42:16.459:INFO:oejs.Server:main: jetty-9.3.0.M2
2015-10-31 17:42:25.565:INFO:/civilizer:main: No Spring WebApplicationInitializer types detected on classpath
2015-10-31 17:42:26.278:INFO:/civilizer:main: Initializing Spring root WebApplicationContext
INFO [web.context.ContextLoader] -
INFO [context.support.AbstractApplicationContext] - <Refreshing Root WebApplicationContext: startup date [Sat Oct 31 17:42:26 CET
2015]; root of context hierarchy>
INFO [factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/root-cont
ext.xml]>
INFO [factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from class path resource [datasource-context.xml]>
INFO [factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/security-
context.xml]>
INFO [security.core.SpringSecurityCoreVersion] - <You are running with Spring Security Core 3.1.3.RELEASE>
INFO [security.config.SecurityNamespaceHandler] - <Spring Security 'config' module version is 3.1.3.RELEASE>
INFO [config.http.HttpSecurityBeanDefinitionParser] - <Checking sorted filter chain: [Root bean: class [org.springframework.securi
ty.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autow
ireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order
= 200, Root bean: class [org.springframework.security.web.authentication.logout.LogoutFilter]; scope=; abstract=false; lazyInit=f
alse; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; init
MethodName=null; destroyMethodName=null, order = 400, <org.springframework.security.web.authentication.UsernamePasswordAuthenticat
ionFilter#0>, order = 800, Root bean: class [org.springframework.security.web.authentication.www.BasicAuthenticationFilter]; scope
=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1200, Root bean: class [org.springframework.security
.web.savedrequest.RequestCacheAwareFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCan
didate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 130
0, Root bean: class [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter]; scope=; abstract=false;
lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName
=null; initMethodName=null; destroyMethodName=null, order = 1400, Root bean: class [org.springframework.security.web.authenticatio
n.rememberme.RememberMeAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireC
andidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1
600, Root bean: class [org.springframework.security.web.authentication.AnonymousAuthenticationFilter]; scope=; abstract=false; laz
yInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=nul
l; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [org.springframework.security.web.session.SessionMa
nagementFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false;
factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1800, Root bean: class [org.sp
ringframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyC
heck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodNam
e=null, order = 1900, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0>, order = 2000]>
INFO [factory.annotation.AutowiredAnnotationBeanPostProcessor] - <JSR-330 'javax.inject.Inject' annotation found and supported for
autowiring>
INFO [factory.support.DefaultListableBeanFactory] - <Pre-instantiating singletons in org.springframework.beans.factory.support.Def
aultListableBeanFactory@5117aeb8: defining beans [configurator,dataSource,dataSourceInitializer,transactionManager,org.springframe
work.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.spr
ingframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,fi
leEntityDao,fragmentDao,tagDao,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework
.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcesso
r,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersiste
nceAnnotationProcessor,sessionFactory,org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0,org.spri
ngframework.security.access.vote.AffirmativeBased#0,org.springframework.security.access.intercept.aopalliance.MethodSecurityInterc
eptor#0,org.springframework.security.methodSecurityMetadataSourceAdvisor,org.springframework.security.filterChains,org.springframe
work.security.filterChainProxy,org.springframework.security.web.PortMapperImpl#0,org.springframework.security.web.PortResolverImpl
#0,org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0,org.springframework.security.authenticati
on.ProviderManager#0,org.springframework.security.web.context.HttpSessionSecurityContextRepository#0,org.springframework.security.
web.authentication.session.SessionFixationProtectionStrategy#0,org.springframework.security.web.savedrequest.HttpSessionRequestCac
he#0,org.springframework.security.access.vote.AffirmativeBased#1,org.springframework.security.web.access.intercept.FilterSecurityI
nterceptor#0,org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator#0,org.springframework.security.authent
ication.AnonymousAuthenticationProvider#0,org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices#
0,org.springframework.security.authentication.RememberMeAuthenticationProvider#0,org.springframework.security.web.authentication.w
ww.BasicAuthenticationEntryPoint#0,org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0,org.spri
ngframework.security.userDetailsServiceFactory,org.springframework.security.web.DefaultSecurityFilterChain#0,org.springframework.s
ecurity.authentication.dao.DaoAuthenticationProvider#0,org.springframework.security.authentication.DefaultAuthenticationEventPubli
sher#0,org.springframework.security.authenticationManager,cvz-user-service,encoder,org.springframework.context.annotation.Configur
ationClassPostProcessor.importAwareProcessor]; root of factory hierarchy>
java.io.FileNotFoundException: Source 'F:\CDBuffer\ToSort\civilizer.0.9.0.RC2%20(1)\civilizer\civilizer\WEB-INF\classes\app-option
s.properties' does not exist
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1074)
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1038)
at com.civilizer.config.Configurator.preSetupPrivateHome(Configurator.java:88)
at com.civilizer.config.Configurator.(Configurator.java:18)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBea
nFactory.java:1030)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapable
BeanFactory.java:983)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFa
ctory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFact
ory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:2
23)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactor
y.java:628)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationConte
xt.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:801)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:499)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:792)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:337)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:742)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:399)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:366)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.civilizer.extra.tools.Launcher.startServer(Unknown Source)
at com.civilizer.extra.tools.Launcher.main(Unknown Source)
java.io.FileNotFoundException: C:\Users\Bruno Winck.civilizer\app-options.properties (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(Unknown Source)
at java.io.FileInputStream.(Unknown Source)
at com.civilizer.config.Configurator.addAppOptionsToSystemProperties(Configurator.java:159)
at com.civilizer.config.Configurator.(Configurator.java:19)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBea
nFactory.java:1030)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapable
BeanFactory.java:983)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFa
ctory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFact
ory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:2
23)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactor
y.java:628)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationConte
xt.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:801)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:499)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:792)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:337)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:742)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:399)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:366)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.civilizer.extra.tools.Launcher.startServer(Unknown Source)
at com.civilizer.extra.tools.Launcher.main(Unknown Source)
INFO [factory.support.DefaultSingletonBeanRegistry] - <Destroying singletons in org.springframework.beans.factory.support.DefaultL
istableBeanFactory@5117aeb8: defining beans [configurator,dataSource,dataSourceInitializer,transactionManager,org.springframework.
aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springfr
amework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,fileEnt
ityDao,fragmentDao,tagDao,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.cont
ext.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org
.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAn
notationProcessor,sessionFactory,org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0,org.springfra
mework.security.access.vote.AffirmativeBased#0,org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor
#0,org.springframework.security.methodSecurityMetadataSourceAdvisor,org.springframework.security.filterChains,org.springframework.
security.filterChainProxy,org.springframework.security.web.PortMapperImpl#0,org.springframework.security.web.PortResolverImpl#0,or
g.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0,org.springframework.security.authentication.Pr
oviderManager#0,org.springframework.security.web.context.HttpSessionSecurityContextRepository#0,org.springframework.security.web.a
uthentication.session.SessionFixationProtectionStrategy#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#0,
org.springframework.security.access.vote.AffirmativeBased#1,org.springframework.security.web.access.intercept.FilterSecurityInterc
eptor#0,org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator#0,org.springframework.security.authenticati
on.AnonymousAuthenticationProvider#0,org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices#0,org
.springframework.security.authentication.RememberMeAuthenticationProvider#0,org.springframework.security.web.authentication.www.Ba
sicAuthenticationEntryPoint#0,org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0,org.springfra
mework.security.userDetailsServiceFactory,org.springframework.security.web.DefaultSecurityFilterChain#0,org.springframework.securi
ty.authentication.dao.DaoAuthenticationProvider#0,org.springframework.security.authentication.DefaultAuthenticationEventPublisher#
0,org.springframework.security.authenticationManager,cvz-user-service,encoder,org.springframework.context.annotation.Configuration
ClassPostProcessor.importAwareProcessor]; root of factory hierarchy>
ERROR [web.context.ContextLoader] -
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurator' defined in ServletContext re
source [/WEB-INF/spring/root-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstant
iationException: Could not instantiate bean class [com.civilizer.config.Configurator]: Constructor threw exception; nested excepti
on is java.lang.NullPointerException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBea
nFactory.java:1037)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapable
BeanFactory.java:983)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFa
ctory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFact
ory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:2
23)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactor
y.java:628)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationConte
xt.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:801)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:499)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:792)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:337)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:742)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:399)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:366)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.civilizer.extra.tools.Launcher.startServer(Unknown Source)
at com.civilizer.extra.tools.Launcher.main(Unknown Source)
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.civilizer.config.Configurat
or]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBea
nFactory.java:1030)
... 30 more
Caused by: java.lang.NullPointerException
at java.io.File.(Unknown Source)
at com.civilizer.config.Configurator.postSetupPrivateHome(Configurator.java:97)
at com.civilizer.config.Configurator.(Configurator.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
... 32 more
2015-10-31 17:42:26.981:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@2309bcda{/civilizer,[file://
/F:/CDBuffer/ToSort/civilizer.0.9.0.RC2%20(1)/civilizer/civilizer/, jar:file:///F:/CDBuffer/ToSort/civilizer.0.9.0.RC2%20(1)/civil
izer/civilizer/WEB-INF/lib/myfaces-impl-2.2.8.jar!/META-INF/resources, jar:file:///F:/CDBuffer/ToSort/civilizer.0.9.0.RC2%20(1)/ci
vilizer/civilizer/WEB-INF/lib/all-themes-1.0.9.jar!/META-INF/resources, jar:file:///F:/CDBuffer/ToSort/civilizer.0.9.0.RC2%20(1)/c
ivilizer/civilizer/WEB-INF/lib/myfaces-api-2.2.8.jar!/META-INF/resources, jar:file:///F:/CDBuffer/ToSort/civilizer.0.9.0.RC2%20(1)
/civilizer/civilizer/WEB-INF/lib/primefaces-5.2.jar!/META-INF/resources],STARTING}{F:\CDBuffer\ToSort\civilizer.0.9.0.RC2 (1)\civi
lizer\civilizer}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurator' defined in ServletContext re
source [/WEB-INF/spring/root-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstant
iationException: Could not instantiate bean class [com.civilizer.config.Configurator]: Constructor threw exception; nested excepti
on is java.lang.NullPointerException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBea
nFactory.java:1037)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapable
BeanFactory.java:983)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFa
ctory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFact
ory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:2
23)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactor
y.java:628)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationConte
xt.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:801)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:499)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:792)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:337)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:742)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:399)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:366)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.civilizer.extra.tools.Launcher.startServer(Unknown Source)
at com.civilizer.extra.tools.Launcher.main(Unknown Source)
Caused by:
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.civilizer.config.Configurator]: Constr
uctor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBea
nFactory.java:1030)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapable
BeanFactory.java:983)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFa
ctory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFact
ory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:2
23)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactor
y.java:628)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationConte
xt.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:801)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:499)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:792)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:337)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:742)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:399)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:366)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.civilizer.extra.tools.Launcher.startServer(Unknown Source)
at com.civilizer.extra.tools.Launcher.main(Unknown Source)
Caused by:
java.lang.NullPointerException
at java.io.File.(Unknown Source)
at com.civilizer.config.Configurator.postSetupPrivateHome(Configurator.java:97)
at com.civilizer.config.Configurator.(Configurator.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBea
nFactory.java:1030)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapable
BeanFactory.java:983)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFa
ctory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFact
ory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:2
23)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactor
y.java:628)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationConte
xt.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:801)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:499)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:792)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:337)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:742)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:399)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:366)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.civilizer.extra.tools.Launcher.startServer(Unknown Source)
at com.civilizer.extra.tools.Launcher.main(Unknown Source)
2015-10-31 17:42:27.060:INFO:oejs.ServerConnector:main: Started ServerConnector@22313636{HTTP/1.1,[http/1.1]}{0.0.0.0:12450}
2015-10-31 17:42:27.061:INFO:oejs.Server:main: Started @11072ms
Launcher : [INFO] Civilizer is running... access to http://localhost:12450/civilizer/app/home

from civilizer.

suewonjp avatar suewonjp commented on July 21, 2024

Thank you for reporting...

I found out 2 facts from the log.

  1. Civilizer cannot create a directory on your file system.
  2. Civilizer cannot copy a default configuration file from its package to where it is supposed to be copied on your file system

As far as the log tells me, I guess the user privilege with which Cvz ran was very limited.

Cvz needs to create a directory [User directory]/.civilizer folder to store application options and user database and files.
So privilege to access user file system is necessary. ( administrator privilege is not necessary, though )

I can't disregard possibility of another issue, but it's my assumption for now.

Could you tell me what kind of user privilege was that?
Or did you run Cvz inside a sandbox system like some antivirus applications provide?

from civilizer.

suewonjp avatar suewonjp commented on July 21, 2024

I tested with a local user which is a more limited privilege on my Windows machine.
It worked OK.

Also I tested with a path similar to your case like 'CDBuffer\ToSort\civilizer.0.9.0.RC2 (1)' on a different drive than C:
It worked OK.

I think some issue might be out there, but currently not reproducible...

from civilizer.

BrunoWinck avatar BrunoWinck commented on July 21, 2024

User is mine, full administrator (I shouldn't, I know). I trusted you :)

The directory is created, but empty.

IMHO if your program is not running in it's directory it should have a setup program.

Waiting for your sandbox demo

from civilizer.

suewonjp avatar suewonjp commented on July 21, 2024

Mysterious, but interesting issue... :)

Please, would you stick to this issue a little bit more? (I know you're a lot busy, sorry...)

I see the following line from your log;

java.io.FileNotFoundException: Source >'F:\CDBuffer\ToSort\civilizer.0.9.0.RC2%20(1)\civilizer\civilizer\WEB-INF\classes\app-option
s.properties' does not exist

Can you see the file at the path?

I first thought Cvz couldn't find the file for some privilege problem...
Now that privilege doesn't seem its cause...so I come curious the file is really there.

_Also I've confirmed the file has been included in the zip file of the release..._

from civilizer.

suewonjp avatar suewonjp commented on July 21, 2024

IMHO if your program is not running in it's directory it should have a setup program.

I agree. It's already in my todo list, though...

from civilizer.

BrunoWinck avatar BrunoWinck commented on July 21, 2024

i think your problem is clear :) i'm sorry i won't go further after this. I suggest you show me on your computer via screen sharing, let's continue by DM on twitter

dir "F:\CDBuffer\ToSort\civilizer.0.9.0.RC2%20(1)\civilizer\civilizer\WEB-INF\classes\app-options
.properties"
The system cannot find the path specified.

Dir "F:\CDBuffer\ToSort\civilizer.0.9.0.RC2 (1)\civilizer\civilizer\WEB-INF\classes\app-options.p
roperties"

10/31/2015 10:42 AM 114 app-options.properties
1 File(s) 114 bytes

from civilizer.

suewonjp avatar suewonjp commented on July 21, 2024

The original issue which was caused by my mistake when building the package has been fixed.

And another issue that prevents from running Civilizer on Bruno's machine is not reproducible on all of my environments. (Windows, Mac, Linux anywhere)

And unfortunately, he is too busy to give me more clues about it.

So let me close this issue.

from civilizer.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.