You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by linuxChique <er...@thespicelands.com> on 2007/12/07 21:13:24 UTC

Configuring Tomcat on Fedora Core 8

I'm trying to configure Tomcat, and it's not working. I must be doing
something wrong, and I need your help.  I'm using it to run Jira. I start
Tomcat, but the page is blank. Here's my catalina log:


----------------------------------------------------------------------------------------------
Dec 7, 2007 2:07:12 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
/usr/java/jdk1.6.0_10/jre/lib/i386/client:/usr/java/jdk1.6.0_10/jre/lib/i386:/usr/java/jdk1.6.0_10/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Dec 7, 2007 2:07:12 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8090
Dec 7, 2007 2:07:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 663 ms
Dec 7, 2007 2:07:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 7, 2007 2:07:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.25
Dec 7, 2007 2:07:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 7, 2007 2:07:12 PM org.apache.tomcat.util.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 20 column 4: The element type "Context"
must be terminated by the matching end-tag "</Context>".
org.xml.sax.SAXParseException: The element type "Context" must be terminated
by the matching end-tag "</Context>".
        at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
        at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1546)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:583)
        at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Dec 7, 2007 2:07:12 PM org.apache.catalina.startup.HostConfig
deployDescriptor
SEVERE: Error deploying configuration descriptor jira-server.xml
org.xml.sax.SAXParseException: The element type "Context" must be terminated
by the matching end-tag "</Context>".
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
        at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1546)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:583)
        at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
----------------------------------------------------------------------------------------------


And my jira-server.xml. Note, the closing </Context> tag is present.


----------------------------------------------------------------------------------------------
<!--
A sample configuration file for Tomcat 5.5
Customize the docBase attribute, drop in your
$CATALINA_HOME/conf/Catalina/localhost/jira.xml
Note the JOTM dependencies; you'll need to copy various jars to Tomcat's
common/lib/ directory.
-->
<Context path="/jira" docBase="/var/www/html/jira" debug="0">

    <!-- NOTE: If you use a database other than hsqldb:
    * delete the minEvictableIdleTimeMillis and
timeBetweenEvictionRunsMillis attributes
    * change the database type in
atlassian-jira/WEB-INF/classes/entityengine.xml
    -->
    <Resource name="jdbc/JiraDS" auth="Container"
type="javax.sql.DataSource"
            username="jira"
            password="password"
            driverClassName="org.postgresql.Driver"
            url="jdbc:protocol:jira">
        </Resource>
    <Resource name="UserTransaction" auth="Container"
type="javax.transaction.UserTransaction"
    factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>
    <Manager className="org.apache.catalina.session.PersistentManager"
saveOnRestart="false"/>
</Context>
----------------------------------------------------------------------------------------------
-- 
View this message in context: http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14219699
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Martin Gainty [mailto:mgainty@hotmail.com] 
> Subject: Re: Configuring Tomcat on Fedora Core 8
> 
> display contents of jira-server.xml

The OP already did.  Read the whole message.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Martin Gainty [mailto:mgainty@hotmail.com] 
> Subject: Re: Configuring Tomcat on Fedora Core 8
> 
> display it here so everyone can see it

Everyone already has - look in the original message.  If you've lost
that, look in the archives.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Configuring Tomcat on Fedora Core 8

Posted by linuxChique <er...@thespicelands.com>.
I'm sorry, I don't understand.  It's in the original post... how is that not
"here?"

http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-p14219699.html

Is there a chance that you can't see it because it's all XML code?


mgainty wrote:
> 
> display it here so everyone can see it
> 
> M-
> 

-- 
View this message in context: http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14220581
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Configuring Tomcat on Fedora Core 8

Posted by Martin Gainty <mg...@hotmail.com>.
display it here so everyone can see it

M-

----- Original Message -----
From: "linuxChique" <er...@thespicelands.com>
To: <us...@tomcat.apache.org>
Sent: Friday, December 07, 2007 3:42 PM
Subject: Re: Configuring Tomcat on Fedora Core 8


>
> Hi, I've already included the contents of that file in my original post.
>
>
> mgainty wrote:
> >
> > display contents of jira-server.xml
> >
> > M-
> >
>
> --
> View this message in context:
http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14
220135
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Configuring Tomcat on Fedora Core 8

