Accessing a class file under WEB-INF/classes from JSP

2007-05-23 Thread Rajiv M

Seems like with JDK 1.4, Sun has enforced classes belonging to the
default package from being imported in JSP. Is the only way to resolve
the problem is to include classes under a package and then import the
package in JSP?

Or is there some way in Tomcat which can cause JSP to access the class
files from WEB-INF/classes directory

-
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: Accessing a class file under WEB-INF/classes from JSP

2007-05-23 Thread Rajiv M

No. This will again give class cannot be resolved to type error

On 5/23/07, Robert Soeding [EMAIL PROTECTED] wrote:

Does
[EMAIL PROTECTED] import=YourClass%
work?

Rajiv M wrote:
 Seems like with JDK 1.4, Sun has enforced classes belonging to the
 default package from being imported in JSP. Is the only way to resolve
 the problem is to include classes under a package and then import the
 package in JSP?

 Or is there some way in Tomcat which can cause JSP to access the class
 files from WEB-INF/classes directory

 -
 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]





--
~~~Truth is out there.~~~

-
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: Accessing a class file under WEB-INF/classes from JSP

2007-05-23 Thread Rajiv M

jsp:useBean class=classname does not help either. Same error
- classname cannot be resolved to a type.

Of course, adding package solves all the problems. But what can be
done to modify 3rd party classes already in WEB-INF/classes prior to
this Sun restriction...

On 5/23/07, Williams, Allen [EMAIL PROTECTED] wrote:

Or, jsp:usebean ..., but I don't know if that works with the default
package.  Why don't you put the classes in a package?  Although I
haven't been doing this web programming stuff myself very long, that
seems to be the consensus best practices approach, which is why I
think Sun discontinued it.

anw

 -Original Message-
 From: Robert Soeding [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 23, 2007 12:51 PM
 To: Tomcat Users List
 Subject: Re: Accessing a class file under WEB-INF/classes from JSP

 Does
 [EMAIL PROTECTED] import=YourClass%
 work?

 Rajiv M wrote:
  Seems like with JDK 1.4, Sun has enforced classes belonging to the
  default package from being imported in JSP. Is the only way
 to resolve
  the problem is to include classes under a package and then
 import the
  package in JSP?
 
  Or is there some way in Tomcat which can cause JSP to
 access the class
  files from WEB-INF/classes directory
 
 
 -
  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]





--
~~~Truth is out there.~~~

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



HTTP compression

2007-04-27 Thread Rajiv M

hello,

Does Tomcat support HTTP compression.
If yes, is there a way to enable/disable this feature

Rajiv

-
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: HTTP compression

2007-04-27 Thread Rajiv M

Thank you!

Is there a testcase/sample app where I can see the difference of
enabling/disabling HTTP compression.

On 4/27/07, Praveen Balaji [EMAIL PROTECTED] wrote:

See if the compression property is what you need:

http://tomcat.apache.org/tomcat-5.5-doc/config/http.html


-Original Message-
From: Rajiv M [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 5:10 PM
To: Tomcat Users List
Subject: HTTP compression

hello,

Does Tomcat support HTTP compression.
If yes, is there a way to enable/disable this feature

Rajiv

-
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]





--
~~~Truth is out there.~~~

-
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: nsapi_redirector.so

2007-04-13 Thread Rajiv M

I have tried couple of tests with jsp and servlet redirection to
Tomcat. jsp(s) work fine. Having a problem with servlets.

