Embedding Tomcat inside Java app.

2001-02-14 Thread Hristo Katsarski

Hi folks,

I'm trying to embed Tomcat inside Java application. At the time of "/ROOT"
context init,
I get exception, stating that I've no read right on file "server.xml"
I am really wondering what is the CORRECT way to embed Tomcat.
Here is part of the output I get:
  ERROR reading D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml
  java.security.AccessControlException: access denied
(java.io.FilePermission
  D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml read)
  at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:231)
  at 

Anyone who, suceeded in embeddig Tomcat, please give me some clue.
Thanks in advance

Hristo


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Réf. : Embedding Tomcat inside Java app.

2001-02-14 Thread JULE, Nicolas - DSIA


Hi ,
Have you try to  adapt  your   tomcat.policy  file ?
something like: 

grant codeBase "file:${tomcat.home}/webapps/ROOT" {
  java.io.FilePermission  "*" ,  read)
};

Nicolas



De :Hristo Katsarski@hristo le 14/02/2001 09:32
Pour :  tomcat-user@[EMAIL PROTECTED]@SMTP@Hays Hub
cc : 
Faxer :    
    Objet : Embedding Tomcat inside Java app.

Hi folks,

I'm trying to embed Tomcat inside Java application. At the time of
"/ROOT"
context init,
I get exception, stating that I've no read right on file
"server.xml"
I am really wondering what is the CORRECT way to embed Tomcat.
Here is part of the output I get:
  ERROR reading D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml
  java.security.AccessControlException: access denied
(java.io.FilePermission
  D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml read)
  at
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:231)
  at 

Anyone who, suceeded in embeddig Tomcat, please give me some clue.
Thanks in advance

Hristo



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



**
Ce message lectronique et tous les fichiers attachs qu'il contient
sont confidentiels et destins exclusivement  l'usage de la personne
 laquelle ils sont adresss. Si vous avez reu ce message par erreur,
merci de le retourner  son metteur. Les ides et opinions prsentes
dans ce messages sont celles de son auteur, et ne reprsentent pas
ncessairement celles du Groupe HAYS plc ou d'une quelconque de ses filiales.
La publication, l'usage, la distribution, l'impression ou la copie non
autorise de ce message et des attachements qu'il contient sont strictement
interdits.

Nous vous informons galement que nous avons vrifi l'absence de virus dans
ce message mais que, malgr ce contrle, nous ne saurions tre tenus pour
responsables d'ventuels dgts occasionns par un virus non dtect.

This e-mail and any attached files are confidential and intended
solely for the use of the individual to whom it is addressed. If you have
received this email in error please send it back to the person that sent it
to you. Any views or opinions presented are solely those of author and
do not necessarily represent those the HAYS plc group or any of its subsidiary
companies. Unauthorized publication, use, dissemination, forwarding, printing
or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain
any virus but we decline any responsability in case of any damage caused
by an a non detected virus.

**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Réf. : Embedding Tomcat inside Java app.

2001-02-14 Thread Hristo Katsarski

Hi Nicolas,
I've tried a lot of approaches (including giving permissions) but -- no
success so far.
Did you succeed embedding Tomcat?

Hristo.

-Original Message-
From: JULE, Nicolas - DSIA [EMAIL PROTECTED]
To: tomcat-user [EMAIL PROTECTED]
Date: Wednesday, February 14, 2001 10:58 AM
Subject: Rf. : Embedding Tomcat inside Java app.



Hi ,
Have you try to  adapt  your   tomcat.policy  file ?
something like:

grant codeBase "file:${tomcat.home}/webapps/ROOT" {
  java.io.FilePermission  "*" ,  read)
};

Nicolas



De : Hristo Katsarski@hristo le 14/02/2001 09:32
Pour : tomcat-user@[EMAIL PROTECTED]@SMTP@Hays Hub
cc :
Faxer :
Objet : Embedding Tomcat inside Java app.

Hi folks,

I'm trying to embed Tomcat inside Java application. At the time of
"/ROOT"
context init,
I get exception, stating that I've no read right on file
"server.xml"
I am really wondering what is the CORRECT way to embed Tomcat.
Here is part of the output I get:
  ERROR reading D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml
  java.security.AccessControlException: access denied
(java.io.FilePermission
  D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml read)
  at
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:231)
  at 

Anyone who, suceeded in embeddig Tomcat, please give me some clue.
Thanks in advance

Hristo



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



**
Ce message lectronique et tous les fichiers attachs qu'il contient
sont confidentiels et destins exclusivement  l'usage de la personne
 laquelle ils sont adresss. Si vous avez reu ce message par erreur,
merci de le retourner  son metteur. Les ides et opinions prsentes
dans ce messages sont celles de son auteur, et ne reprsentent pas
ncessairement celles du Groupe HAYS plc ou d'une quelconque de ses
filiales.
La publication, l'usage, la distribution, l'impression ou la copie non
autorise de ce message et des attachements qu'il contient sont strictement
interdits.

Nous vous informons galement que nous avons vrifi l'absence de virus dans
ce message mais que, malgr ce contrle, nous ne saurions tre tenus pour
responsables d'ventuels dgts occasionns par un virus non dtect.

This e-mail and any attached files are confidential and intended
solely for the use of the individual to whom it is addressed. If you have
received this email in error please send it back to the person that sent it
to you. Any views or opinions presented are solely those of author and
do not necessarily represent those the HAYS plc group or any of its
subsidiary
companies. Unauthorized publication, use, dissemination, forwarding,
printing
or copying of this email and its associated attachments is strictly
prohibited.

We also inform you that we have checked that this message does not contain
any virus but we decline any responsability in case of any damage caused
by an a non detected virus.

**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Réf. : Embedding Tomcat inside Java app.

2001-02-14 Thread Stefán F. Stefánsson

Try giving the full path of the policy file as a parameter to the jvm.

Example:

java -Djava.security.policy==full_path_to/ips.policy myAppWithTomcat

Also note the two equal signs.  This is important.  Do NOT use just one
equal sign.  Also I'm attatching a tomca.policy file that grants all
permission to all codebases.  This may not be a good idea to do in
production but for development it should be fine.

Regards, Stefan



-Original Message-
From: Hristo Katsarski [mailto:[EMAIL PROTECTED]]
Sent: 14. febrar 2001 14:12
To: [EMAIL PROTECTED]
Subject: Re: Rf. : Embedding Tomcat inside Java app.


Hi Nicolas,
I've tried a lot of approaches (including giving permissions) but -- no
success so far.
Did you succeed embedding Tomcat?

Hristo.

-Original Message-
From: JULE, Nicolas - DSIA [EMAIL PROTECTED]
To: tomcat-user [EMAIL PROTECTED]
Date: Wednesday, February 14, 2001 10:58 AM
Subject: Rf. : Embedding Tomcat inside Java app.



Hi ,
Have you try to  adapt  your   tomcat.policy  file ?
something like:

grant codeBase "file:${tomcat.home}/webapps/ROOT" {
  java.io.FilePermission  "*" ,  read)
};

Nicolas



De : Hristo Katsarski@hristo le 14/02/2001 09:32
Pour : tomcat-user@[EMAIL PROTECTED]@SMTP@Hays Hub
cc :
Faxer :
Objet : Embedding Tomcat inside Java app.

Hi folks,

I'm trying to embed Tomcat inside Java application. At the time of
"/ROOT"
context init,
I get exception, stating that I've no read right on file
"server.xml"
I am really wondering what is the CORRECT way to embed Tomcat.
Here is part of the output I get:
  ERROR reading D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml
  java.security.AccessControlException: access denied
(java.io.FilePermission
  D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml read)
  at
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:231)
  at 

Anyone who, suceeded in embeddig Tomcat, please give me some clue.
Thanks in advance

Hristo



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



**
Ce message lectronique et tous les fichiers attachs qu'il contient
sont confidentiels et destins exclusivement  l'usage de la personne
 laquelle ils sont adresss. Si vous avez reu ce message par erreur,
merci de le retourner  son metteur. Les ides et opinions prsentes
dans ce messages sont celles de son auteur, et ne reprsentent pas
ncessairement celles du Groupe HAYS plc ou d'une quelconque de ses
filiales.
La publication, l'usage, la distribution, l'impression ou la copie non
autorise de ce message et des attachements qu'il contient sont
strictement
interdits.

Nous vous informons galement que nous avons vrifi l'absence de virus
dans
ce message mais que, malgr ce contrle, nous ne saurions tre tenus
pour
responsables d'ventuels dgts occasionns par un virus non dtect.

This e-mail and any attached files are confidential and intended
solely for the use of the individual to whom it is addressed. If you
have
received this email in error please send it back to the person that sent
it
to you. Any views or opinions presented are solely those of author and
do not necessarily represent those the HAYS plc group or any of its
subsidiary
companies. Unauthorized publication, use, dissemination, forwarding,
printing
or copying of this email and its associated attachments is strictly
prohibited.

We also inform you that we have checked that this message does not
contain
any virus but we decline any responsability in case of any damage caused
by an a non detected virus.

**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


 ips.policy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Re: RE: Réf. : Embedding Tomcat inside Java app.

2001-02-14 Thread Hristo Katsarski

Thak you Stefan and Nikolas !

Replacing the default policy file worked fine.

Tomcat started, but...below is part of the first Exception I got, trying to
access the default index.html file.
Anyway, thanks a LOT for your help!

best regards, Hristo

...
WebAdapter: addConnector 8080 hristo/192.168.0.12 localhost
PoolTcpConnector: setAttribute( vhost_port , 8080)
PoolTcpConnector: setAttribute( vhost_address , hristo/192.168.0.12)
PoolTcpConnector: setAttribute( vhost_name , localhost)
ContextManager: Add connector
javaClass="org.apache.tomcat.service.PoolTcpConnector"
PoolTcpConnector: Starting HttpConnectionHandler on 8080
WebAdapter: Started
-
ContextManager: Error mapping the request R(  + / + null) 302
Ctx(  ): Handler tomcat.redirectHandler(null/null) tomcat.redirectHandler
Ctx(  ): Exception in: R(  + / + null)
java.lang.NullPointerException
 at java.io.PrintWriter.flush(PrintWriter.java:121)
 at
org.apache.tomcat.facade.ServletWriterFacade.flush(ServletWriterFacade.java:
96)
 at
org.apache.tomcat.context.RedirectHandler.doService(DefaultCMSetter.java:460
)
.
..and so on the trace


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]