installling and running proctor webapp project

119 views
Skip to first unread message

Smit Jadhav

unread,
Mar 2, 2016, 4:55:52 AM3/2/16
to indeedeng-proctor-users
hi,
i have downloaded proctor webapp project from following link.

first i installed it using  mvn install - result is build successful.
when i run using following command it result in failure

java -Dconfig.dir="D:/smit/proctor/proctor-webapp-master/example-apache-config"  -jar target/dependency/webapp-runner.jar --context-xml example-apache-config/proctor-webapp.xml --expand-war target/proctor-webapp-1.0.0-SNAPSHOT.war

i am getting error as follows-

Mar 02, 2016 3:07:47 PM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '5' did not find a matching property.
Mar 02, 2016 3:07:48 PM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
Mar 02, 2016 3:07:51 PM org.apache.catalina.startup.ContextConfig validateSecurityRoles
INFO: WARNING: Security role name empty_role used in an <auth-constraint> without being defined in a <security-role>
Mar 02, 2016 3:07:51 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://tags.indeed.com/proctor is already defined
Mar 02, 2016 3:07:51 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Mar 02, 2016 3:07:51 PM org.apache.catalina.core.ApplicationContext log
INFO: Set web app root system property: 'proctor.root' = [D:\smit\proctor\proctor-webapp-master\target\tomcat.8080\webapps\expanded\]
Mar 02, 2016 3:07:51 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
Mar 02, 2016 3:08:02 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appProps' defined in class path resource [com/indeed/proctor/webapp/spring/applicationContext.xml]: Initializati
on of bean failed; nested exception is java.lang.IllegalArgumentException: Unable to find resource URL [file://D:/smit/proctor/proctor-webapp-master/example-apache-config/proctor-config.properties] sp
ecified by propertyPlaceholderResourceLocation



please help me resolving error.

thanks in advance.


matts

unread,
Mar 2, 2016, 12:27:32 PM3/2/16
to indeedeng-proctor-users
Hi, Smit -

I looks like the file URI constructed for the config.dir is incorrect.

file://D:/smit/proctor/proctor-webapp-master/example-apache-config/proctor-config.properties

should be
file:///D:/smit/proctor/proctor-webapp-master/example-apache-config/proctor-config.properties

to reference a different drive on Windows.


Feel free to create an issue (or, better, a merge request :) ) to change how that URI is constructed when reading.  In the meantime, you should be able to get the webapp running by running the webapp from the same drive as the configuration and using a Unix-style absolute path:
java -Dconfig.dir="/smit/proctor/proctor-webapp-master/example-apache-config"  -jar target/dependency/webapp-runner.jar --context-xml example-apache-config/proctor-webapp.xml --expand-war target/proctor-webapp-1.0.0-SNAPSHOT.war

If that does not work, please reply with details and we'll see what we can figure out.

Smit Jadhav

unread,
Mar 3, 2016, 12:43:13 AM3/3/16
to indeedeng-proctor-users
hi matts,

thanks for reply.
i tried 

java -Dconfig.dir="/smit/proctor/proctor-webapp-master/example-apache-config"  -jar target/dependency/webapp-runner.jar --context-xml example-apache-config/proctor-webapp.xml --expand-war target/proctor-webapp-1.0.0-SNAPSHOT.war

this command now initialization error i am getting as follows. webapp project is at D:\smit\proctor\proctor-webapp-master this path. please explain why initialization errors i am getting.

Mar 03, 2016 11:02:41 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'scheduledTasks' defined in URL [jar:file:/D:/smit/proctor/proctor-webapp-master/target/tomcat.8080/weba
pps/expanded/WEB-INF/lib/proctor-webapp-library-1.1.0.jar!/com/indeed/proctor/webapp/util/spring/ScheduledTasks.class]: Unsatisfied dependency expressed through constructor argument with index 1 of ty
pe [com.indeed.proctor.common.ProctorPromoter]: : Error creating bean with name 'proctorPromoter' defined in class path resource [com/indeed/proctor/webapp/spring/applicationContext.xml]: Cannot resol
ve reference to bean 'trunkStore' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'trunkStore' defined in
 class path resource [com/indeed/proctor/webapp/spring/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factor
y method [public com.indeed.proctor.store.ProctorStore com.indeed.proctor.webapp.db.SvnProctorStoreFactory.getTrunkStore()] threw exception; nested exception is java.lang.IllegalStateException: Could
not create directory : C:\Users\syntel\AppData\Local\Temp\trunk\matrices; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'proctorPromoter' d
efined in class path resource [com/indeed/proctor/webapp/spring/applicationContext.xml]: Cannot resolve reference to bean 'trunkStore' while setting constructor argument; nested exception is org.sprin
gframework.beans.factory.BeanCreationException: Error creating bean with name 'trunkStore' defined in class path resource [com/indeed/proctor/webapp/spring/applicationContext.xml]: Instantiation of be
an failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.indeed.proctor.store.ProctorStore com.indeed.proctor.webapp.db.SvnProctorStore
Factory.getTrunkStore()] threw exception; nested exception is java.lang.IllegalStateException: Could not create directory : C:\Users\syntel\AppData\Local\Temp\trunk\matrices
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196) 


Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'proctorPromoter' defined in class path resource [com/indeed/proctor/webapp/spring/applicationContext.
xml]: Cannot resolve reference to bean 'trunkStore' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'trun
kStore' defined in class path resource [com/indeed/proctor/webapp/spring/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStor
eException: Factory method [public com.indeed.proctor.store.ProctorStore com.indeed.proctor.webapp.db.SvnProctorStoreFactory.getTrunkStore()] threw exception; nested exception is java.lang.IllegalStat
eException: Could not create directory : C:\Users\syntel\AppData\Local\Temp\trunk\matrices


Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'trunkStore' defined in class path resource [com/indeed/proctor/webapp/spring/applicationContext.xml]:
 Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.indeed.proctor.store.ProctorStore com.indeed.proctor.webap
p.db.SvnProctorStoreFactory.getTrunkStore()] threw exception; nested exception is java.lang.IllegalStateException: Could not create directory : C:\Users\syntel\AppData\Local\Temp\trunk\matrices
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581)



thanks 
smit
Reply all
Reply to author
Forward
0 new messages