InvocationTargetException calling EJB

2003-08-14 Thread Juraj . Lenharcik

 Hi,
 
 I use a AXIS-webservice (deployed on TC outside Jboss) to call an EJB (Jboss). I get 
 on this line an InvocationTargetException :
 
 connProps.put(InitialContext.INITIAL_CONTEXT_FACTORY,factory);
 connProps.put(InitialContext.PROVIDER_URL, location);
 connProps.put(InitialContext.URL_PKG_PREFIXES, pkgs);
 ==  InitialContext initialContext = new InitialContext(connProps);
 
 junit.framework.AssertionFailedError: java.lang.reflect.InvocationTargetException
 When I call it without the Properties, everything runs. Also when I run it from a 
 standalone client it works. Only from the Webapplication it doesn`t run.
 
 DEBUG [Thread-4] (EJBBackend.java:38) - starting banfbackend
 DEBUG [Thread-4] (EJBBackend.java:43) - properties: {java.naming.provider.url=jn
 p://localhost:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContext
 Factory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
 DEBUG [Thread-4] (EJBBackend.java:49) - org.jnp.interfaces.NamingContextFactory
 DEBUG [Thread-4] (EJBBackend.java:50) - jnp://localhost:1099
 DEBUG [Thread-4] (EJBBackend.java:51) - org.jboss.naming:org.jnp.interfaces
 
 The jars jbossall-client, jboss-client, jnp-client are in WEB-INF/lib.
 
 Have I missed something?
 
 Juraj
 
 

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



invocing EJB from Tomcat

2003-08-07 Thread Juraj . Lenharcik
Hi,

does anyone knows, whats needed to invoce EJB from tomcat? Specially where to put the 
libraries for the contextfactory (under jboss jnp-client.jar).


thanks,
Juraj

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



WG: InvocationTargetException calling EJB

2003-08-06 Thread Juraj . Lenharcik

 I have tried this in Resin and it is working. It seems to be a configuration-problem 
 with tomcat. Has anyone an idea?
 
 Juraj
 
  -Ursprüngliche Nachricht-
 Von:  Lenharcik, Juraj  
 Gesendet: Mittwoch, 6. August 2003 14:55
 An:   '[EMAIL PROTECTED]'
 Betreff:  InvocationTargetException calling EJB
 
 
 Hi,
 
 I use a AXIS-webservice (deployed on TC outside Jboss) to call an EJB (Jboss). I get 
 on this line an InvocationTargetException :
 
 connProps.put(InitialContext.INITIAL_CONTEXT_FACTORY,factory);
 connProps.put(InitialContext.PROVIDER_URL, location);
 connProps.put(InitialContext.URL_PKG_PREFIXES, pkgs);
 ==  InitialContext initialContext = new InitialContext(connProps);
 
 junit.framework.AssertionFailedError: java.lang.reflect.InvocationTargetException
 When I call it without the Properties, everything runs. Also when I run it from a 
 standalone client it works. Only from the Webapplication it doesn`t run.
 
 DEBUG [Thread-4] (EJBBackend.java:38) - starting banfbackend
 DEBUG [Thread-4] (EJBBackend.java:43) - properties: {java.naming.provider.url=jn
 p://localhost:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContext
 Factory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
 DEBUG [Thread-4] (EJBBackend.java:49) - org.jnp.interfaces.NamingContextFactory
 DEBUG [Thread-4] (EJBBackend.java:50) - jnp://localhost:1099
 DEBUG [Thread-4] (EJBBackend.java:51) - org.jboss.naming:org.jnp.interfaces
 
 The jars jbossall-client, jboss-client, jnp-client are in WEB-INF/lib.
 
 Have I missed something?
 
 Juraj
 
 

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



ANT tasks for management console

2003-07-31 Thread Juraj . Lenharcik
Hi,

Catalina 4.1.24 contains some ANT-tasks to call the management application to deploy, 
reload and delete apps. Where can I find these tasks to include them in my build?

Juraj

Mit freundlichen Grüssen

Juraj Lenharcik
T-Systems International GmbH 
Systems Integration 1
eFactory Solutions
Business Unit Manufacturing Solutions 
Hausadresse: Fasanenweg 5, 70771 Leinfelden-Echterdingen 
phone:  +49 (711) 972 46185
fax:+49 (711) 972 48109

mailto:[EMAIL PROTECTED]
www.t-systems.com http://www.t-systems.com
www.efactory-solutions.com http://www.efactory-solutions.com



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



codebase not accepted - Security Manager - catalina.policy

2002-08-12 Thread Juraj Lenharcik

Hi,


I use the Security Manager in my Webapps. Everythink works fine, until I
write the codeBase parameter to the grant in my catalina.policy. Then I get
some security Exceptions, which are not when I use only grant standalone.
I use this entry in my catalina.policy:

grant codeBase file:${catalina.home}/webapps/-{ 
permission java.lang.RuntimePermission getClassLoader;
};

And get this Exception:

java.security.AccessControlException: access denied
(java.lang.RuntimePermission
 getClassLoader)

If the - Element works, than I shouldn't get any Permission-Exceptions. Or
is there any syntax error in my configuration? Has someone a example with
codebase and - which ist working?


bye
juraj 

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




codebase not accepted - Security Manager - catalina.policy

2002-08-09 Thread Juraj Lenharcik

Hi,


I use the Security Manager in my Webapps. Everythink works fine, until I
write the codeBase parameter to the grant in my catalina.policy. Then I get
some security Exceptions, which are not when I use only grant standalone.
I use this entry in my catalina.policy:

grant codeBase file:${catalina.home}/webapps/-{ 
permission java.lang.RuntimePermission getClassLoader;
};

And get this Exception:

java.security.AccessControlException: access denied
(java.lang.RuntimePermission
 getClassLoader)

If the - Element works, than I shouldn't get any Permission-Exceptions. Or
is there any syntax error in my configuration? Has someone a example with
codebase and - which ist working?


bye
juraj 

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




AW: Application init

2002-04-24 Thread juraj Lenharcik

Hi,

create a servlet with an init method like:

 public void init() { 
file = getInitParameter(log4j-init-file);
logfileDestination = getInitParameter(log4j-destination-file);

DO LOG4J stuff
.
  }

and register it in your web.xml:
servlet
servlet-namelog4j-init/servlet-name

servlet-classcom.di.config.startup.Log4jInit/servlet-class
init-param
param-namelog4j-init-file/param-name
param-valueWEB-INF/classes/log4j.lcf/param-value
/init-param
init-param
param-namelog4j-destination-file/param-name

param-valued:/server/jakarta-tomcat-4.0.2-LE-jdk14/logs/jaas.log/param-va
lue
/init-param
load-on-startup0/load-on-startup
that should do the work.

naskledanou...
juraj


-Ursprüngliche Nachricht-
Von: Pekník Jan [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 24. April 2002 16:13
An: 'Tomcat Users List'
Betreff: Application init


Hello, 

I have following problem : 

I have web-application consisting of several JSP, servlets, xml and xsl
files. I'm using LOG4J for logging and JDBC driver for acessing database.
In order to my application work properly, I need to call start-up code
(which set-up LOG4J and build connection pool) before any JSP page or
servlet is opened.
I don't know how to do this if I don't want to test this in the top of every
page / servlet.

Is there any easy solution how achieve this?  

-Jan 

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.351 / Virová báze: 197 - datum vydání: 19.4. 2002
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




catalina.policy

2002-02-22 Thread juraj Lenharcik

Hello,

I run catalina (TC 4.0.2-b2) with the security manager. After starting I get
a java.security.AccessControlException. I have extended the catalina.policy
with:

// These permissions are granted by default to all web applications
// In addition, a web application will be given a read FilePermission
// and JndiPermission for all files and directories in its document root.
grant { 


   permission java.io.FilePermission
${catalina.home}/webapps/auth/WEB-INF/log4j.lcf, read,write;
   permission java.lang.RuntimePermission getClassLoader;
...
}; 

then it runs fine. But when I say:

grant codebase file:${catalina.home}/webapps/auth/WEB-INF/lib/DIAA.jar {
   // for log4j things important
   permission java.io.FilePermission
${catalina.home}/webapps/auth/WEB-INF/log4j.lcf, read,write;
   permission java.lang.RuntimePermission getClassLoader;
};

I get the exception. 

$ Using CATALINA_BASE: D:\server\jakarta-tomcat-4.0.2-b2
Using CATALINA_HOME: D:\server\jakarta-tomcat-4.0.2-b2
Using CLASSPATH:
D:\server\jakarta-tomcat-4.0.2-b2\bin\bootstrap.jar;C:\j2sd
k1.4.0\lib\tools.jar
Using JAVA_HOME: C:\j2sdk1.4.0

.

... in die Log4J Configdatei ---
java.secur
ity.AccessControlException: access denied (java.io.FilePermission
D:\server\jaka
rta-tomcat-4.0.2-b2\webapps\auth\WEB-INF\log4j.lcf write)

Have someone an idea why?

thanks
juraj


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: catalina.policy

2002-02-22 Thread juraj Lenharcik

Hi,

I have tried something like 

grant codebase file:${catalina.home}/webapps/auth/WEB-INF/lib/- {

but it always comes this exception. The calling class is in the jar archive.



$ log4j:WARN Caught Exception while in Loader.getResource. This may be
innocuous
.
java.security.AccessControlException: access denied
(java.lang.RuntimePermission
 getClassLoader)
at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:270)
at
java.security.AccessController.checkPermission(AccessController.java:
401)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.ClassLoader.getParent(ClassLoader.java:708)
at
org.apache.catalina.loader.WebappClassLoader.toString(WebappClassLoad
er.java:807)
at java.lang.String.valueOf(String.java:2173)
at java.lang.StringBuffer.append(StringBuffer.java:369)
at org.apache.log4j.helpers.Loader.getResource(Loader.java:78)
at org.apache.log4j.Category.clinit(Category.java:138)
at di.config.startup.Log4jInit.clinit(Log4jInit.java:35)
^^ 

juraj




-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 22. Februar 2002 19:21
An: Tomcat Users List
Betreff: Re: catalina.policy



Try running tomcat with
CATALINA_OPTS=-Djava.security.debug=access,failure

It should help pinpoint which class is trying to access the D:
\server\jakarta-tomcat-4.0.2-b2\webapps\auth\WEB-INF\log4j.lcf file

Thanks.
RS





juraj Lenharcik [EMAIL PROTECTED] on 02/22/2002 10:57:35 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat-User@Jakarta. Apache. Org (E-Mail)
  [EMAIL PROTECTED]
cc:

Subject:  catalina.policy

Hello,

I run catalina (TC 4.0.2-b2) with the security manager. After starting I
get
a java.security.AccessControlException. I have extended the catalina.policy
with:

// These permissions are granted by default to all web applications
// In addition, a web application will be given a read FilePermission
// and JndiPermission for all files and directories in its document root.
grant {


   permission java.io.FilePermission
${catalina.home}/webapps/auth/WEB-INF/log4j.lcf, read,write;
   permission java.lang.RuntimePermission getClassLoader;
...
};

then it runs fine. But when I say:

grant codebase file:${catalina.home}/webapps/auth/WEB-INF/lib/DIAA.jar {
   // for log4j things important
   permission java.io.FilePermission
${catalina.home}/webapps/auth/WEB-INF/log4j.lcf, read,write;
   permission java.lang.RuntimePermission getClassLoader;
};

I get the exception.

$ Using CATALINA_BASE: D:\server\jakarta-tomcat-4.0.2-b2
Using CATALINA_HOME: D:\server\jakarta-tomcat-4.0.2-b2
Using CLASSPATH:
D:\server\jakarta-tomcat-4.0.2-b2\bin\bootstrap.jar;C:\j2sd
k1.4.0\lib\tools.jar
Using JAVA_HOME: C:\j2sdk1.4.0

.

... in die Log4J Configdatei ---
java.secur
ity.AccessControlException: access denied (java.io.FilePermission
D:\server\jaka
rta-tomcat-4.0.2-b2\webapps\auth\WEB-INF\log4j.lcf write)

Have someone an idea why?

thanks
juraj


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]









--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JAASRealms classes

2002-02-08 Thread juraj Lenharcik

Hello,

I downloaded this two files:
binary: jakarta-tomcat-4.0-20020208.zip
src: jakarta-tomcat-4.0-src-20020208.zip

But I found the JAASRealm classes only in the sources. The bineries doesn`t
have them. Is that right, have I to compile the tomcat ?


thank you,
juraj

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




WG: JAASRealm (fwd)

2002-02-08 Thread juraj Lenharcik



-Ursprüngliche Nachricht-
Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 8. Februar 2002 17:45
An: [EMAIL PROTECTED]
Betreff: Re: JAASRealm (fwd)


Forward the anaswer to TOMCAT-USER as well since it was asked both places.

Craig


-- Forwarded message --
Date: Fri, 8 Feb 2002 08:36:03 -0800 (PST)
From: Craig R. McClanahan [EMAIL PROTECTED]
Reply-To: Tomcat Developers List [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Subject: Re: JAASRealm



On Fri, 8 Feb 2002, juraj Lenharcik wrote:

 Date: Fri, 8 Feb 2002 16:41:30 +0100
 From: juraj Lenharcik [EMAIL PROTECTED]
 Reply-To: Tomcat Developers List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: JAASRealm

 Hello,

 can it be that the JAASRealm classes only in the sources are? I downloaded
 the binary and src but found the needed classes only in the src.

 binary: jakarta-tomcat-4.0-20020208.zip
 src: jakarta-tomcat-4.0-src-20020208.zip

 Can someone tell me if they come later to the binaries, or I have to build
 the sources?


Aargh, that is probably a snafu in my build environment for the nighly
builds.  The JAASRealm stuff is conditionally compiled only if the
jaas.jar property is set.  This will get fixed by Monday (I'm out of
town at the moment).

 thank you
 juraj


Craig


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



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




WG: JAASRealm

2002-02-08 Thread juraj Lenharcik

Hi Craig,

I am sorry I have overlooked them. I found them in the catalina.jar .
I try your JAASRealm at the moment.


juraj


-Ursprüngliche Nachricht-
Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 8. Februar 2002 17:36
An: Tomcat Developers List
Betreff: Re: JAASRealm




On Fri, 8 Feb 2002, juraj Lenharcik wrote:

 Date: Fri, 8 Feb 2002 16:41:30 +0100
 From: juraj Lenharcik [EMAIL PROTECTED]
 Reply-To: Tomcat Developers List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: JAASRealm

 Hello,

 can it be that the JAASRealm classes only in the sources are? I downloaded
 the binary and src but found the needed classes only in the src.

 binary: jakarta-tomcat-4.0-20020208.zip
 src: jakarta-tomcat-4.0-src-20020208.zip

 Can someone tell me if they come later to the binaries, or I have to build
 the sources?


Aargh, that is probably a snafu in my build environment for the nighly
builds.  The JAASRealm stuff is conditionally compiled only if the
jaas.jar property is set.  This will get fixed by Monday (I'm out of
town at the moment).

 thank you
 juraj


Craig


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

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




protect websites with jaas

2002-02-07 Thread juraj Lenharcik

Hello,

I have build an application with an authentication with a NT Domain. I have
some authorization aspects, too. That means, not every authenticated user
has the rights to do some actions. 

I have port this application to a webapp. The authentication part works
fine. The user has to input his name and password an will be authenticate or
not. But with the authorization part I have some problems. 

What is the best way to protect some sites with Jaas. I mean the user1 has
the right to run some jsp`s, but user2 has this right not. 

On the application site I do this grants in the policy like:

grant codebase file:./MyTest.jar, Principal NTPrincipal user1{
permission java.util.PropertyPermission user.dir, read;
permission java.util.PropertyPermission user.home, read;
permission java.util.PropertyPermission java.home, read; 
permission java.io.FilePermission foo.txt, read; 
};

But has anyone an idea, or has it implemented for websites. I am not sure
what the best concept is. I think the server should take some work on this,
so that I can grant it like:

server.accessFantasyPermissionhtdocs/jsp1, read; 
permission 

Is it possible to do something like this? 

Thank you
Juraj



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




WG: protect websites with jaas

2002-02-07 Thread juraj Lenharcik


 Hello,
 
 I have build an application with an authentication with a NT Domain. I
 have some authorization aspects, too. That means, not every authenticated
 user has the rights to do some actions. 
 
 I have port this application to a webapp. The authentication part works
 fine. The user has to input his name and password an will be authenticate
 or not. But with the authorization part I have some problems. 
 
 What is the best way to protect some sites with Jaas. I mean the user1 has
 the right to run some jsp`s, but user2 has this right not. 
 
 On the application site I do this grants in the policy like:
 
 grant codebase file:./MyTest.jar, Principal NTPrincipal user1{
 permission java.util.PropertyPermission user.dir, read;
 permission java.util.PropertyPermission user.home, read;
 permission java.util.PropertyPermission java.home, read; 
 permission java.io.FilePermission foo.txt, read; 
 };
 
 But has anyone an idea, or has it implemented for websites. I am not sure
 what the best concept is. I think the server should take some work on
 this, so that I can grant it like:
 
 server.accessFantasyPermissionhtdocs/jsp1, read; 
 permission 
 
 Is it possible to do something like this? 
 
 Thank you
 Juraj
 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Realm with JAAS

2002-02-07 Thread juraj Lenharcik

Hello,

I heard that tomcat supports Realms. Can someone explain me what they do
(links...)? Is it possible to use them with JAAS Authorization? 


thanks
juraj

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: protect websites with jaas

2002-02-07 Thread juraj Lenharcik

Hi Mike,

you are right. JAAS with with the Authorization part is not constructed for
j2ee Applications. Authentication works fine, but the Authorizationpart you
have to implement yourself. I am doing something like this, because I didn`t
found any other solution.

I authenticate with JAAS on a JSP (without an Applet). The Authorization
runs like the policy grants, but on xml. On every request I go to an
ActionServlet (struts) witch send a request to an Authorizationservlet. This
servlet checks for the rights for this directory and sends his response back
to the ActionServlet. 
On this result will be the correct forwart taken.
I hope it will be working, because I am on it, now. I hope there will be
soon an non (struts) ;-) solution or something like that.

