Help, getting error message- WARNING: Unable to load server configuration from....

Hello,

I am learning JAVA and IntelliJ to boostmy skills.

I am using a book of examples, and I successfully ran the first web app tutorial, but now I am having issues on the other examples, and I'm sure my Tomcat/apache is setup correctly on Windows 10.

The problem seems to be the CATALINA_BASE path is incorrect.

Server Output from IntelliJ window
"C:\Java Lessons\apache-tomcat-8.0.26\bin\catalina.bat" run
[2015-09-29 06:48:20,174] Artifact Hello-World:war exploded: Server is not connected. Deploy is not available.
Using CATALINA_BASE:   "C:\Program Files\Apache Software Foundation\Tomcat 8.0"
Using CATALINA_HOME:   "C:\Java Lessons\apache-tomcat-8.0.26"
Using CATALINA_TMPDIR: "C:\Java Lessons\apache-tomcat-8.0.26\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_60"
Using CLASSPATH:       "C:\Java Lessons\apache-tomcat-8.0.26\bin\bootstrap.jar;C:\Java Lessons\apache-tomcat-8.0.26\bin\tomcat-juli.jar"
Connected to the target VM, address: '127.0.0.1:49551', transport: 'socket'
Sep 29, 2015 6:48:21 PM org.apache.catalina.startup.Catalina load
WARNING: Unable to load server configuration from [C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf\server.xml]
Sep 29, 2015 6:48:21 PM org.apache.catalina.startup.Catalina load
WARNING: Unable to load server configuration from [C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf\server.xml]
Sep 29, 2015 6:48:21 PM org.apache.catalina.startup.Catalina start
SEVERE: Cannot start server. Server instance is not configured.
Disconnected from the target VM, address: '127.0.0.1:49551', transport: 'socket'
Disconnected from server

The CATALINE_BASE should be the same as the CATALINA_HOME. There is no C:\Program Files\Apache Software Foundation\Tomcat 8.0 folder.

Is this an issue with IntelliJ or the catalina.bat.

Thank you
Bill

7 comments
Comment actions Permalink

You can specify CATALINA_BASE here:

http://i.imgur.com/2S7Rr7N.png

Also check that catalina.bat doesn't override it and that you don't override it via environment variables section of the run/debug configuration (Startup/Connection tab).

0
Comment actions Permalink

Thanks for the speedy response.

I do have the Tomcat base directory set to the same as the Tomcat Home in the applcation servers page.

I ven just added a system enviormentl varibles in Windows for both CATALINA_HOME and CATALINE_BASE with no effect.

Can this setting be inside the code in anyway, I am using a training sample from a book.

Thank you
Bill

0
Comment actions Permalink

Search your Tomcat folder and your project files for this path location to find out where it's coming from.

0
Comment actions Permalink

Hello,

Here is something interesting.

I ran the catalina.bat run command in the bin folder using a command prompt and got this output below.


C:\Java Lessons\apache-tomcat-8.0.26\bin>catalina.bat run
Using CATALINA_BASE:   "C:\Java Lessons\apache-tomcat-8.0.26"
Using CATALINA_HOME:   "C:\Java Lessons\apache-tomcat-8.0.26"
Using CATALINA_TMPDIR: "C:\Java Lessons\apache-tomcat-8.0.26\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_60"
Using CLASSPATH:       "C:\Java Lessons\apache-tomcat-8.0.26\bin\bootstrap.jar;C:\Java Lessons\apache-tomcat-8.0.26\bin\tomcat-juli.jar"


So somehow IntelliJ is changing the Catalina_base setting.


I'm going to try and edit the catalina.bat file to FORCE the correct path. Its not right, but I need to move forward.


Thank you
Bill

0
Comment actions Permalink

Great call, they seem to be in the workspace.xml file under .idea.


I'm not sure what the workspace.xml is for, but it seems to have many settings.

I'm new to both JAVA and IntelliJ, should I just remove the entries.

Thank you
Bill

0
Comment actions Permalink

workspace.xml contains your run/debug configurations, so it could be set somewhere in your Tomcat run/debug configuration.

Attach this file so that we can tell better.

0
Comment actions Permalink

Serge ,

I appreciate the quick responses!

The workspace.xml located in the .idea folder of my web application was the culprit.

I'm using the book, Wrox Professional Java for Web applications and downloaded the chapters, and loaded them directly into IntelliJ.

The author suggests that folder and somehow was hard coded it into the workspace.xml. I just replaced the wrong folder with the correct folder in the value fields and it is now working fine.

I must say I learned more about Tomcat, IntelliJ and ANT from the troubleshooting than I have in the first 2 chapters of the book.

Thanks for you help.

Bill

0

Please sign in to leave a comment.