aspose file tools*
The moose likes Tomcat and the fly likes Error installing Tomcat (linux) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Error installing Tomcat (linux)" Watch "Error installing Tomcat (linux)" New topic
Author

Error installing Tomcat (linux)

michael julian
Greenhorn

Joined: Jun 25, 2012
Posts: 2
I am using terminal to install Tomcat 6 on my mac, so basically installing it on Linux. I get an error message when I check the logs which I cannot find how to solve anywhere. It seems like a similar message that some people have had for which the solution was to change the encoding of tomcat-users.xml to utf-8 however when I go to the file it is already set to that format. The log file is as follows:



INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Jun 26, 2012 9:57:29 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 26, 2012 9:57:29 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1745 ms
Jun 26, 2012 9:57:30 AM org.apache.tomcat.util.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 40 column 1: XML document structures must start and end within the same entity.
org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.endEntity(XMLDocumentFragmentScannerImpl.java:905)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.end
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10033
    
163

Michael, welcome to the forums!

Is that the entire exception stacktrace? If not, can you post the entire stacktrace? The error message doesn't mention the file name it is trying to parse, so maybe the entire stacktrace might give a hint.


[My Blog] [JavaRanch Journal]
michael julian
Greenhorn

Joined: Jun 25, 2012
Posts: 2
I managed to fix it, it turns out I had the wrong path to my Java home.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error installing Tomcat (linux)