I tried a new approach. Uploaded war file of an empty Magnolia public
instance then renamed it to magnoliaPublic.war and put it into webapps.
restarted Tomcat. I exepected to be able to see magnolia page when I
typed htttp://www.cetle.info/magnoliaPublic. But is not working.
The content of the logfile is the following. What should I do make it
working?
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
Created MBeanServer with ID: -lag0ab:fki2d5t2.0:h1408713.stratoserver.net:1
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
Created MBeanServer with ID: -k92gq9:fki2dask.0:h1408713.stratoserver.net:1
30-aug-08 12:01:20 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/lib/gcj-4.1.2
30-aug-08 12:01:20 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
30-aug-08 12:01:20 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1165 ms
30-aug-08 12:01:20 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
30-aug-08 12:01:20 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
30-aug-08 12:01:20 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
30-aug-08 12:01:21 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
30-aug-08 12:01:21 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive magnoliaPublic.war
DEBUG info.magnolia.cms.servlets.MgnlServletContextListener
MgnlServletContextListener.java(contextInitialized:164) 30.08.2008
12:01:22 rootPath is /usr/share/tomcat5/webapps/magnoliaPublic, webapp
is magnoliaPublic
DEBUG info.magnolia.cms.servlets.MgnlServletContextListener
MgnlServletContextListener.java(getPropertiesFilesString:186) 30.08.2008
12:01:22 magnolia.initialization.file value in web.xml is undefined,
falling back to default:
WEB-INF/config/${servername}/${webapp}/magnolia.properties,WEB-INF/config/${servername}/magnolia.properties,WEB-INF/config/${webapp}/magnolia.properties,WEB-INF/config/default/magnolia.properties,WEB-INF/config/magnolia.properties
INFO info.magnolia.cms.beans.config.PropertiesInitializer
PropertiesInitializer.java(loadPropertiesFile:196) 30.08.2008 12:01:24
Loading configuration at
/usr/share/tomcat5/webapps/magnoliaPublic/WEB-INF/config/default/magnolia.properties
INFO info.magnolia.cms.beans.config.PropertiesInitializer
PropertiesInitializer.java(loadPropertiesFile:196) 30.08.2008 12:01:24
Loading configuration at
/usr/share/tomcat5/webapps/magnoliaPublic/WEB-INF/config/magnoliaPublic/magnolia.properties
Initializing Log4J
Initializing Log4J from [WEB-INF/config/default/log4j.xml]
---------------------------------------------
MAGNOLIA LICENSE
---------------------------------------------
Version number : 3.6.1
Build : 29. July 2008
Edition : Community Edition
Provider : Magnolia International ([EMAIL PROTECTED])
INFO info.magnolia.cms.beans.config.ConfigLoader
ConfigLoader.java(load:121) 30.08.2008 12:01:24 Initializing content
repositories
ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/magnoliaPublic]
?(listenerStart:?) 30.08.2008 12:01:24 Exception sending context
initialized event to listener instance of class
info.magnolia.cms.servlets.MgnlServletContextListener
java.lang.RuntimeException: org.jdom.input.JDOMParseException: Error on
line -1: Premature end of file.
at
info.magnolia.cms.util.WorkspaceXmlUtil.getWorkspaceNamesWithIndexer(WorkspaceXmlUtil.java:85)
at
info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:123)
at
info.magnolia.cms.beans.config.ConfigLoader.<init>(ConfigLoader.java:107)
at
info.magnolia.cms.servlets.MgnlServletContextListener$1.exec(MgnlServletContextListener.java:178)
at
info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:411)
at
info.magnolia.cms.servlets.MgnlServletContextListener.startServer(MgnlServletContextListener.java:176)
at
info.magnolia.cms.servlets.MgnlServletContextListener.contextInitialized(MgnlServletContextListener.java:172)
at
org.apache.catalina.core.StandardContext.listenerStart(catalina-5.5.23.jar.so)
at org.apache.catalina.core.StandardContext.start(catalina-5.5.23.jar.so)
at
org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.23.jar.so)
at
org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.23.jar.so)
at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.23.jar.so)
at
org.apache.catalina.startup.HostConfig.deployWAR(catalina-5.5.23.jar.so)
at
org.apache.catalina.startup.HostConfig.deployWARs(catalina-5.5.23.jar.so)
at
org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.23.jar.so)
at org.apache.catalina.startup.HostConfig.start(catalina-5.5.23.jar.so)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(catalina-5.5.23.jar.so)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.23.jar.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.so)
at org.apache.catalina.core.StandardHost.start(catalina-5.5.23.jar.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.so)
at org.apache.catalina.core.StandardEngine.start(catalina-5.5.23.jar.so)
at org.apache.catalina.core.StandardService.start(catalina-5.5.23.jar.so)
at org.apache.catalina.core.StandardServer.start(catalina-5.5.23.jar.so)
at org.apache.catalina.startup.Catalina.start(catalina-5.5.23.jar.so)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so)
at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)
Caused by: org.jdom.input.JDOMParseException: Error on line -1:
Premature end of file.
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:468)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:810)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:789)
at
info.magnolia.cms.util.WorkspaceXmlUtil.getWorkspaceNamesWithIndexer(WorkspaceXmlUtil.java:80)
...27 more
Caused by: org.xml.sax.SAXParseException: Premature end of file.
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(xerces-j2-2.7.1.jar.so)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(xerces-j2-2.7.1.jar.so)
at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(xerces-j2-2.7.1.jar.so)
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.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
...30 more
30-aug-08 12:01:24 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
30-aug-08 12:01:24 org.apache.catalina.core.StandardContext start
SEVERE: Context [/magnoliaPublic] startup failed due to previous errors
INFO info.magnolia.cms.beans.config.ShutdownManager
ShutdownManager.java(execute:128) 30.08.2008 12:01:24 Executing
shutdown tasks
Shutting down Log4J
WARN: The method class
org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
WARN: Please see http://www.slf4j.org/codes.html for an explanation.
30-aug-08 12:01:25 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
30-aug-08 12:01:25 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
30-aug-08 12:01:25 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/238 config=null
30-aug-08 12:01:25 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
30-aug-08 12:01:25 org.apache.catalina.startup.Catalina start
INFO: Server startup in 5082 ms
Adrian Butnaru schreef:
Maybe the content of the log helps:
[EMAIL PROTECTED] tomcat5]# cp -rf public/* tempo/
[EMAIL PROTECTED] tomcat5]#
[EMAIL PROTECTED] tomcat5]# ls temp
[EMAIL PROTECTED] tomcat5]# ls tempo
docroot logs NOTICE.txt repositories tmp
LICENSE.txt META-INF README.txt templates WEB-INF
[EMAIL PROTECTED] tomcat5]# ls public/
docroot logs NOTICE.txt repositories tmp
LICENSE.txt META-INF README.txt templates WEB-INF
[EMAIL PROTECTED] tomcat5]# rm -rf public/
[EMAIL PROTECTED] tomcat5]# ls
author bin common conf logs server shared temp tempo webapps
work
[EMAIL PROTECTED] tomcat5]# mkdir public
[EMAIL PROTECTED] tomcat5]# ls
author common logs server temp webapps
bin conf public shared tempo work
[EMAIL PROTECTED] tomcat5]# cd public/
[EMAIL PROTECTED] public]# ls
[EMAIL PROTECTED] public]# cd ..
[EMAIL PROTECTED] tomcat5]# cd public/
[EMAIL PROTECTED] public]# mkdir ROOT
[EMAIL PROTECTED] public]# ls
ROOT
[EMAIL PROTECTED] public]# cd ..
[EMAIL PROTECTED] tomcat5]# cp -rf temp
temp/ tempo/
[EMAIL PROTECTED] tomcat5]# cp -rf temp
temp/ tempo/
[EMAIL PROTECTED] tomcat5]# cp -rf tempo/* public/ROOT/
[EMAIL PROTECTED] tomcat5]# ls
author common logs server temp webapps
bin conf public shared tempo work
[EMAIL PROTECTED] tomcat5]# cd public/
[EMAIL PROTECTED] public]# ls
ROOT
[EMAIL PROTECTED] public]# cd ROOT/
[EMAIL PROTECTED] ROOT]# ls
docroot logs NOTICE.txt repositories tmp
LICENSE.txt META-INF README.txt templates WEB-INF
[EMAIL PROTECTED] ROOT]# ls
docroot logs NOTICE.txt repositories tmp
LICENSE.txt META-INF README.txt templates WEB-INF
[EMAIL PROTECTED] ROOT]# cd ..
[EMAIL PROTECTED] public]# ls
ROOT
[EMAIL PROTECTED] public]# cd ..
[EMAIL PROTECTED] tomcat5]# ls
author common logs server temp webapps
bin conf public shared tempo work
[EMAIL PROTECTED] tomcat5]# rm -rf tempo/
[EMAIL PROTECTED] tomcat5]# su -
[EMAIL PROTECTED] ~]# service tomcat5 restart
Stopping tomcat5: [ OK ]
Starting tomcat5: [ OK ]
[EMAIL PROTECTED] ~]# ls
[EMAIL PROTECTED] ~]# cd ..
[EMAIL PROTECTED] /]# ls
aquota.group dev lib private-backup selinux usr
aquota.user etc media proc srv var
bin home mnt root sys
boot hs_err_pid32156.log opt sbin tmp
[EMAIL PROTECTED] /]# cd usr/
[EMAIL PROTECTED] usr]# ls
bin games java lib local share tmp
etc include kerberos libexec sbin src
[EMAIL PROTECTED] usr]# cd share/
[EMAIL PROTECTED] share]# cd tomcat5/
[EMAIL PROTECTED] tomcat5]# ls
author bin common conf logs public server shared temp
webapps work
[EMAIL PROTECTED] tomcat5]# cd webapps/
[EMAIL PROTECTED] webapps]# ls
manager ROOT
[EMAIL PROTECTED] webapps]# cd ..
[EMAIL PROTECTED] tomcat5]# cd co
common/ conf/
[EMAIL PROTECTED] tomcat5]# cd conf/
[EMAIL PROTECTED] conf]# ls
Catalina jkconfig.manifest tomcat-users.xml
catalina.policy logging.properties uriworkermap.properties
catalina.properties server-minimal.xml web.xml
context.xml server.xml workers2.properties
jk2.manifest shm.manifest workers2.properties.minimal
jk2.properties tomcat5.conf workers.properties
jkconf.ant.xml tomcat-jk2.manifest workers.properties.minimal
[EMAIL PROTECTED] conf]# cd Catalina/
[EMAIL PROTECTED] Catalina]# ls
author.cetle.info localhost www.cetle.info
[EMAIL PROTECTED] Catalina]# cd www.cetle.info/
[EMAIL PROTECTED] www.cetle.info]# ls
ROOT.xml
[EMAIL PROTECTED] www.cetle.info]# vi ROOT.xml
[EMAIL PROTECTED] www.cetle.info]# su -
[EMAIL PROTECTED] ~]# service tomcat5 restart
Stopping tomcat5: [ OK ]
Starting tomcat5: [ OK ]
[EMAIL PROTECTED] ~]# ls
[EMAIL PROTECTED] ~]# cd ..
[EMAIL PROTECTED] /]# ls
aquota.group dev lib private-backup selinux usr
aquota.user etc media proc srv var
bin home mnt root sys
boot hs_err_pid32156.log opt sbin tmp
[EMAIL PROTECTED] /]# exit
logout
[EMAIL PROTECTED] www.cetle.info]# ls
ROOT.xml
[EMAIL PROTECTED] www.cetle.info]# cd ..
[EMAIL PROTECTED] Catalina]# ls
author.cetle.info localhost www.cetle.info
[EMAIL PROTECTED] Catalina]# cd ...
-bash: cd: ...: Bestand of map bestaat niet
[EMAIL PROTECTED] Catalina]# ls
author.cetle.info localhost www.cetle.info
[EMAIL PROTECTED] Catalina]# cd ..
[EMAIL PROTECTED] conf]# ls
Catalina jkconfig.manifest tomcat-users.xml
catalina.policy logging.properties uriworkermap.properties
catalina.properties server-minimal.xml web.xml
context.xml server.xml workers2.properties
jk2.manifest shm.manifest workers2.properties.minimal
jk2.properties tomcat5.conf workers.properties
jkconf.ant.xml tomcat-jk2.manifest workers.properties.minimal
[EMAIL PROTECTED] conf]# vi c
catalina.policy catalina.properties context.xml
[EMAIL PROTECTED] conf]# vi catalina.properties
[EMAIL PROTECTED] conf]# ls
Catalina jkconfig.manifest tomcat-users.xml
catalina.policy logging.properties uriworkermap.properties
catalina.properties server-minimal.xml web.xml
context.xml server.xml workers2.properties
jk2.manifest shm.manifest workers2.properties.minimal
jk2.properties tomcat5.conf workers.properties
jkconf.ant.xml tomcat-jk2.manifest workers.properties.minimal
[EMAIL PROTECTED] conf]# cd ..
[EMAIL PROTECTED] tomcat5]# ls
author bin common conf logs public server shared temp
webapps work
[EMAIL PROTECTED] tomcat5]# ls
author bin common conf logs public server shared temp
webapps work
[EMAIL PROTECTED] tomcat5]# cd conf/
[EMAIL PROTECTED] conf]# ls
Catalina jkconfig.manifest tomcat-users.xml
catalina.policy logging.properties uriworkermap.properties
catalina.properties server-minimal.xml web.xml
context.xml server.xml workers2.properties
jk2.manifest shm.manifest workers2.properties.minimal
jk2.properties tomcat5.conf workers.properties
jkconf.ant.xml tomcat-jk2.manifest workers.properties.minimal
[EMAIL PROTECTED] conf]# vi server
[EMAIL PROTECTED] conf]# vi server.xml
[EMAIL PROTECTED] conf]# su -
[EMAIL PROTECTED] ~]# service squid restart
Stoppen van squid: . [ OK ]
Starten van squid: . [ OK ]
[EMAIL PROTECTED] ~]# ls
[EMAIL PROTECTED] ~]# exit
logout
[EMAIL PROTECTED] conf]# ls
Catalina jkconfig.manifest tomcat-users.xml
catalina.policy logging.properties uriworkermap.properties
catalina.properties server-minimal.xml web.xml
context.xml server.xml workers2.properties
jk2.manifest shm.manifest workers2.properties.minimal
jk2.properties tomcat5.conf workers.properties
jkconf.ant.xml tomcat-jk2.manifest workers.properties.minimal
[EMAIL PROTECTED] conf]# cd ..
[EMAIL PROTECTED] tomcat5]# ls
author bin common conf logs public server shared temp
webapps work
[EMAIL PROTECTED] tomcat5]# cd logs/
[EMAIL PROTECTED] logs]# ls
catalina.out
[EMAIL PROTECTED] logs]# vi catalina.out
[EMAIL PROTECTED] logs]# ls
catalina.out
[EMAIL PROTECTED] logs]# cd ..
[EMAIL PROTECTED] tomcat5]# ls
author bin common conf logs public server shared temp
webapps work
[EMAIL PROTECTED] tomcat5]# cd webapps/
[EMAIL PROTECTED] webapps]# ls
manager ROOT
[EMAIL PROTECTED] webapps]# cd ..
[EMAIL PROTECTED] tomcat5]# cd public/
[EMAIL PROTECTED] public]# ls
ROOT
[EMAIL PROTECTED] public]# cd ROOT/
[EMAIL PROTECTED] ROOT]# ls
docroot logs NOTICE.txt repositories tmp
LICENSE.txt META-INF README.txt templates WEB-INF
[EMAIL PROTECTED] ROOT]# cd ..
[EMAIL PROTECTED] public]# ls
ROOT
[EMAIL PROTECTED] public]# cd ..
[EMAIL PROTECTED] tomcat5]# ls
author bin common conf logs public server shared temp
webapps work
[EMAIL PROTECTED] tomcat5]# su -
[EMAIL PROTECTED] ~]# service tomcat5 restart
Stopping tomcat5: [ OK ]
Starting tomcat5: [ OK ]
[EMAIL PROTECTED] ~]# exit
logout
[EMAIL PROTECTED] tomcat5]# cd co
common/ conf/
[EMAIL PROTECTED] tomcat5]# cd conf/
[EMAIL PROTECTED] conf]# ls
Catalina jkconfig.manifest tomcat-users.xml
catalina.policy logging.properties uriworkermap.properties
catalina.properties server-minimal.xml web.xml
context.xml server.xml workers2.properties
jk2.manifest shm.manifest workers2.properties.minimal
jk2.properties tomcat5.conf workers.properties
jkconf.ant.xml tomcat-jk2.manifest workers.properties.minimal
[EMAIL PROTECTED] conf]# cd ..
[EMAIL PROTECTED] tomcat5]# ls
author bin common conf logs public server shared temp
webapps work
[EMAIL PROTECTED] tomcat5]# cd logs/
[EMAIL PROTECTED] logs]# ls
catalina.out
[EMAIL PROTECTED] logs]# vi catalina.out
at
org.apache.jackrabbit.core.util.RepositoryLock.acquire(RepositoryLock.java:116)
...35 more
javax.jcr.RepositoryException: Unable to create or lock file
/usr/share/tomcat5/public/ROOT/repositories/magnolia/.lock:
/usr/share/tomcat5/public/ROOT/repositories/magnolia/.lock (Toegang
geweigerd): /usr/share/tomcat5/public/ROOT/repositories/magnolia/.lock
(Toegang geweigerd)
at
org.apache.jackrabbit.core.util.RepositoryLock.acquire(RepositoryLock.java:118)
at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:229)
at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:521)
at
org.apache.jackrabbit.core.jndi.BindableRepository.createRepository(BindableRepository.java:174)
at
org.apache.jackrabbit.core.jndi.BindableRepository.init(BindableRepository.java:138)
at
org.apache.jackrabbit.core.jndi.BindableRepository.create(BindableRepository.java:125)
at
org.apache.jackrabbit.core.jndi.BindableRepositoryFactory.createInstance(BindableRepositoryFactory.java:59)
at
org.apache.jackrabbit.core.jndi.RegistryHelper.registerRepository(RegistryHelper.java:60)
at info.magnolia.jackrabbit.ProviderImpl.init(ProviderImpl.java:198)
Adrian Butnaru schreef:
Thanks,
It was a good strategy.
I could make Squid serving as reverse proxy for Tomcat after I
proceeded as in the FAQ link.
Now If I type www.cetle.info I can see Tomcat welcome page.
Still no magnoliaPublic ...
David Smith schreef:
Don't try to put both on the same port -- that'll never work. Put
tomcat on 8080, Squid on 80 and then reverse proxy the tomcat
service with Squid.
Then try this Squid config adapted from the Squid FAQ at
http://wiki.squid-cache.org/SquidFaq/ReverseProxy :
http_port 80 accel defaultsite=www.cetle.info
cache_peer 127.0.0.1 parent 8080 0 no-query originserver
name=tomcatServer
acl publicSite dstdomain www.cetle.info
http_access allow publicSite
cache_peer_access tomcatServer allow publicSite
cache_peer_access tomcatServer deny all
--David
Adrian Butnaru wrote:
Still trying ... if I type www.cetle.info:8080 I can get Tomcat
page. So Tomcat is working. If I try to go to
www.cetle.info:8080/magnoliaPublic Squid is reporting Access denied.
Have anybody more experience to get this working?
A.
Adrian Butnaru schreef:
I corrected back the ports number in server.xml.
Added proxyPort and proxyName.
Still not able to access the website.
There is any other easiest way to make Tomcat working as webserver
for Magnolia or any other CMS?
David Smith schreef:
Don't change the ports numbers in server.xml. Tomcat still needs
a unique port number not occupied by Squid. The connector you
are proxying in server.xml should probably include proxyPort="80"
and proxyName="www.cetle.info" which causes the links generated
by tomcat to have the right domain name and port.
I haven't ever used Squid, so I don't know what that conf should
look like. When you are setting up, the key words to look for in
the docs are "reverse proxy". That's what you are trying to
setup with Squid in front of Tomcat.
--David
Adrian Butnaru wrote:
Hi,
I was very optimistic in the beginning but I still have some
problems so I still need some help.
I installed Squid.
I added the following in squid.conf:
http_port 80 accel defaultsite=www.mywebsite.info
cache_peer 85.XXX.XXX.XXX parent 80 0 no-query originserver
name=myAccel
acl our_sites dstdomain www.mywebsite.info http_access allow
our_sites cache_peer_access myAccel allow our_sites
I changed in server.xml:
Connector port from 8080 to 80.
The rest I left as it is by default in the file.
Then I uploaded magnoliaPublic and ROOT directory from my tomcat
server I am running successfully on my laptop.
Restarted Tomcat.
Restarted Squid.
When I type www.mywebsite.info/magnoliaPublic in the browser in
receive:
ERROR
The requested URL could not be retrieved
------------------------------------------------------------------------
While trying to retrieve the URL:
http://www.mywebsite.info/magnoliaPublic
<http://www.cetle.info/magnoliaPublic>
The following error was encountered:
* *Access Denied. *
Access control configuration prevents your request from being
allowed at this time. Please contact your service provider
if you
feel this is incorrect.
Your cache administrator is root <mailto:root>.
David Smith schreef:
Ok.. that should work and provide a nice caching function.
Most tomcat people would say the most efficient design is to
have tomcat by itself listening on port 80. In Magnolia's
case, the caching system in Squid would probably provide a nice
boost to performance. My site is fronted by Apache Httpd and
it's caching system takes a load off the Magnolia system.
Updates may not show immediately depending on how long it takes
Squid to check back with tomcat and find out if things have
changed. But if your site is like a lot of sites, it only
changes a little each day anyway.
Still ... definitely drop the GNU Java JVM -- it's not up to
the task of running a server environment. Alright for client
applications, but I wouldn't recommend it for a server.
jsvc is a little utility program that grabs the required
privileged ports, and then launches tomcat as process under the
user account you choose. That allows tomcat to get the low
number ports and run as an unprivileged user -- which makes
admins like me really happy :-).
--David
Adrian Butnaru wrote:
Thanks,
I am trying to use Squid in front of Tomcat now. I will also
try to use Sun's Java. I thought it will be more
straightforward to use Tomcat as a webserver.
I am not very sure how to use jsvc. I will dig a little the
try again installing Magnolia inside.
David Smith schreef:
Sorry, I'm a little handicapped in languages outside of
English.. Babelfish tells me the error is "Connection has
been refused" in Dutch. To connect to ports below 1024 in
any of the *nix OS's (Unlix/Linux/most outside of Windows),
the user starting tomcat has to be root or have root
privilege on the system. That's usually achieved using jsvc
from the Apache Commons Daemon project
(http://commons.apache.org/daemon/) although I'm sure you can
find other ways with a little googling.
Other than that, I would highly recommend you replace your
GNU Java environment with a more server strength Java like
the one from Sun (http://java.sun.com). Your hosting
provided should be able to help with that.
--David
Adrian Butnaru wrote:
Thanks for the tips and comments.
I think is something wrong with my Tomcat.
Please help me if more experienced.
Verbinding is geveigerd = Access is denied.
Have you any ideea why?
This is my log catalina.out:
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
Created MBeanServer with ID:
-pitlki:fkcu3gdh.0:h1408713.stratoserver.net:1
26-aug-08 20:10:52 org.apache.catalina.startup.Catalina
stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Verbinding is geweigerd
at gnu.java.net.PlainSocketImpl.connect(libgcj.so.7rh)
at java.net.Socket.connect(libgcj.so.7rh)
at java.net.Socket.connect(libgcj.so.7rh)
at java.net.Socket.<init>(libgcj.so.7rh)
at java.net.Socket.<init>(libgcj.so.7rh)
at
org.apache.catalina.startup.Catalina.stopServer(catalina-5.5.23.jar.so)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at
org.apache.catalina.startup.Bootstrap.stopServer(bootstrap.jar.so)
at
org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
touch: kan touch `/usr/share/tomcat5/logs/catalina.out' niet
uitvoeren: Toegang geweigerd
/usr/bin/dtomcat5: line 325:
/usr/share/tomcat5/logs/catalina.out: Toegang geweigerd
David Smith schreef:
Hi Adrian.
2. Changed <Engine name="Catalina" defaultHost="localhost">
to
<Engine name="Catalina" defaultHost="www.mywebsite.info">
Not really necessary ... not wrong, just not necessary.
Localhost, which was declared as the default host in the
Host element above and would have naturally taken any
request without an explicitly matching Host element.
3. Changed <Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true" xmlValidation="false"
xmlNamespaceAware="false">
to
<Host name="www.mywebsite.info"
appBase="webapps/magnoliaPublic" unpackWARs="true"
autoDeploy="true" xmlValidation="false"
xmlNamespaceAware="false">
Again, not necessary .... not wrong ... just unnecessary.
See above.
The name of the folder containing the application is
magnoliaPublic
Then you should be requesting
http://www.mywebsite.info/magnoliaPublic. If you want
magnoliaPublic to be the default webapp, it should be named
ROOT (case is important).
Your result (the blank page) may be because their is no
ROOT webapp or because of an exception processing the
default page. Hard to say what's happening at this point.
You should review your logs, both tomcat's and magnolia's
for possible sources of issues. Also check to be sure
tomcat is listening on port 80 as that's the default port
web browsers contact when you don't add a colon and port
number after your domain name in the URL.
--David
Adrian Butnaru wrote:
But is there any chance to make it working only woth Tomcat?
I really do not need Apache.
Adrian
Ruben Reusser schreef:
you probably would be better off installing apache in
front of tomcat and use a reverse proxy or mod_jk
Ruben
Adrian Butnaru wrote:
Hi I am a newbie trying to use Tomcat to run a website
(e.g www.mywebsite.info) on a Virtual Private Server
(VPS). I built the website using Magnolia CMS. My domain
is registered by the provider of the VPS. I uploaded my
application in the webapps folder. The name of the
folder containing the application is magnoliaPublic. I
did the following changes in server.xml:
1. Changed the Connector port from 8080 to 80.
2. Changed <Engine name="Catalina" defaultHost="localhost">
to
<Engine name="Catalina" defaultHost="www.mywebsite.info">
3. Changed <Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
to
<Host name="www.mywebsite.info"
appBase="webapps/magnoliaPublic" unpackWARs="true"
autoDeploy="true" xmlValidation="false"
xmlNamespaceAware="false">
If I try www.mywebsite.info in my browser I cannot see
nothing.
Can you please guide how to make my website working? Is
it something more I should do?
Thanks
A.
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------