Juraj  




-Ursprüngliche Nachricht-
Von: Mike Jackson [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 7. Februar 2002 16:27
An: Tomcat Users List
Betreff: Re: protect websites with jaas 


I tried to do something like that.  But I found that with jaas all I got was
the permissions of the user
that was running tomcat.  After reading and playing a bit more I concluded
that I'd need an applet
running on the web client in order to get jaas to work for me.  And with the
restrictions on applets
I decided that wasn't worth it either.

However, I could have misunderstood something or been doing it wrong, but
that's my experience.
You mileage may vary, some assembly required, batteries not included.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

- Original Message -
From: juraj Lenharcik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 2:12 AM
Subject: protect websites with jaas


 Hello,

 I have build an application with an authentication with a NT Domain. I
have
 some authorization aspects, too. That means, not every authenticated user
 has the rights to do some actions.

 I have port this application to a webapp. The authentication part works
 fine. The user has to input his name and password an will be authenticate
or
 not. But with the authorization part I have some problems.

 What is the best way to protect some sites with Jaas. I mean the user1 has
 the right to run some jsp`s, but user2 has this right not.

 On the application site I do this grants in the policy like:

 grant codebase file:./MyTest.jar, Principal NTPrincipal user1{
 permission java.util.PropertyPermission user.dir, read;
 permission java.util.PropertyPermission user.home, read;
 permission java.util.PropertyPermission java.home, read;
 permission java.io.FilePermission foo.txt, read;
 };

 But has anyone an idea, or has it implemented for websites. I am not sure
 what the best concept is. I think the server should take some work on
this,
 so that I can grant it like:

 server.accessFantasyPermissionhtdocs/jsp1, read;
 permission

 Is it possible to do something like this?

 Thank you
 Juraj



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: Realm with JAAS

2002-02-07 Thread juraj Lenharcik

Hi Craig,

I looked on it, but it seems there is no authorization support, only
authentication . Is it right? I cannot find any Principal Classes 


Juraj


-Ursprüngliche Nachricht-
Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 7. Februar 2002 17:52
An: Tomcat Users List
Betreff: Re: Realm with JAAS




On Thu, 7 Feb 2002, juraj Lenharcik wrote:

 Date: Thu, 7 Feb 2002 12:23:27 +0100
 From: juraj Lenharcik [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: Realm with JAAS

 Hello,

 I heard that tomcat supports Realms. Can someone explain me what they do
 (links...)?

Start up Tomcat and access the following URL:

  http://localhost:8080/tomcat-docs/realm-howto.html

 Is it possible to use them with JAAS Authorization?


There is no support for this in the 4.0.x releases, but in the nightly
builds (and what will eventually become Tomcat 4.1) there is a Realm
implementation that uses JAAS underneath.


 thanks
 juraj


Craig McClanahan


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: struts or tomcat 3.2.1 bug?

2001-09-07 Thread juraj Lenharcik

hello,

the stange thing is, when i get the bean with useBean then i can access all
elements and put them out. no problems perform.

then i put my iterate tag to the jsp. when i debug the jsp i can see that
the bean is correctly in the scope and CAN BE ACCESSED! the iterator runs
ONCE trought the bean writes and then the scope of the bean is suddenly
lost. then i get my meaningful jsp - exception. what could be the problem???


there should be no startup mistake.


thanks
juraj






-Ursprüngliche Nachricht-
Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 6. September 2001 18:19
An: [EMAIL PROTECTED]
Betreff: Re: struts or tomcat 3.2.1 bug?




On Thu, 6 Sep 2001, juraj Lenharcik wrote:

 Date: Thu, 6 Sep 2001 17:36:36 +0200
 From: juraj Lenharcik [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: struts or tomcat 3.2.1 bug?

 does anyone knows about a bug in tomcat 3.2.1 with struts? i mean there
was
 a message few weeks ago, but i cant find it again. can someone give me a
 tip?

 the problem is, that i have an application under resin 2.0.2 running and
 when i put it on tomcat 3.2.1 it doesnt run. i get an exception:
 javax.servlet.ServletException: Cannot find bean data in scope
session.


Check your Tomcat log files for error and exception messages -- this kind
of thing is usually caused by missing classes at startup time.


 thanks
 juraj



Craig McClanahan




struts or tomcat 3.2.1 bug?

2001-09-06 Thread juraj Lenharcik

does anyone knows about a bug in tomcat 3.2.1 with struts? i mean there was
a message few weeks ago, but i cant find it again. can someone give me a
tip?

the problem is, that i have an application under resin 2.0.2 running and
when i put it on tomcat 3.2.1 it doesnt run. i get an exception:
javax.servlet.ServletException: Cannot find bean data in scope session.


thanks
juraj




AW: struts or tomcat 3.2.1 bug?

2001-09-06 Thread juraj Lenharcik

hi craig,

i couldn`t find a new exception message in logs. the situation is:

the jsp is:

logic:present name=successMessage
centerh2 bean:message key=content.success//h2/centerbr
table width=100% border=1
 logic:iterate id=data name=content type=java.lang.Object 
trtdbean:write name=data property=name
scope=request/ : /td  
tdbbean:write name=data property=element
scope=request/ /b/td/tr 
 /logic:iterate   
/table  
/logic:present



in the action servlet is put:
req.setAttribute(data, formT); // formT is our Form bean


the struts config:
  form-beans
form-bean name=data type=di.workerClient.form.DbContentForm/
  /form-beans

 action path=/content 
type=di.workerClient.action.actionContent 
name=DbContentForm
scope=request
input=/TreePane.jsp  
forward name=view path=/cstree/content.jsp /
/action


can you see a mistake?

thanks
juraj




-Ursprüngliche Nachricht-
Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 6. September 2001 18:19
An: [EMAIL PROTECTED]
Betreff: Re: struts or tomcat 3.2.1 bug?




On Thu, 6 Sep 2001, juraj Lenharcik wrote:

 Date: Thu, 6 Sep 2001 17:36:36 +0200
 From: juraj Lenharcik [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: struts or tomcat 3.2.1 bug?

 does anyone knows about a bug in tomcat 3.2.1 with struts? i mean there
was
 a message few weeks ago, but i cant find it again. can someone give me a
 tip?

 the problem is, that i have an application under resin 2.0.2 running and
 when i put it on tomcat 3.2.1 it doesnt run. i get an exception:
 javax.servlet.ServletException: Cannot find bean data in scope
session.


Check your Tomcat log files for error and exception messages -- this kind
of thing is usually caused by missing classes at startup time.


 thanks
 juraj



Craig McClanahan