Posted by linuxChique <er...@thespicelands.com>.
Hi, I've already included the contents of that file in my original post.


mgainty wrote:
> 
> display contents of jira-server.xml
> 
> M-
> 

-- 
View this message in context: http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14220135
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Configuring Tomcat on Fedora Core 8

Posted by Martin Gainty <mg...@hotmail.com>.
display contents of jira-server.xml

M-
----- Original Message -----
From: "linuxChique" <er...@thespicelands.com>
To: <us...@tomcat.apache.org>
Sent: Friday, December 07, 2007 3:13 PM
Subject: Configuring Tomcat on Fedora Core 8


>
> I'm trying to configure Tomcat, and it's not working. I must be doing
> something wrong, and I need your help.  I'm using it to run Jira. I start
> Tomcat, but the page is blank. Here's my catalina log:
>
>
> --------------------------------------------------------------------------
--------------------
> Dec 7, 2007 2:07:12 PM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: The Apache Tomcat Native library which allows optimal performance in
> production environments was not found on the java.library.path:
>
/usr/java/jdk1.6.0_10/jre/lib/i386/client:/usr/java/jdk1.6.0_10/jre/lib/i386
:/usr/java/jdk1.6.0_10/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr
/lib
> Dec 7, 2007 2:07:12 PM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8090
> Dec 7, 2007 2:07:12 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 663 ms
> Dec 7, 2007 2:07:12 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Dec 7, 2007 2:07:12 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.25
> Dec 7, 2007 2:07:12 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Dec 7, 2007 2:07:12 PM org.apache.tomcat.util.digester.Digester fatalError
> SEVERE: Parse Fatal Error at line 20 column 4: The element type "Context"
> must be terminated by the matching end-tag "</Context>".
> org.xml.sax.SAXParseException: The element type "Context" must be
terminated
> by the matching end-tag "</Context>".
>         at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>         at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
> Source)
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
>         at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
> Source)
>         at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
> Source)
>         at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown
> Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
>         at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
>         at
> org.apache.tomcat.util.digester.Digester.parse(Digester.java:1546)
>         at
>
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:583)
>         at
>
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553
)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>         at
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
>         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> Dec 7, 2007 2:07:12 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> SEVERE: Error deploying configuration descriptor jira-server.xml
> org.xml.sax.SAXParseException: The element type "Context" must be
terminated
> by the matching end-tag "</Context>".
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
>         at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
>         at
> org.apache.tomcat.util.digester.Digester.parse(Digester.java:1546)
>         at
>
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:583)
>         at
>
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553
)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>         at
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
>         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> --------------------------------------------------------------------------
--------------------
>
>
> And my jira-server.xml. Note, the closing </Context> tag is present.
>
>
> --------------------------------------------------------------------------
--------------------
> <!--
> A sample configuration file for Tomcat 5.5
> Customize the docBase attribute, drop in your
> $CATALINA_HOME/conf/Catalina/localhost/jira.xml
> Note the JOTM dependencies; you'll need to copy various jars to Tomcat's
> common/lib/ directory.
> -->
> <Context path="/jira" docBase="/var/www/html/jira" debug="0">
>
>     <!-- NOTE: If you use a database other than hsqldb:
>     * delete the minEvictableIdleTimeMillis and
> timeBetweenEvictionRunsMillis attributes
>     * change the database type in
> atlassian-jira/WEB-INF/classes/entityengine.xml
>     -->
>     <Resource name="jdbc/JiraDS" auth="Container"
> type="javax.sql.DataSource"
>             username="jira"
>             password="password"
>             driverClassName="org.postgresql.Driver"
>             url="jdbc:protocol:jira">
>         </Resource>
>     <Resource name="UserTransaction" auth="Container"
> type="javax.transaction.UserTransaction"
>     factory="org.objectweb.jotm.UserTransactionFactory"
jotm.timeout="60"/>
>     <Manager className="org.apache.catalina.session.PersistentManager"
> saveOnRestart="false"/>
> </Context>
> --------------------------------------------------------------------------
--------------------
> --
> View this message in context:
http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14
219699
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: linuxChique [mailto:erin@thespicelands.com] 
> Subject: RE: Configuring Tomcat on Fedora Core 8
> 
> So what is the appBase in server.xml, and why can't I just 
> make it work?

