[
https://issues.jboss.org/browse/ISPN-2793?page=com.atlassian.jira.plugin....
]
Michal Linhard updated ISPN-2793:
---------------------------------
Priority: Minor (was: Major)
REST Server WAR default config
------------------------------
Key: ISPN-2793
URL:
https://issues.jboss.org/browse/ISPN-2793
Project: Infinispan
Issue Type: Feature Request
Components: Server
Affects Versions: 5.2.0.Final
Reporter: Michal Linhard
Assignee: Mircea Markus
Priority: Minor
REST Server war file comes with this web.xml
{code}
<!-- Specify your cache configuration file -->
<init-param>
<param-name>infinispan.config</param-name>
<param-value>config-samples/sample.xml</param-value>
</init-param>
{code}
that depend's on certain file to exist, otherwise the deployment will throw an
exception:
{code}
09:20:14,148 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/infinispan]] (MSC
service thread 1-2) Servlet /infinispan threw load() exception:
java.io.FileNotFoundException: config-samples/sample.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method) [rt.jar:1.6.0_37]
at java.io.FileInputStream.<init>(FileInputStream.java:120) [rt.jar:1.6.0_37]
at java.io.FileInputStream.<init>(FileInputStream.java:79) [rt.jar:1.6.0_37]
at org.infinispan.util.AbstractFileLookup.lookupFileStrict(AbstractFileLookup.java:83)
[infinispan-core-5.2.0-SNAPSHOT.jar:5.2.0-SNAPSHOT]
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:326)
[infinispan-core-5.2.0-SNAPSHOT.jar:5.2.0-SNAPSHOT]
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:313)
[infinispan-core-5.2.0-SNAPSHOT.jar:5.2.0-SNAPSHOT]
at org.infinispan.rest.StartupListener.init(StartupListener.scala:59) [classes:]
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)
[jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)
[jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)
[jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)
[jbossweb-7.0.17.Final-redhat-1.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:89)
[jboss-as-web-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[rt.jar:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[rt.jar:1.6.0_37]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]
{code}
What about commenting this out, so that default config is used.
I'll do the pull if you agree..
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira