Hello everyone!

I'm trying to deploy DSpace through Tomcat 9 in NetBeans, but I am getting 
a log4j error.

*log4j:ERROR Could not read configuration file from URL 
[file:/C:/Program%20Files/Tomcat%209.0/bin/$%7Bdspace.dir%7D/config/log4j-solr.properties]*

Where can I change the log4j path to point to the right directory? My 
localhost:8080/solr deploys but gets an HTTP 500 Internal Server Error

Thank you in advance.

Best regards,
KC Roa


14-Feb-2018 12:00:03.507 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDescriptor Deploying 
configuration descriptor [C:\Program Files\Tomcat 
9.0\conf\Catalina\localhost\solr.xml]
14-Feb-2018 12:00:46.703 INFO [main] 
org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned 
for TLDs yet contained no TLDs. Enable debug logging for this logger for a 
complete list of JARs that were scanned but no TLDs were found in them. 
Skipping unneeded JARs during scanning can improve startup time and JSP 
compilation time.
log4j:ERROR Could not read configuration file from URL 
[file:/C:/Program%20Files/Tomcat%209.0/bin/$%7Bdspace.dir%7D/config/log4j-solr.properties].
java.io.FileNotFoundException: C:\Program Files\Tomcat 
9.0\bin\${dspace.dir}\config\log4j-solr.properties (The system cannot find 
the path specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at 
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at 
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:557)
at 
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:415)
at 
org.dspace.solr.filters.ConfigureLog4jListener.contextInitialized(ConfigureLog4jListener.java:79)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4643)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5105)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:740)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:716)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:619)
at 
org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1829)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at 
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:530)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1575)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at 
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:964)
at 
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at 
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)
at 
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at 
org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at 
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:671)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
log4j:ERROR Ignoring configuration file 
[file:/C:/Program%20Files/Tomcat%209.0/bin/$%7Bdspace.dir%7D/config/log4j-solr.properties].
log4j:WARN No appenders could be found for logger 
(org.apache.solr.client.solrj.impl.HttpClientUtil).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for 
more info.
14-Feb-2018 12:00:56.948 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of 
configuration descriptor [C:\Program Files\Tomcat 
9.0\conf\Catalina\localhost\solr.xml] has finished in [53,441] ms
14-Feb-2018 12:00:56.948 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web 
application directory [C:\Program Files\Tomcat 9.0\webapps\docs]
14-Feb-2018 12:00:57.058 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web 
application directory [C:\Program Files\Tomcat 9.0\webapps\docs] has 
finished in [110] ms
14-Feb-2018 12:00:57.058 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web 
application directory [C:\Program Files\Tomcat 9.0\webapps\examples]
14-Feb-2018 12:00:59.193 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web 
application directory [C:\Program Files\Tomcat 9.0\webapps\examples] has 
finished in [2,135] ms
14-Feb-2018 12:00:59.209 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web 
application directory [C:\Program Files\Tomcat 9.0\webapps\host-manager]
14-Feb-2018 12:00:59.459 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web 
application directory [C:\Program Files\Tomcat 9.0\webapps\host-manager] 
has finished in [250] ms
14-Feb-2018 12:00:59.475 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web 
application directory [C:\Program Files\Tomcat 9.0\webapps\manager]
14-Feb-2018 12:00:59.740 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web 
application directory [C:\Program Files\Tomcat 9.0\webapps\manager] has 
finished in [265] ms
14-Feb-2018 12:00:59.756 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web 
application directory [C:\Program Files\Tomcat 9.0\webapps\ROOT]
14-Feb-2018 12:01:00.287 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web 
application directory [C:\Program Files\Tomcat 9.0\webapps\ROOT] has 
finished in [547] ms
14-Feb-2018 12:01:00.303 INFO [main] 
org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler 
["http-nio-8080"]
14-Feb-2018 12:01:00.568 INFO [main] 
org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler 
["ajp-nio-8009"]
14-Feb-2018 12:01:00.709 INFO [main] 
org.apache.catalina.startup.Catalina.start Server startup in 57545 ms
14-Feb-2018 12:01:02.573 INFO [http-nio-8080-exec-16] 
org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/solr]

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to