The appBase attribute identifies the standard directory for all typical
deployments, with the default value of "webapps".  Web applications are
normally placed in directories (or .war files) immediately under
appBase; the appBase directory itself must not "be" a webapp.  For
example, in the standard Tomcat 5.5 download, you'll find the individual
applications ROOT, tomcat-docs, jsp-examples, servlet-examples, etc.,
all under the webapps directory.  (In Tomcat 6, the appBase also
includes the manager and host-manager apps, thanks to the simplified
classloader hierarchy.  By the way, why aren't you using Tomcat 6?)

Webapps can also be located outside of the appBase directory, which is
apparently how JIRA is designed to work.  In such a situation, there
must be a <Context> element in the file
conf/Catalina/[host]/[appname].xml, and that <Context> element must
contain a docBase attribute pointing to the location of the webapp.

The appBase attribute and any individual webapp's docBase must not have
the same value; this causes problems with the nested container
architecture of Tomcat.  Although things may appear to be functional
initially, internal data structures will be constructed improperly and
erratic operation is to be expected.

Web applications must conform to the directory structure defined in the
servlet spec (JSR 154); in particular a webapp is expected to have a
first-level WEB-INF directory containing lib and optional classes
directories that hold the jars and individual class files of the
application.  (Tomcat doesn't actually insist on the presence of
WEB-INF, so it can handle "applications" that consist only of static
content.)

> For that reason I would rather hack it together and it 
> work sooner than do it right and it take a lot longer.

Speaking from 38 years of experience in developing operating system
software: that approach may seem attractive, but it's just asking for
headaches, and will cost you a lot more time than getting it right from
the beginning.

Meanwhile, back to the problem at hand:  I would expect the build
mechanism for the full source download to include some means of creating
a .war file.  (For the non-source distribution, the build.xml target of
"war" generates it in the dist-tomcat directory under the JIRA home
directory.)  Run the necesary script, find the .war file, and update
your docBase attribute in the jira.xml <Context> element to point to the
.war file.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by linuxChique <er...@thespicelands.com>.
I assume you mean the regular version. I was able to get the regular version
working quite quickly as well, unfortunately, I have to have access to the
source code, so I'm not able to use that version.  All those other things in
the /var/www/html directory came with Jira, with the exception of "back,"
and that is just my backup of the precompiled version of Jira.

So what is the appBase in server.xml, and why can't I just make it work?  I
do not plan to serve anything else off this machine with Tomcat, and this
machine is only my development env. For that reason I would rather hack it
together and it work sooner than do it right and it take a lot longer. I'd
rather spend my time developing and getting it working on the production
machine. When I had the appBase set to my Jira directory, it worked. Is
there any reason other than the theoretical correctness or serving other
apps that I shouldn't just change it back?

Erin


Caldarale, Charles R wrote:
> 
> Just for grins, I downloaded and installed JIRA, and got it to run with
> about 15 minutes of downloading and fiddling (mostly figuring out which
> JOTM jars it really needed).
> 

-- 
View this message in context: http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tp14219699p14235020.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: linuxChique [mailto:erin@thespicelands.com] 
> Subject: RE: Configuring Tomcat on Fedora Core 8
> 
> I'm installing Jira from source to develop it, so I'm not 
> using the precompiled version that doesn't include the 
> src/ directory.  

I still wonder if the src directory will contain the jars and classes
needed to actually run the thing, unless the structure of the full
source download is quite different from the binary distribution.

> I untarred Jira into /var/www/html and haven't changed any of
> the directory structure, except that I moved all the contents 
> of the top-level directory, atlassian-jira-source-3.11, directly
> into /var/www/html/.

It probably would be better to leave it one directory further down,
since /var/www/html may be used by other products (as already appears to
be the case on your system).

> As a sidenote question, should these files be owned by someone
> other than root for anything other than security purposes?

Definitely.  You should always keep root usage to an absolute minimum.

> Any chance Tomcat is refusing to find them because they are owned
> by root?

Don't think so - the permissions appear to allow read by any userid,
although when JIRA actually runs, it does need write access to some
areas in its home directory.

Just for grins, I downloaded and installed JIRA, and got it to run with
about 15 minutes of downloading and fiddling (mostly figuring out which
JOTM jars it really needed).  Here's the steps I followed:

1) Download the WAR/EAR version of JIRA.  (I don't ever want a 3rd-party
repackaged Tomcat.)

2) Did a "build war" to create the atlassian-jira-3.11.war webapp file.

3) Copied the jira.xml file from the dist-tomcat/tomcat-5.5 directory to
Tomcat's conf/Catalina/localhost directory.

4) Edited the jira.xml file to comment out the <Manager> element.

5) Downloaded and copied the latest hsqdlb.jar file to Tomcat's
common/lib directory.

6) Downloaded and copied the connector-1_5.jar, howl.jar, jotm.jar, and
jta-spec1_0_1.jar files from the latest JOTM distribution to Tomcat's
common/lib directory.

7) Started Tomcat.

8) Accessed JIRA via http://localhost:8080/jira and got the
configuration page.

The readme.txt file described most of the necessary steps, other than
figuring out what JOTM jars were really needed.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by linuxChique <er...@thespicelands.com>.
Oops, that was totally my fault. When I was testing the docBase thing, I
renamed ROOT and moved my Jira source into a new ROOT directory. When I
moved it back, I failed to move ROOT-back back to ROOT. So now I'm getting
the 404 error pages again.

I'm installing Jira from source to develop it, so I'm not using the
precompiled version that doesn't include the src/ directory.  I untarred
Jira into /var/www/html and haven't changed any of the directory structure,
except that I moved all the contents of the top-level directory,
atlassian-jira-source-3.11, directly into /var/www/html/.  My /var/www/html/
directory structure looks like this.  As a sidenote question, should these
files be owned by someone other than root for anything other than security
purposes? Any chance Tomcat is refusing to find them because they are owned
by root?

[root@localhost html]# ls -l
total 88
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 atlassian-cache-servlet
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 atlassian-core
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 atlassian-gzipfilter
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 atlassian-jdk-utilities
drwxr-xr-x 3 root root 4096 2007-11-30 21:48
atlassian-jira-enterprise-3.11-standalone
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 atlassian-ofbiz
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 atlassian-profiling
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 atlassian-renderer
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 atlassian-velocity
drwxr-xr-x 5 root root 4096 2007-11-30 17:12 back
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 bandana
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 bonnie
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 configurableobjects
drwxr-xr-x 9 root root 4096 2007-12-07 13:23 jira
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 johnson
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 mail
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 plugins
-rw-r--r-- 1 root root  950 2007-09-19 02:22 README.txt
drwxr-xr-x 4 root root 4096 2007-12-07 13:23 rpc-jira-plugin
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 scheduler
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 seraph
drwxr-xr-x 3 root root 4096 2007-11-30 17:11 trackback
[root@localhost html]# cd jira/
[root@localhost jira]# ls -l
total 276
-rw-r--r-- 1 root root 45773 2007-12-04 17:28 atlassian-jira.iml
-rw-r--r-- 1 root root 15669 2007-12-04 17:28 atlassian-jira.ipr
-rw-r--r-- 1 root root 29330 2007-12-04 17:37 atlassian-jira.iws
-rw-r--r-- 1 root root  4768 2007-12-02 15:35 build.properties
drwxr-xr-x 2 root root  4096 2007-12-02 00:00 issues
drwxr-xr-x 2 root root  4096 2007-11-30 17:11 licenses
-rw-r--r-- 1 root root 79994 2007-09-19 02:23 maven.xml
drwxr-xr-x 4 root root  4096 2007-12-02 15:35 modules
-rw-r--r-- 1 root root  2470 2007-09-19 02:41 project.properties
-rw-r--r-- 1 root root 52705 2007-09-19 02:23 project.xml
drwxr-xr-x 7 root root  4096 2007-12-04 12:48 src
drwxr-xr-x 7 root root  4096 2007-12-07 13:23 target
drwxr-xr-x 3 root root  4096 2007-12-01 13:58 tomcat
drwxr-xr-x 3 root root  4096 2007-12-01 13:58 tomcat4
[root@localhost jira]# cd src/
[root@localhost src]# ls -l
total 20
drwxr-xr-x 18 root root 4096 2007-09-19 02:41 etc
drwxr-xr-x  3 root root 4096 2007-09-19 02:41 java
drwxr-xr-x  6 root root 4096 2007-12-04 12:48 target
drwxr-xr-x  4 root root 4096 2007-09-19 02:41 test
drwxr-xr-x 13 root root 4096 2007-12-08 12:42 webapp
[root@localhost src]# cd webapp/
[root@localhost webapp]# ls -l
total 96
-rw-r--r--  1 root root 19353 2007-09-19 02:23 500page.jsp
-rw-r--r--  1 root root  1714 2007-09-19 02:23 bugzillasearch.jsp
drwxr-xr-x  2 root root  4096 2007-11-30 17:11 debug
drwxr-xr-x  3 root root  4096 2007-11-30 17:11 decorators
-rw-r--r--  1 root root   328 2007-09-19 02:23 default.jsp
-rw-r--r--  1 root root  2494 2007-09-19 02:23 favicon.ico
drwxr-xr-x  3 root root  4096 2007-11-30 17:11 func
drwxr-xr-x  7 root root  4096 2007-11-30 17:11 images
drwxr-xr-x 17 root root  4096 2007-11-30 17:11 includes
-rw-r--r--  1 root root   211 2007-09-19 02:23 login-error.jsp
-rw-r--r--  1 root root   203 2007-09-19 02:23 login.jsp
-rw-r--r--  1 root root   733 2007-09-19 02:23 logoutconfirm.jsp
-rw-r--r--  1 root root   942 2007-09-19 02:23 logout.jsp
drwxr-xr-x  3 root root  4096 2007-09-19 02:41 portlets
-rw-r--r--  1 root root   353 2007-09-19 02:23 robots.txt
drwxr-xr-x  7 root root  4096 2007-11-30 17:11 secure
drwxr-xr-x  3 root root  4096 2007-11-30 17:11 styles
drwxr-xr-x  5 root root  4096 2007-09-19 02:41 template
drwxr-xr-x  2 root root  4096 2007-11-30 17:11 views
drwxr-xr-x  4 root root  4096 2007-11-30 17:11 WEB-INF
[root@localhost webapp]# 




Caldarale, Charles R wrote:
> 
>> From: linuxChique [mailto:erin@thespicelands.com] 
>> Subject: RE: Configuring Tomcat on Fedora Core 8
>> 
>> Arg. Now it's broken again. No 404 pages, just blankness.
> 
> I suspect your docBase attribute for your <Context> element is still not
> correct.  It's unlikely that the application jars and classes are under
> a directory named "src".
> 
>> <Host name="localhost" appBase="webapps"
>>       unpackWARs="true" autoDeploy="true"
>>       xmlValidation="false" xmlNamespaceAware="false">
> 
> The above is correct, assuming you haven't damaged something under
> Tomcat's webapps directory.
> 
> Questions:
> 
> 1) What JIRA download are you using?
> 
> 2) When you untar'd (or unzipped) the JIRA download, where did you
> install it?
> 
> 3) Did you change any directory names in the untar'd JIRA directory
> tree?
> 
> 4) What, if anything, have you changed under the $CATALINA_HOME/webapps
> directory?
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14232266
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: linuxChique [mailto:erin@thespicelands.com] 
> Subject: RE: Configuring Tomcat on Fedora Core 8
> 
> Arg. Now it's broken again. No 404 pages, just blankness.

I suspect your docBase attribute for your <Context> element is still not
correct.  It's unlikely that the application jars and classes are under
a directory named "src".

> <Host name="localhost" appBase="webapps"
>       unpackWARs="true" autoDeploy="true"
>       xmlValidation="false" xmlNamespaceAware="false">

The above is correct, assuming you haven't damaged something under
Tomcat's webapps directory.

Questions:

1) What JIRA download are you using?

2) When you untar'd (or unzipped) the JIRA download, where did you
install it?

3) Did you change any directory names in the untar'd JIRA directory
tree?

4) What, if anything, have you changed under the $CATALINA_HOME/webapps
directory?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by linuxChique <er...@thespicelands.com>.
Arg. Now it's broken again. No 404 pages, just blankness.

