Re: Perl Permissions on Tomcat

2007-10-26 Thread Li Ye Chen
Yes, I have added debug code to the Perl program, and where it stalls seems to 
be the following line:

$myDatabase = new Win32::ODBC($data_source);

It just keeps hanging at that line. If I go to Windows Task Manager, I see 
perl.exe running, but at a fixed memory space (no changes). Also, forcing 
perl.exe off the Task Manager unstalls the CGI program and it just prints all 
the debug comments up to the code I wrote above.

Someone suggested that I switch to another JDK but our workplace uses only Sun 
JDK for production servers...any insights to resolving this other than writing 
a whole new module in Java?

-Original Message-

> Date: Sun Oct 14 18:29:57 EDT 2007
> From: "Mark Thomas" <[EMAIL PROTECTED]>
> Subject: Re: Perl Permissions on Tomcat
> To: "Tomcat Users List" 
>
> Li Ye Chen wrote:
> > Script A (the problem script) continues to run after 2 minutes (with 
> > partial output some of the time). But script A ran under the command line 
> > (as opposed to the browser/Tomcat) is very fast -- under a second and gives 
> > full output. Script B runs under less than a second and gives full output.
> 
> Sounds like you need to add some debugging to your script to figure
> out where the problem is.
> 
> Mark
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Perl Permissions on Tomcat

2007-10-11 Thread Li Ye Chen
Script A (the problem script) continues to run after 2 minutes (with partial 
output some of the time). But script A ran under the command line (as opposed 
to the browser/Tomcat) is very fast -- under a second and gives full output. 
Script B runs under less than a second and gives full output.

-Original Message-

> Date: Wed Oct 10 18:07:30 EDT 2007
> From: "Mark Thomas" <[EMAIL PROTECTED]>
> Subject: Re: Perl Permissions on Tomcat
> To: "Tomcat Users List" 
>
> Li Ye Chen wrote:
> > Apparently, it may also be a speed issue, since there was once when I ran 
> > script A and after a while, I stopped the transmission -- there was 
> > actually a partial output from the script.
> 
> How long does script A take to run?
> 
> Mark
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Perl Permissions on Tomcat

2007-10-10 Thread Li Ye Chen
Yes, if you mean enabling the file server/lib/servlets-cgi.jar...

-Original Message-

> Date: Mon Oct 09 18:25:12 EDT 2000
> From: "Martin Gainty" <[EMAIL PROTECTED]>
> Subject: Re: Perl Permissions on Tomcat
> To: "Tomcat Users List" 
>
> I asked yesterday but didnt hear back..Are you implementing via CGIServlet?
> 
> M--
> - Original Message -
> From: "Li Ye Chen" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Tuesday, October 09, 2007 4:34 PM
> Subject: Re: Perl Permissions on Tomcat
> 
> 
> > Okay, I did some searching on the Internet and found that according to
> current config in my Tomcat, it's not even running SecurityManager
> (the -Djava...securitymanager argument is not available in the Java tab of
> the Configuration screen. And it is still not working, so I'm not sure what
> is going on here...
> >
> > Any help will be appreciated!
> >
> > -Original Message-
> >
> > > Date: Mon Oct 08 12:52:23 EDT 2007
> > > From: "Mark Thomas" <[EMAIL PROTECTED]>
> > > Subject: Re: Perl Permissions on Tomcat
> > > To: "Tomcat Users List" 
> > >
> > > Li Ye Chen wrote:
> > > > Will it pose a security risk if I disable the Security Manager? I am
> running an enterprise firewall on the server...
> > >
> > > That depends on your environment. But you have a separate machine for
> > > development and/or testing - right?
> > >
> > > Right now we need to figure out if it is the security manager causing
> > > the problem or something else.
> > >
> > > Mark
> > >
> > > -
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Perl Permissions on Tomcat

2007-10-10 Thread Li Ye Chen
I assume it's a permission problem since:

1) I'm trying to run script A (the script with the problem), and
2) script B ran with no problems at all, but
3) script A also ran with no problems if executed from the command line 
directly instead of in the browser via Tomcat server...

both scripts A and B are in the WEB-INF/cgi folder of a webapp in the Tomcat 
server. There are no error messages. Apparently, it may also be a speed issue, 
since there was once when I ran script A and after a while, I stopped the 
transmission -- there was actually a partial output from the script.

-Original Message-

