Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

[JBOSS] TomcatBundle follow simlink & config.
Hi,
I use jboss-3.2.1 + tomcat-4.1.24 embedded.
The problem is setting the option that let Tomcat to follow file system
simbolic link, normally forbidden for security reason.
With standa-lone Tomcat nothing special, adding to
server.xml after <Context>:

<Context className="...>
...
<Resources className="org.apache.naming.resources.FileDirContext" allowLinki
ng="true" />
...
</Context>

it works.

My problem is to do the same with the bundle version Jboss's Tomcat.
Inside the dir. $JBOSS_HOME/server/default/deploy/jbossweb-tomcat.sar/META-I
NF
exist the file jboss-service.xml with Tomcat config. section:
...

<attribute name="Config">
<Server>
<Service name = "JBoss-Tomcat">
<Engine name="MainEngine" defaultHost="localhost">
<Logger className = "org.jboss.web.catalina.Log4jLogger"
verbosityLevel = "warning" category = "org.jboss.web.localhost.Engine"/>
<Host name="localhost">

<!-- Access logger -->
<Valve className = "org.apache.catalina.valves.AccessLogValve"
prefix = "localhost_access" suffix = ".log"
pattern = "common" directory = "${jboss.server.home.dir}/log" />

<!-- Default context parameters -->
<DefaultContext cookies = "true" crossContext = "true" override = "true" />

</Host>
</Engine>
<!-- A HTTP/1.1 Connector on port 8080 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080" minProcessors="3" maxProcessors="10"
enableLookups="false" acceptCount="10" debug="0"
connectionTimeout="20000" useURIValidationHack="false" />

<!-- A AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="false" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="20000"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>

</Service>
</Server>
</attribute>

...
I tried adding my context and the allowlinking="true", but nothing. It
seems to me that jboss ignore my changes.

Someone with the same problems? How can I configure TomcatEmbedded of
JBoss?

Thanks in advance.


Report this thread to moderator Post Follow-up to this message
Old Post
Data
03-20-04 01:45 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Beans archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 12:52 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.