server.xml:

      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
      <!--<Host name="localhost" appBase="/var/www/html/jira/src/webapp"-->
      <Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

Erin


Caldarale, Charles R wrote:
> 
>> I also found an appBase in server.xml that I changed
>> to /var/www/html/jira/src/webapp/
> 
> That was incorrect, and will get you in trouble at some point.  Put it
> back the way it was ("webapps").
> 

-- 
View this message in context: http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14231784
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: linuxChique [mailto:erin@thespicelands.com] 
> Subject: RE: Configuring Tomcat on Fedora Core 8
> 
> So my Context line looks like this now: <Context
> docBase="/var/www/html/jira/src/webapp/" debug="0">

That's probably correct, but without knowing your exact JIRA directory
structure, I can't say for sure.

> I also found an appBase in server.xml that I changed
> to /var/www/html/jira/src/webapp/

That was incorrect, and will get you in trouble at some point.  Put it
back the way it was ("webapps").

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by linuxChique <er...@thespicelands.com>.
So my Context line looks like this now: <Context
docBase="/var/www/html/jira/src/webapp/" debug="0"> I also found an appBase
in server.xml that I changed to /var/www/html/jira/src/webapp/, and it looks
like things are working now!  Thank you so much for your help.  I know I
couldn't have done this by myself!

-- 
View this message in context: http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14231330
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: linuxChique [mailto:erin@thespicelands.com] 
> Subject: RE: Configuring Tomcat on Fedora Core 8
> 
> But what I mean is, how do I know what the "root" directory 
> is for web serving purposes?