> Date: Tue Oct 09 16:54:50 EDT 2007
> From: "Christopher Schultz" <[EMAIL PROTECTED]>
> Subject: Re: Perl Permissions on Tomcat
> To: "Tomcat Users List" 
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Li,
> 
> Li Ye Chen wrote:
> > Hi, I'm trying to run a Perl script on Tomcat 5.5.8 -- I've managed
> > to successfully run read-only Perl script, but the script I'm trying
> > to run connects to the database and needs to write to the local hard
> > drive. Whenever I try to execute the script, it creates a Perl.exe
> > thread on my Windows server and just never return the HTML code (so
> > the browser keeps loading) -- it seems there is a permission problem.
> 
> Why do you believe there is a permissions problem? If perl.exe is
> running, then you have permission to run perl.exe. If you don't have
> permission to read the script file, then you should be getting some kind
> of error message somewhere.
> 
> Can you see any error messages anywhere?
> 
> How are you trying to execute this perl script? Be specific.
> 
> - -chris
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFHC+qa9CaO5/Lv0PARApzZAJsGg5LMZXycPyWTHUpbJ8cyk7mWrgCcDRPo
> Q+HJ78JMBbf3cDZsnbveV08=
> =IZrk
> -END PGP SIGNATURE-
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Perl Permissions on Tomcat

2007-10-09 Thread Li Ye Chen
Okay, I did some searching on the Internet and found that according to current 
config in my Tomcat, it's not even running SecurityManager (the 
-Djava...securitymanager argument is not available in the Java tab of the 
Configuration screen. And it is still not working, so I'm not sure what is 
going on here...

Any help will be appreciated!

-Original Message-

> Date: Mon Oct 08 12:52:23 EDT 2007
> From: "Mark Thomas" <[EMAIL PROTECTED]>
> Subject: Re: Perl Permissions on Tomcat
> To: "Tomcat Users List" 
>
> Li Ye Chen wrote:
> > Will it pose a security risk if I disable the Security Manager? I am 
> > running an enterprise firewall on the server...
> 
> That depends on your environment. But you have a separate machine for
> development and/or testing - right?
> 
> Right now we need to figure out if it is the security manager causing
> the problem or something else.
> 
> Mark
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Perl Permissions on Tomcat

2007-10-09 Thread Li Ye Chen
I'm running Tomcat on Windows XP, and in my Configuration -> Startup menu, the 
entry for the Arguments text box is "start", with no other string (nothing that 
says "-security"). Does that mean I'm currently running without SecurityManager?

-Original Message-

> Date: Mon Oct 08 12:03:37 EDT 2007
> From: "Mark Thomas" <[EMAIL PROTECTED]>
> Subject: Re: Perl Permissions on Tomcat
> To: "Tomcat Users List" 
>
> Li Ye Chen wrote:
> > // Give all permission to servlets-cgi.jar
> > grant codeBase "file:${catalina.home}/server/lib/servlets-cgi.jar" {
> > permission java.security.AllPermission;
> > };
> 
> Are you running with a security manger? If so, try running without and
> get things working that way first. Then we can focus on the permissions.
> 
> Mark
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Perl Permissions on Tomcat

2007-10-08 Thread Li Ye Chen
Yes, it's on a separate machine...

-Original Message-

> Date: Mon Oct 08 12:52:23 EDT 2007
> From: "Mark Thomas" <[EMAIL PROTECTED]>
> Subject: Re: Perl Permissions on Tomcat
> To: "Tomcat Users List" 
>
> Li Ye Chen wrote:
> > Will it pose a security risk if I disable the Security Manager? I am 
> > running an enterprise firewall on the server...
> 
> That depends on your environment. But you have a separate machine for
> development and/or testing - right?
> 
> Right now we need to figure out if it is the security manager causing
> the problem or something else.
> 
> Mark
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Perl Permissions on Tomcat

2007-10-08 Thread Li Ye Chen
Will it pose a security risk if I disable the Security Manager? I am running an 
enterprise firewall on the server...

-Original Message-

> Date: Mon Oct 08 12:03:37 EDT 2007
> From: "Mark Thomas" <[EMAIL PROTECTED]>
> Subject: Re: Perl Permissions on Tomcat
> To: "Tomcat Users List" 
>
> Li Ye Chen wrote:
> > // Give all permission to servlets-cgi.jar
> > grant codeBase "file:${catalina.home}/server/lib/servlets-cgi.jar" {
> > permission java.security.AllPermission;
> > };
> 
> Are you running with a security manger? If so, try running without and
> get things working that way first. Then we can focus on the permissions.
> 
> Mark
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Perl Permissions on Tomcat

2007-10-08 Thread Li Ye Chen
Hi,
   I'm trying to run a Perl script on Tomcat 5.5.8 -- I've managed to 
successfully run read-only Perl script, but the script I'm trying to run 
connects to the database and needs to write to the local hard drive. Whenever I 
try to execute the script, it creates a Perl.exe thread on my Windows server 
and just never return the HTML code (so the browser keeps loading) -- it seems 
there is a permission problem. I've tried executing the script on plain old DOS 
and it works just fine (returns the right HTML code with database information). 
I've also searched the mailing archives, and tried changing the catalina.policy 
file by adding the following line:

// Give all permission to servlets-cgi.jar
grant codeBase "file:${catalina.home}/server/lib/servlets-cgi.jar" {
permission java.security.AllPermission;
};

but it doesn't work. Any idea how I can give Perl.exe read/write permission as 
executed through Tomcat 5.5.8? Thanks in advance!


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