To begin with, here is my obj.conf settings:
NameTrans fn=pfx2dir from=/try dir=/usr/jakarta-tomcat-5.5.0/webapps
...
NameTrans fn=assign-name from=/try/servlets-examples/* name=jknsapi
NameTrans fn=assign-name from=/try/jsp-examples/*.jsp name=jknsapi

I have Tomcat 5.5 running.

When i launch http://sunserver:port/try/servlet-examples it loads the
default html page listing the Servlet examples. But when I click on
Execute none of the servlets seem to be invoked.

server logs this error:
[13/Apr/2007:21:21:09] warning ( 4552): for host 9.182.74.72 trying to
GET /try/servlets-examples/servlet/HelloWorldExample, send-file
reports: HTTP4142: can't find
/usr/jakarta-tomcat-5.5.0/webapps/servlets-examples/servlet/HelloWorldExample
(File not found)

So it looks for servlets under webapps/servlet-examples/servlet

How to rectify this and invoke Tomcat example servlets from SunOne server

Thanks
Rajiv

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: nsapi_redirector.so

2007-04-13 Thread Rajiv M

Cheers!

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: nsapi_redirector.so

2007-04-12 Thread Rajiv M

Apologies for my ignorance. The server is up! I will try more tests
with the tomcat connector redirection now.

Thanks a trillion
Rajiv

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: nsapi_redirector.so

2007-04-12 Thread Rajiv M

Now I tried to follow the below URL:
http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html

And modified the obj.conf to add these lines:
NameTrans fn=pfx2dir from=/examples
dir=/usr/jakarta-tomcat-5.5.0/webapps/jsp-examples

NameTrans fn=assign-name from=/examples/jsp/*.jsp name=jknsapi
NameTrans fn=assign-name from=/examples/servlets/* name=jknsapi

After this, restarted the Web server.

access log shows:
9.182.74.72 - - [13/Apr/2007:01:31:06 +0530] GET /examples/jsp
HTTP/1.1 500 305
9.182.74.72 - - [13/Apr/2007:01:31:10 +0530] GET /examples/jsp/
HTTP/1.1 500 305
9.182.74.72 - - [13/Apr/2007:01:31:19 +0530] GET
/examples/jsp/source.jsp HTTP/1.1 500 305

error log shows:
[13/Apr/2007:01:29:30] info ( 2277): HTTP3072: [LS ls1]
http://sun210dev2.in.ibm.com:83 ready to accept requests
[13/Apr/2007:01:29:30] fine ( 2277): Released configuration 1
[13/Apr/2007:01:29:30] fine ( 2277): Installed configuration 1
[13/Apr/2007:01:29:30] fine ( 2277): Started 48 request processing threads
[13/Apr/2007:01:29:30] info ( 2277): CORE3274: successful server startup
[13/Apr/2007:01:29:30] fine ( 2277): entering low latency mode
[13/Apr/2007:01:31:06] config ( 2277): for host 9.182.74.72 trying to
GET /examples/jsp, func_exec reports: HTTP2122: cannot find function
named ntrans-j2ee
[13/Apr/2007:01:31:06] config ( 2277): for host 9.182.74.72 trying to
GET /examples/jsp, func_exec reports: HTTP2122: cannot find function
named error-j2ee
[13/Apr/2007:01:31:10] config ( 2277): for host 9.182.74.72 trying to
GET /examples/jsp/, func_exec reports: HTTP2122: cannot find function
named ntrans-j2ee
[13/Apr/2007:01:31:10] config ( 2277): for host 9.182.74.72 trying to
GET /examples/jsp/, func_exec reports: HTTP2122: cannot find function
named error-j2ee
[13/Apr/2007:01:31:19] config ( 2277): for host 9.182.74.72 trying to
GET /examples/jsp/source.jsp, func_exec reports: HTTP2122: cannot find
function named ntrans-j2ee
[13/Apr/2007:01:31:19] config ( 2277): for host 9.182.74.72 trying to
GET /examples/jsp/source.jsp, func_exec reports: HTTP2122: cannot find
function named error-j2ee

http://sun210dev2.in.ibm.com:83/jsp-examples/ ends in 500 Internal server error.

Thanks
Rajiv

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: nsapi_redirector.so

2007-04-12 Thread Rajiv M

Ignore this mail. I sorted out the problem. Path configuration issues
within obj.conf. Thanks a lot Rainer.

BTW, Can the .so you supplied be used in production

Thanks
Rajiv

On 4/12/07, Rajiv M [EMAIL PROTECTED] wrote:

Now I tried to follow the below URL:
http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html

And modified the obj.conf to add these lines:
NameTrans fn=pfx2dir from=/examples
dir=/usr/jakarta-tomcat-5.5.0/webapps/jsp-examples

NameTrans fn=assign-name from=/examples/jsp/*.jsp name=jknsapi
NameTrans fn=assign-name from=/examples/servlets/* name=jknsapi

After this, restarted the Web server.

access log shows:
9.182.74.72 - - [13/Apr/2007:01:31:06 +0530] GET /examples/jsp
HTTP/1.1 500 305
9.182.74.72 - - [13/Apr/2007:01:31:10 +0530] GET /examples/jsp/
HTTP/1.1 500 305
9.182.74.72 - - [13/Apr/2007:01:31:19 +0530] GET
/examples/jsp/source.jsp HTTP/1.1 500 305

error log shows:
[13/Apr/2007:01:29:30] info ( 2277): HTTP3072: [LS ls1]
http://sun210dev2.in.ibm.com:83 ready to accept requests
[13/Apr/2007:01:29:30] fine ( 2277): Released configuration 1
[13/Apr/2007:01:29:30] fine ( 2277): Installed configuration 1
[13/Apr/2007:01:29:30] fine ( 2277): Started 48 request processing threads
[13/Apr/2007:01:29:30] info ( 2277): CORE3274: successful server startup
[13/Apr/2007:01:29:30] fine ( 2277): entering low latency mode
[13/Apr/2007:01:31:06] config ( 2277): for host 9.182.74.72 trying to
GET /examples/jsp, func_exec reports: HTTP2122: cannot find function
named ntrans-j2ee
[13/Apr/2007:01:31:06] config ( 2277): for host 9.182.74.72 trying to
GET /examples/jsp, func_exec reports: HTTP2122: cannot find function
named error-j2ee
[13/Apr/2007:01:31:10] config ( 2277): for host 9.182.74.72 trying to
GET /examples/jsp/, func_exec reports: HTTP2122: cannot find function
named ntrans-j2ee
[13/Apr/2007:01:31:10] config ( 2277): for host 9.182.74.72 trying to
GET /examples/jsp/, func_exec reports: HTTP2122: cannot find function
named error-j2ee
[13/Apr/2007:01:31:19] config ( 2277): for host 9.182.74.72 trying to
GET /examples/jsp/source.jsp, func_exec reports: HTTP2122: cannot find
function named ntrans-j2ee
[13/Apr/2007:01:31:19] config ( 2277): for host 9.182.74.72 trying to
GET /examples/jsp/source.jsp, func_exec reports: HTTP2122: cannot find
function named error-j2ee

http://sun210dev2.in.ibm.com:83/jsp-examples/ ends in 500 Internal server error.

Thanks
Rajiv




--
~~~Truth is out there.~~~

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: nsapi_redirector.so

2007-04-11 Thread Rajiv M

hi Rainer,

Thank you for the libraries!!

I picked nsapi_redirector.so_sjsws61_sp7_64 for tests on my Solaris 10
setup. Upgraded the Sun Web server to 6.1 SP7. Made the necessary
configuration for Tomcat connector and started Tomcat.

On launching Sun Web Server, now, I receive:

[https-sun210dev2.in.ibm.com]: start failed. (0: Error 0)
[https-sun210dev2.in.ibm.com]: Sun ONE Web Server 6.1SP7 (64-Bit)
B01/12/2007 06:13
[https-sun210dev2.in.ibm.com]: fine: Emulating writev for filter
http-compression
[https-sun210dev2.in.ibm.com]: fine: Emulating sendfile for filter
http-compression
[https-sun210dev2.in.ibm.com]: fine: HTTP3063: KeepAliveTimeout is 30
seconds (default value)
[https-sun210dev2.in.ibm.com]: fine: HTTP3067: PostThreadsEarly set to off
[https-sun210dev2.in.ibm.com]: warning: CORE3283: stderr: In jk_init.
[https-sun210dev2.in.ibm.com]: warning: CORE3283: stderr: Worker file
= /usr/jakarta-tomcat-5.5.0/conf/workers.properties.
[https-sun210dev2.in.ibm.com]: warning: CORE3283: stderr: Log level = debug.
[https-sun210dev2.in.ibm.com]: warning: CORE3283: stderr: Log File =
/usr/jakarta-tomcat-5.5.0/conf/nsapi.log
[https-sun210dev2.in.ibm.com]: failure: CORE3170: Configuration
initialization failed: Error running init function jk_init: unknown
error
[https-sun210dev2.in.ibm.com]: failure: server initialization failed

Error
An error occurred during startup.
The server https-sun210dev2.in.ibm.com was not started.

magnus.conf has:
Init fn=load-modules funcs=jk_init,jk_service
shlib=/usr/jakarta-tomcat-5.5.0/conf/nsapi_redirector.so_sjsws61_sp7_64
shlib_flags=(global|now)
Init fn=jk_init
worker_file=/usr/jakarta-tomcat-5.5.0/conf/workers.properties
log_level=debug log_file=/usr/jakarta-tomcat-5.5.0/conf/nsapi.log

The nsapi.log was created and it shows a single line:

[Thu Apr 12 01:18:00 2007] [1471:0001] [debug] do_shm_open::jk_shm.c
(343): Using process memory as shared memory

Any hints/tips are welcome

Thanks
Rajiv

-
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: nsapi_redirector.so

2007-04-11 Thread Rajiv M

Did the changes.
Server still shows error on startup:

[https-sun210dev2.in.ibm.com]: failure: CORE3170: Configuration
initialization failed: Error running init function jk_init: unknown
error

nsapi.log indicates:

[Thu Apr 12 03:16:31 2007] [1639:0001] [debug] do_shm_open::jk_shm.c
(374): Truncated shared memory to 28800
[Thu Apr 12 03:16:31 2007] [1639:0001] [debug] do_shm_open::jk_shm.c
(405): Initialized shared memory size=28800 free=28672
addr=0x7590
[Thu Apr 12 03:16:31 2007] [1639:0001] [debug]
do_shm_open_lock::jk_shm.c (310): Opened shared memory lock
/usr/jakarta-tomcat-5.5.0/conf/jk-runtime-status.1639.lock

Thanks,
Rajiv

-
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: nsapi_redirector.so

2007-04-11 Thread Rajiv M

I was following the steps in the below URL:
http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html

Now, when I see the jk binaries for Solaris:
http://apache.siamwebhosting.com/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.21/

there are mod_jk-1.2.21-apache-2.2.x-solaris10-intel-gcc.so and
mod_jk-1.2.21-apache-2.2.x-solaris9-sparc-gcc.so. I am not sure
whether these need to be present in the Solaris machine or not.

Should we configure these Tomcat connector binaries also in any way..
if yes, what way.

Thanks
Rajiv

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



nsapi_redirector.so

2007-04-10 Thread Rajiv M

Hello,

Where can I download a pre-built nsapi_redirector.so (AJP13) for
Solaris SPARC 10. Is it available in Apache downloads or archives. I
was unable to build the library for various reasons. And one I
obtained from internet causes SunOne server to error out at launch:

[https-sun210dev2.in.ibm.com]: start failed. (0: Error 0)
[https-sun210dev2.in.ibm.com]: Sun ONE Web Server 6.1SP5 (64-Bit)
B12/02/2005 04:37
[https-sun210dev2.in.ibm.com]: failure: CORE3170: Configuration
initialization failed: Error running init function load-modules:
dlopen of /usr/jakarta-tomcat-5.5.0/conf/nsapi_redirector.so failed
(ld.so.1: webservd: fatal:
/usr/jakarta-tomcat-5.5.0/conf/nsapi_redirector.so: wrong ELF class:
ELFCLASS32)
[https-sun210dev2.in.ibm.com]: failure: server initialization failed

Thanks
Rajiv

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