(Be careful of the term "root".  Tomcat requires that the default webapp
name for a given <Host> be named ROOT, so using the term in other
situations will undoubtedly lead to confusion.  You might want to refer
to it as the webapp's base directory.)

When a Tomcat webapp is installed in some location other than under the
<Host> appBase directory (default value of "webapps"), the docBase
attribute of the webapp's <Context> element must point to the location
in which the webapp is installed.  You can often identify the proper
directory by the presence of the WEB-INF directory immediately under the
webapp location.  In JIRA, this is conveniently (albeit somewhat
confusingly) named "webapp".  Your docBase attribute should be something
like:
  /var/www/html/???/atlassian-jira-standard-3.11/webapp
where ??? is whatever directory you expanded the tar file into and
assuming you used the standard path names from the download.

The path attribute should be removed from the <Context> element, since
the URI path is derived from the name of the .xml file in which the
<Context> is located.

> Is it related to the .jar file that maven created when I
> compiled the jsp code?

I have no idea, since I don't know what script you were using to compile
JSPs.  These are usually compiled as needed on demand, but can be
pre-compiled to avoid the one-time delay.  You certainly don't need to
if you're just getting started with this.

> Is it the directory default.jsp is in?

The JIRA download does include a default.jsp in its webapp directory; if
that's the one you're referring to, then yes.  There are three other
default.jsp files in various subdirectories of webapp, so if you're
referring to any of those, no.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by linuxChique <er...@thespicelands.com>.
It was jira-server.xml before I fixed it, but I saw an error message in the
log about /var/www/html/jira/jira-server not existing, and that filename was
the only instance of the phrase "jira-server" anywhere in the configuration,
so I changed the docBase from /var/www/html/jira to /var/www/html/ and the
filename to jira.xml and that error went away, so now it is jira.xml.

Inside jira.xml (the default one that came with Jira), is this line:
<Context path="/jira" docBase="/var/www/html/" debug="0">  That's what I
meant that I had changed. It was already in the default jira.xml that came
with Jira.

But what I mean is, how do I know what the "root" directory is for web
serving purposes? Is it related to the .jar file that maven created when I
compiled the jsp code? Is it the directory default.jsp is in?

Thanks,  Erin



Caldarale, Charles R wrote:
> 
> 
> You were referring to jira-server.xml, not jira.xml; which is it?
> 
> Normally, you do not specify either path or docBase attributes; it's the
> location of the webapp that determines the URI used to access it.
> 

-- 
View this message in context: http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14223699
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: linuxChique [mailto:erin@thespicelands.com] 
> Subject: RE: Configuring Tomcat on Fedora Core 8
> 
> So how do I know by looking at the directory structure of
> Jira what my docBase and path should be in jira.xml?

You were referring to jira-server.xml, not jira.xml; which is it?

Normally, you do not specify either path or docBase attributes; it's the
location of the webapp that determines the URI used to access it.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by linuxChique <er...@thespicelands.com>.
Great, thanks. Well, it looks like Tomcat is working properly now, but I'm
getting a 404 error, so I must have it configured to look in the wrong
directory, right?  So how do I know by looking at the directory structure of
Jira what my docBase and path should be in jira.xml?
-- 
View this message in context: http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14222167
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: linuxChique [mailto:erin@thespicelands.com] 
> Subject: RE: Configuring Tomcat on Fedora Core 8
> 
> I guess the thing is that I don't know what a 
> PersistentManager is or if I need it.

Again, to quote from the doc:

"In addition to the usual operations of creating and deleting sessions,
a PersistentManager has the capability to swap active (but idle)
sessions out to a persistent storage mechanism, as well as to save all
sessions across a normal restart of Tomcat."

http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html

> Should I use it?

If you don't know what it's for, that would be a good indication that
you shouldn't use it.  Just remove the <Manager> element and let the
default manager do its thing.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by linuxChique <er...@thespicelands.com>.
I guess the thing is that I don't know what a PersistentManager is or if I
need it. Or what file this configuration is stored in. Should I use it?

Erin


Caldarale, Charles R wrote:
> 
> To quote from the doc:
> 
> "In order to successfully use a PersistentManager, you must nest inside
> it a <Store> element, as described below."
> 
> http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html
> 
>  - Chuck
> 

-- 
View this message in context: http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14221809
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: linuxChique [mailto:erin@thespicelands.com] 
> Subject: RE: Configuring Tomcat on Fedora Core 8
> 
> Now I'm getting this, "No Store configured, persistence
> disabled,"

To quote from the doc:

"In order to successfully use a PersistentManager, you must nest inside
it a <Store> element, as described below."

http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by linuxChique <er...@thespicelands.com>.
Line 20 is a closing "Resource" tag. Now I see that it shouldn't be there,
because the tag is already closed with a slash. So that parsing problem is
fixed!  Now I'm getting this, "No Store configured, persistence disabled,"
and still a blank page in the browser. Thanks for your help, I really
appreciate it.

INFO: Initializing Coyote HTTP/1.1 on http-8090
Dec 7, 2007 3:38:44 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 739 ms
Dec 7, 2007 3:38:44 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 7, 2007 3:38:44 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.25
Dec 7, 2007 3:38:44 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 7, 2007 3:38:44 PM org.apache.catalina.session.PersistentManagerBase
start
SEVERE: No Store configured, persistence disabled
Dec 7, 2007 3:38:45 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8090
Dec 7, 2007 3:38:45 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 7, 2007 3:38:45 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32  config=null
Dec 7, 2007 3:38:45 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Dec 7, 2007 3:38:45 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1264 ms




Caldarale, Charles R wrote:
> 
> 
> Since the e-mail unfortunately reformatted the original, what exactly is
> on line 20?
> 
> Any possibility of embedded control characters or other strangeness that
> might throw off a parser?  (Look at the file with a hex editor.)
> 
> Is the one you posted the only jira-server.xml, or might another be
> lurking somewhere?
> 
> 

-- 
View this message in context: http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14221437
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Configuring Tomcat on Fedora Core 8

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: linuxChique [mailto:erin@thespicelands.com] 
> Subject: Configuring Tomcat on Fedora Core 8
> 
> Dec 7, 2007 2:07:12 PM 
> org.apache.tomcat.util.digester.Digester fatalError
> SEVERE: Parse Fatal Error at line 20 column 4: The element 
> type "Context"
> must be terminated by the matching end-tag "</Context>".

The XML appears o.k. from just a human scan of it, but there might be
something subtle in there.  You might also try running it through an XML
syntax checker just to be sure.

Since the e-mail unfortunately reformatted the original, what exactly is
on line 20?

Any possibility of embedded control characters or other strangeness that
might throw off a parser?  (Look at the file with a hex editor.)

Is the one you posted the only jira-server.xml, or might another be
lurking somewhere?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org