Re: 'jsp:include' tag

2001-04-11 Thread Dmitry Rogatkin

try to add flush="true"
it should be optional in next releases.

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Leon Palermo [EMAIL PROTECTED]
Sent:Wed, 11 Apr 2001 12:08:15 -0400
To:  [EMAIL PROTECTED]
Subject: 'jsp:include' tag


Hello all,

Does anyone have problems with the 'jsp:include' tag with tomcat.  I always
get the following error when I try to use it:

Internal Servlet Error:

org.apache.jasper.compiler.CompileException: Welcome.jsp(15,0) Invalid
jsp:include tag
 at org.apache.jasper.compiler.IncludeGenerator.(IncludeGenerator.java:95)
 at
org.apache.jasper.compiler.JspParseEventListener.handleInclude(JspParseEvent
Listener.java:877)
 at
org.apache.jasper.compiler.DelegatingListener.handleInclude(DelegatingListen
er.java:185)
 at org.apache.jasper.compiler.Parser$Include.accept(Parser.java:299)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1070)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1035)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1031)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
 at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:453)
 at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
 at org.apache.tomcat.core.Handler.service(Handler.java:263)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:78
6)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

Here is the code in the jsp:



Anyone know what the dealis?

Thanks in advance!

Leon Palermo




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




TC 4.0b3 Cass loader race condition or other glitch

2001-04-13 Thread Dmitry Rogatkin

I have pretty complex servlet defined as separate classes and as JAR files. If I 
specify load-on-startup, then I can get an exception Class not found arbitrary for any 
class from lib or classes directory, but likely for lib classes. However, it's likely 
happened after 2nd restart. It looks like OS started caching some class files and race 
condition or something other bad thing happened in class loaders. If I do not specify 
load-on-startup, all goes smoothly. I believe that it's related to reload problems 
recently reported. Could somebody confirm a similar behavior?

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA


___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




Re: Tomcat vs JServ

2001-04-19 Thread Dmitry Rogatkin

I use the rule - "Nothing extra". If you do not use JSP, then JServe could be better 
choice as "Best Free Product 1999".

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Eric Mosley [EMAIL PROTECTED]
Sent:Thu, 19 Apr 2001 10:59:22 +0100
To:  [EMAIL PROTECTED]
Subject: Tomcat vs JServ


Hi,

I'm trying to evaluate whether to use Tomcat or JServ. The system will be
freeBSD and I know that Tomcat has some "issues" with that - but I'm willing
to take the chance.

However, if speed and memory are issues which would be best for basic
servlet functionality?

Surely it would be JServ as it has been in bug fixing mode for so long it
will have matured and is quite fast anyway?

Any insights appreciated,

Eric





___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




Re: Can I serve up JSP without a web server?

2001-05-01 Thread Dmitry Rogatkin

Open file conf\server.xml in any text editor. Search for 
mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 3:33 PM
To: '[EMAIL PROTECTED]'
Subject: Re: Newbie : Help integrating Tomcat with PWS on NT


Hi Keith

Here is a previous post on the subject. It seems most errors with this occur
because of incorrect registry settings. Attached is also a registry example
pic previously posted (the person had problems so this may be wrong) that
you can use as an example.
 <> 

As for the web server you choose, that decision should be based on many
factors e.g. company policy, client needs, requirements etc. So if PWS fits
your purpose then it should be fine to use. 

> -Original Message-
> From: Craig O'Brien [SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, April 22, 2001 9:28 PM
> To:   [EMAIL PROTECTED]
> Subject:  RE: Tomcat  & Windows NT & IIS
> 
> Good,
> 
> So you have tomcat running and can view the JSP and Servlet examples using
> port 8080.  (localhost:8080/)  Do not add any contexts yet.  First you
> want
> to get the isapi_redirect.dll installed so that you can call the examples
> directly without referencing the port. If you haven't downloaded this yet
> get the binary from the apache site.  There are several steps to follow in
> the "IIS how to" instructions.  Again follow them explicitly.  You will
> need
> to register the isapi _redirect.dll with IIs, modify your registry (be
> very
> careful!!), create a directory to place the isapi redirect into, and
> modify
> your workers properties file. (tomcat/conf/workersproperties)  I am doing
> this by memory so follow your instructions carefully. Most people make
> their
> errors in the registry settings. Again it is so much easier if you print
> out
> the instructions.
> 
> If you want to test some jsps or servlets that you have already made
> before
> you have the isapi working, place the jsps into the ROOT directory and
> call
> them with (localhost:8080/yourjspname.jsp).  Servlets must be placed in
> the
> WEB_INF/classes directory and are referenced by
> (localhost:8080/servlet/yourservletname_noextention).  Spend a little time
> getting familiar with the directories.  All of your web apps go under the
> webapps/ROOT directory. You will know if isapi is working when you can
> drop
> the port reference and still get them.
> 
> Sounds like you are getting there. Go one small step at a time, test your
> results, then proceed.  By the time you install tomcat for the 3rd or 4th
> time it will only take 30 minutes.  Print out all of the conf files.  All
> your tomcat configuration is done through modifying them. They are well
> documented with comments.
> 
> Tomcat adheres strictly to the Sun jsp/servlet APIs so those documents are
> worth getting familiar with as well.
> 
> Good luck,
> Craig
> 
> It's late here, I'm out for the night.
> 
> 
> 
> 
> -Original Message-
> From: test test [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 22, 2001 8:35 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Tomcat & Windows NT & IIS
> 
> 
> Craig
> 
> Thank you for your advice.
> 
> I have been through the instructions on IIS (tomcat-iis-howto.html).
> 
> However, I still cannot get the examples to work under IIS (they work fine
> with Tomcat),
> 
> I have been through the trouble shooting section with no luck.
> 
> I have not added any contexts as I can't get the examples to work.
> 
> Not sure what to do now, please help !
> 
> Thanks
> 
> Hamant
> 
> 
> 
> -Original Message-
> From: Craig O'Brien [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 23 April 2001 11:37
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat & Windows 2000
> 
> 
> More information is needed if anyone is to help you.
> 
> The documentation in the tomcat download is very good.  Tomcat works well
> with Windows 2000 and IIS and many other operating systems.  Tomcat is
> 100%
> java.
> 
> If you haven't found the documentation it is in the doc directory.  Print
> it
> out and follow it explicitly. (print out the documentation, use a pencil
> to
> mark your steps.) If you have problems relay the steps you have taken and
> what error messages you are getting. The more detail the better.
> 
> Regards,
> Craig
> 
> 
> -Original Message-
> From: test test [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 22, 2001 5:00 PM
> To: '[EMAIL PROTECTED]'
> Subject: FW: Tomcat & Windows 2000
> 
> 
> 
> 
> >  -Original Message-
> > From:   test test
> > Sent:   Thursday, 19 April 2001 15:45
> > To: '[EMAIL PROTECTED]'
> > Subject:Tomcat  & Windows 2000
> >
> > hello
> >
> > Can anybody please tell me how I can get Tomcat to work with Windows
> 2000
> > (using IIS web server).
> >
> > I have searched the user archives - similar questions have been raised
> but
> > I can't see the answers.
> >
> > Please help
> >
> > Many thanks
> >
> > Hamant



___
Visit http://www.visto.com/info, your free web-based comm

Re: Session problem

2001-05-11 Thread Dmitry Rogatkin

You do not need to apply encodeURL for regular URL not going through a servlet 
container. However, if unconditional.xml links to another part of your servlet, then 
you may loose your session. As a solution, you could write a file servlet and get your 
page as
/web-app/myFileServlet;jsessionid=snc8bkdsu1?load=/inip/xml/unconditional.xml

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Leon Nicholls [EMAIL PROTECTED]
Sent:Fri, 11 May 2001 11:03:41 -0500
To:  [EMAIL PROTECTED]
Subject: Session problem


Hi 

I am having weird problems with sessions when I disable cookies. 

If I have a link like /inip/xml/unconditional.xml;jsessionid=snc8bkdsu1
(after applying encodeURL), I get the following response when you click
on the link 
404 Not Found: The requested URL
/inip/xml/unconditional.xml;jsessionid=snc8bkdsu1 was not found on this
server.

The page works as /inip/xml/unconditional.xml (only no session info as
expected) The page works fine with cookies enabled. 

I am using Apache 1.3.14, Tomcat 3.2.1 and Cocoon 1.8.2 on NT2000.

Leon Nicholls   INtelligentIP Division
Sonus Networks, Inc.Tel: (972) 728-8953
Suite 3000  Fax: (972) 301-4901
1701 N. Collins Blvd.   www.sonusnet.com
Richardson, TX 75080www.inippowered.com




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




Re: upload 1 GB files

2001-05-15 Thread Dmitry Rogatkin

It looks like JSPSmartUpload uses memory for getting entire upload. It could be a 
problem if more than 10 users will upload 1GB file at the same time, because not so 
many servers have RAM over 10GB. In any case upload procedure so simple, that you can 
implement it in 1-2 hours using external storage to prevent memory overflow.


Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:aswath satrasala [EMAIL PROTECTED]
Sent:Tue, 15 May 2001 11:09:42 -0700
To:  [EMAIL PROTECTED]
Subject: upload 1 GB files


Hi,
We have a requirement from our website for the users to be
able to upload 1GB files.

Since the files are huge, can anyone suggest, what is
the best approach.

Right now, I am using JSPSmartUpload.  I would like
to know if JSPSmartUpload can handle 1GB files.

Please suggest.

Thanks
-Aswath





>From: "Egidijus Drobavicius" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: POST File: weird situation
>Date: Tue, 15 May 2001 17:40:04 +0200
>
>Hello,
>
>I've ran into strange a bit situation:
>i have to do file upload. I did this and there is no question about that.
>The question is:
>i want first verify all the data and then ask the user to confirm it. So i
>get all inputs and do my check, then i'd like to generate a page that has
>only 2 buttons submit and cancel, and on submit upload the data. Here the
>problem comes. Is it possible to do that? I mean is there any way of doing
>such a form? There is no attribute hidden for input type file. Is there any
>way at least to set the value for this field?
>I've tried using value="myfilename", but this does not work.
>
>The problem can be solved by parsing all the data in the POST data request.
>But this stream contains useful data and  I can not later retrieve it. E.g
>stream has
> 
>I am not sure if the request can be served without knowledge about fields
> and . However, to get these values i must skip maybe
>useful information. I can not use temporary files for storing it.
>
>Huh, if someone got what I am talking about, could you please share your
>possible ideas with me.
>
>Thanks,
>Egidijus
>

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




Re: incomplete output

2001-06-19 Thread Dmitry Rogatkin

Mike,
I had similar problems, but not exact. My experience may help you.
1. Check directives like:
<%@ page buffer="18" autoFlush="true" %>
and make sure that autoFlush="true"
2. Do not close out stream in include servlets and pages.

I hope it could help.

Dmitry R., [EMAIL PROTECTED]
Chief Software Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Mike Spreitzer [EMAIL PROTECTED]
Sent:Tue, 19 Jun 2001 18:04:22 -0400
To:  [EMAIL PROTECTED]
Subject: incomplete output


I'm having problems with what looks like a lack of a flush somewhere 
inside tomcat.  I'm running Tomcat 3.2.2b3 on RedHat Linux 6.2 with IBM's 
JDK 1.3.  My web app is mildly complicated, with nested <%@ include's and 
an invocation of RequestDispatcher.include().  The bytes returned to the 
browser are missing a range between somewhere inside a nested <%@ 
include'd file and the start of the RequestDispatcher.include() output. 
Has anybody else seen bugs in this neck of the woods?  Got any 
workarounds?  I've looked at the release notes for 3.2.2, and don't see 
something that looks like this.

Thanks,
Mike



___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




Re: Has the servlet be compiled?

2001-06-19 Thread Dmitry Rogatkin

You could put your java files in directory 
tomcat/work/your_host(localhost)/context_name and look what happen. Tomcat compiles 
JSP sources automatically in this directory, so there is a chance that you files will 
be compiled too.

Dmitry R., [EMAIL PROTECTED]
Chief Software Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:[EMAIL PROTECTED]
Sent:Wed, 20 Jun 2001 00:24:22 +0200
To:  [EMAIL PROTECTED]
Subject: Has the servlet be compiled?


I have to compile the servlet?
I ha a simple servlet (Hello world)
what I have to do:
-complie and put it (file.class) in appropriate directory
-or just put it (file.java) in appropriate directory?

and how can I compile a servlet?
Thank you in advance, Mario.



___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




Re: flushing

2001-06-19 Thread Dmitry Rogatkin

Out is buffered for content length calculation as it's done in Sun's HTTP client 
implementation. Try to use HTTP 1.1 chuncked stream not requiring to set content 
length. 


Dmitry R., [EMAIL PROTECTED]
Chief Software Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:T [EMAIL PROTECTED]
Sent:Tue, 19 Jun 2001 18:26:03 -0400
To:  [EMAIL PROTECTED]
Subject: flushing


How can I flush Tomcat? Nothing from the PrintWriter reaches the
browser until the servlet completes. flush() does nothing. Has anybody
altered the facade classes to enable flushing?

Why is Tomcat set up that way?

Thanks.






___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




Open file inside WAR using relative path

2001-08-29 Thread Dmitry Rogatkin

Product: tomcat standalone
Version: 4.0 beta 7
I'm deploying ChatHouse servlet as WAR file. web.xml points some file inside the WAR 
as init parameter. Is there mechanism to refer files inside WAR in servlet/JSP using 
only context name? I expected that WEB-INF/conf/myfile.txt will work, but it doesn't. 
Only providing some weird path like ../webapps/ChatHouse/WEB-INF/conf/myfile.txt 
brought me success. But it looks so specific for Tomcat, and fairly won't work on 
other systems. I can put this text file in some of JAR files and access it using class 
loader, but I would prefer refer it as a regular file. Is there some generic way to do 
that?

Thanks,
Dmitry R., [EMAIL PROTECTED]
Chief Software Architect, MetricStream.COM
Santa Clara, CA

___
Visit http://www.visto.com.
Find out  how companies are linking mobile users to the 
enterprise with Visto.




Re: Open file inside WAR using relative path

2001-08-29 Thread Dmitry Rogatkin

Please, disregard my post, I found that using getResourceAsStream from classes 
directory is acceptable by my customers. Thanks everybody for a help.

Dmitry R., [EMAIL PROTECTED]
Chief Software Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Dmitry Rogatkin [EMAIL PROTECTED]
Sent:Wed, 29 Aug 2001 15:21:18 -0700
To:  [EMAIL PROTECTED]
Subject: Open file inside WAR using relative path


Product: tomcat standalone
Version: 4.0 beta 7
I'm deploying ChatHouse servlet as WAR file. web.xml points some file inside the WAR 
as init parameter. Is there mechanism to refer files inside WAR in servlet/JSP using 
only context name? I expected that WEB-INF/conf/myfile.txt will work, but it doesn't. 
Only providing some weird path like ../webapps/ChatHouse/WEB-INF/conf/myfile.txt 
brought me success. But it looks so specific for Tomcat, and fairly won't work on 
other systems. I can put this text file in some of JAR files and access it using class 
loader, but I would prefer refer it as a regular file. Is there some generic way to do 
that?

Thanks,
Dmitry R., [EMAIL PROTECTED]
Chief Software Architect, MetricStream.COM
Santa Clara, CA

___
Visit http://www.visto.com.
Find out  how companies are linking mobile users to the 
enterprise with Visto.



___
Visit http://www.visto.com.
Find out  how companies are linking mobile users to the 
enterprise with Visto.




Re: What are: WAR files, build.xml, etc?

2001-08-29 Thread Dmitry Rogatkin

The simplest way to create WAR file without reading any specs, just zip content of 
your app context directory and give extension WAR to the result. 

Dmitry R., [EMAIL PROTECTED]
Chief Software Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:[EMAIL PROTECTED]
Sent:Thu, 30 Aug 2001 09:12:09 +1000
To:  [EMAIL PROTECTED]
Subject: What are: WAR files, build.xml, etc?


I haven't been able to find out how to make a WAR file or what it's for, or
how to write a build.xml file, or anything like that in the Tomcat docs.

I have ant installed, I know build.xml has something to do with ant.

Also, I modified a Bean in the /examples directory that comes with Tomcat,
modified the .jsp file, recompiled the Bean but I got an error, with an
incorrect line number. I couldn't understand what the error was, there was
no error in my Bean. I just added two new methods and exercised them in the
.jsp file, or I tried to anyway. The Bean compiled without a hitch, but
Tomcat wouldn't execute the JSP file. What's going on? Is there something
I'm missing?

Does this mean I can't just add JSP files, servlets and beans anywhere and
start using them? If not, why not? What do I have to do? How do I build an
application for Tomcat? I haven't seen anything in the documentation that
tells me how to do this.

Thanks heaps.
James





___
Visit http://www.visto.com.
Find out  how companies are linking mobile users to the 
enterprise with Visto.




Re: Content-Length limited to 2^31-1???

2001-08-30 Thread Dmitry Rogatkin

You can always provide content length value using setHeader like methods to avoid int 
limitations. Tomcat shouldn't overwrite header value if it's already set. You can also 
use chunked out where content length simple ignored for files greater than 2GB.

Dmitry R., [EMAIL PROTECTED]
Chief Software Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:David Daney [EMAIL PROTECTED]
Sent:Thu, 30 Aug 2001 14:47:40 -0700
To:  [EMAIL PROTECTED]
Subject: Content-Length limited to 2^31-1???


The problem I am having is that tomcat 3.2.3 seems to (kind of) limit 
content length to Integer.MAX_VALUE (2^31-1 or 2GB).

If I want to serve very large objects things do not work so well.

I seems that ServletResponse.SetContentLength(int) is the prefered 
manner to sent the content length of a servlet response and that the 
default implemtation for the "HEAD" method in HttpServlet also is 
limited to the range of int values.

My reading of the HTTP/1.1 spec does not indicate that there are any 
limitations to content length in the HTTP protocol.

So my question is:  Am I all messed up, or is Tomcat and the servlet 
spec/implementation sub-optimal?

David Daney




___
Visit http://www.visto.com.
Find out  how companies are linking mobile users to the 
enterprise with Visto.




No path info for include page

2001-02-05 Thread Dmitry Rogatkin

Is that normal for Tomcat? I expect to get something from getPathInfo when I have a 
servlet called as a page include. BTW can I expect a session sharing for such servlet 
and wrapper JSP?

Thanks,
Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




Access to session repository

2001-02-08 Thread Dmitry Rogatkin

Is there a way to get access to all active sessions to do manual invalidation and 
other maintaining work, like excluding double logins and so on?

Dmitry R., [EMAIL PROTECTED]

___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




How to avoid the following exception

2001-02-20 Thread Dmitry Rogatkin

Anybody knows what can be issue for:
Catalina.start: LifecycleException:  start: :  java.lang.IllegalArgumentExceptio
n: addRepositoryInternal: java.lang.NullPointerException
LifecycleException:  start: :  java.lang.IllegalArgumentException: addRepository
Internal: java.lang.NullPointerException
at org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:5
62)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1136)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:2
903)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1160)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1160)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:217
)
at org.apache.catalina.core.StandardService.start(StandardService.java:3
53)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:454
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:677)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:618)
at org.apache.catalina.startup.Catalina.process(Catalina.java:175)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:134)
All classes and jars are valid and work without problem when JServ is ised.

Thanks,
Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA

___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




Include page length, why is it restricted?

2001-02-20 Thread Dmitry Rogatkin

I didn't find any restrictions on include page data size in servlet 2.3 specification, 
but Tomcat 4.0 is definitely has it about 4522 bytes. Say more it just cuts included 
page content abruptly including wrapper page also. I hate dig sources, could somebody 
point me what should I change to release this restriction?

Thanks,

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA


___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




Re: Include page length, why is it restricted?

2001-02-20 Thread Dmitry Rogatkin

Thank you,
Actually I have found the cause and it was so stupid. I have 
<%@ page buffer="5" autoFlush="false" %>
settings, so I have only exact 5K page data.


Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Craig R. McClanahan [EMAIL PROTECTED]
Sent:Tue, 20 Feb 2001 19:16:57 -0800
To:  [EMAIL PROTECTED]
Subject: Re: Include page length, why is it restricted?


Dmitry Rogatkin wrote:

> I didn't find any restrictions on include page data size in servlet 2.3 
>specification, but Tomcat 4.0 is definitely has it about 4522 bytes. Say more it just 
>cuts included page content abruptly including wrapper page also. I hate dig sources, 
>could somebody point me what should I change to release this restriction?
>

There is no designed-in limit on the amount of data you can include.  What is possible 
is that your included page or servlet is throwing an exception before it finishes -- 
check the log files in the "logs" directory to see if they show any errors.

>
> Thanks,
>
> Dmitry R., [EMAIL PROTECTED]
> Chief Architect, MetricStream.COM
> Santa Clara, CA
>

Craig McClanahan



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




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




Re: RequestDispatcher.forward() problem

2001-02-21 Thread Dmitry Rogatkin

I met the same problem. To read your query string in included or forwarded servlet, 
you have to use the call:

String query = request.getAttribute("javax.servlet.include.query_string");

Regards,
Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:paul marshal [EMAIL PROTECTED]
Sent:Wed, 21 Feb 2001 16:48:26 +0100
To:  [EMAIL PROTECTED]
Subject: Re: RequestDispatcher.forward() problem


Andrew Kerr wrote:
> 
> Hello,
> 
> I've been having a bit of trouble with the RequestDispatcher.forward()
> method.  If I try to forward to a URL with a query string on it, and
> then have some code that processes the forwarded request, the
> getQueryString() method does not return the query string.  However, the
> parameters _are_ available via getParameter().
> 
> Section 8.1.1 of the Servlet 2.2 spec does not explicitly state what the
> getQueryString() method should return in the event of a forward, but it
> seems to me that if the new request parameters are added to the
> request's internal list of parameters, that it only makes sense to also
> add the parameters to the query string.
> 
> Section 8.4 of the spec states that "the path elements of the request
> object reflect those of the original request."  Although a query string
> is not strictly considered a "path element" according to the spec, it
> does seem in the spirit of section 8.4 that the additional parameters
> should be on the query string.
> 
> Does anyone have any thoughts on this?
> 
> Thanks,
> Andrew

Hi !

I can't answer your exact question. 
But for many purposes - other than reusing an existing servlet class
that you forward to - 

request.setAttribute("name" , valueObject) ; 
RequestDispatcher dest = context.getRequestDispatcher("..."); 
dest.forward(request,response); 

will do. 

-- 
Paul Marshall
[EMAIL PROTECTED]
089/26019-609

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




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




RE: Slow upload speeds

2001-02-21 Thread Dmitry Rogatkin

I have feeling that it's a browser issue. Can somebody who knows browser upload 
mechanism confirm that?

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Tal Dayan [EMAIL PROTECTED]
Sent:Wed, 21 Feb 2001 19:05:06 -0800
To:  [EMAIL PROTECTED]
Subject: RE: Slow upload speeds



We have the same low performance problem with Jason's library. The strange
things is that when the browser and server are on the same machine (using
127.0.0.1) the CPU usage is still low while transferring large files. Our
experience with other client/server applications is that the CPU usage in
such cases gets to 100% (since there is no real I/O to the NIC, all is
handled by the CPU).

I am not sure where the 'idle' time is spent.

Tal

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 04, 2001 3:13 PM
> To: [EMAIL PROTECTED]
> Subject: Slow upload speeds
>
>
> Hi everyone.
>
> I am using Tomcat-3.2.1 on W2K, Solaris with or without apache. Since I
> need to provide users with functionality to upload fairly big files (> 10
> MB), speed is essential.
>
> My uploader is based on Jason Hunter code. Maximum upload speed I could
> achieve is between 40 and 60 Kbytes/s (even when client and server are on
> the same machine). Bottleneck (quiet predictable) seems to be in
> ServletInputStream misc. "read()" methods. Speed does not seem to be
> dependant on a platform or web server.
>
> Anyone was able to achieve better speeds (at least around 100 kBytes/s)?
> Any ideas ?
>
> Thanks
>
> Andrus
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




Ensure that servlet has loaded

2001-02-23 Thread Dmitry Rogatkin

Does an option as load servlet by demand exist? I didn't find any API to just ensure 
that servlet has been loaded (init method is called) without actually hitting serve 
method. I know that using any static code in a servelt is against of rules, but 
sometimes it's helpful.

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA

___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




RE: How to avoid the following exception

2001-03-01 Thread Dmitry Rogatkin

I eliminated the problem, but since i did two things, i do not know which one is the 
cure. 1st. i have download last t build. 2nd I added checking on null where actual 
erro was happened.

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:niv the tool [EMAIL PROTECTED]
Sent:Thu, 1 Mar 2001 13:05:14 +0200
To:  [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: How to avoid the following exception



i also got it .


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 10:49 PM
To: [EMAIL PROTECTED]
Subject: How to avoid the following exception


Anybody knows what can be issue for:
Catalina.start: LifecycleException:  start: :
java.lang.IllegalArgumentExceptio
n: addRepositoryInternal: java.lang.NullPointerException
LifecycleException:  start: :  java.lang.IllegalArgumentException:
addRepository
Internal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:5
62)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1136)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:2
903)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1160)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1160)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:217
)
at
org.apache.catalina.core.StandardService.start(StandardService.java:3
53)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:454
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:677)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:618)
at org.apache.catalina.startup.Catalina.process(Catalina.java:175)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:134)
All classes and jars are valid and work without problem when JServ is ised.

Thanks,
Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA

___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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


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




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




Re: How to control session timeout?

2001-03-08 Thread Dmitry Rogatkin

Call setMaxInactiveInterval(-1) for your session.
You can recognize closing a browser over JavaScript in some cases and send a request 
to close the session. Call invalidate() in this case.

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Peter Dai [EMAIL PROTECTED]
Sent:Thu, 8 Mar 2001 10:56:11 -0800
To:  [EMAIL PROTECTED]
Subject: How to control session timeout?


I am using Tomcat 3.2.1.  For one application, I need very long session
timeout, so all the JSPs involved will be able to 
access the java bean what has session scope. I would like the session
invalidated only by closing the browser.

I tried to set timeout in web.xml to a very long value,


360



Please let me know what else I need to do.

Configuration:  Apache + Tomcat + mod_jk + ajp13. No load balancing.

Thanks,

Peter Dai

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




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




Re: Off topic: Single login for separate web applications?

2001-03-13 Thread Dmitry Rogatkin

One of solution can be having off web trusted connection between servers to verify the 
user. We use such approach.
Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:[EMAIL PROTECTED]
Sent:Tue, 13 Mar 2001 13:38:39 +0100
To:  [EMAIL PROTECTED]
Subject: Off topic: Single login for separate web applications?




Hi,

Sorry for posting this off topic question. I would really appreciate any
pointers into the right direction.

What I would like to know is what you would need in general to create a single
login to different web applications on different web servers (and possibly
platforms)? I gues the servers would need some shared repository for
login/passwords, but how would it be possible after logging in to one server to
pass on this fact to the other servers?

I hope the answer is as simple as the question,

Wilko Hische



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




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




Re: JDBC driver for oracle

2001-03-16 Thread Dmitry Rogatkin

http://industry.java.sun.com/products/jdbc/drivers
You can get better driver from other places than from Oracle.

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Jack Li [EMAIL PROTECTED]
Sent:Fri, 16 Mar 2001 09:10:52 -0500
To:  [EMAIL PROTECTED]
Subject: JDBC driver for oracle


Hi,

Where can I have a free JDBC driver for oracle?

Thanks,
Jack




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




Re: LDAP Server

2001-03-29 Thread Dmitry Rogatkin

Netscape's one looks ok.

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Batsheva Raviv [EMAIL PROTECTED]
Sent:Thu, 29 Mar 2001 16:46:56 -0800
To:  [EMAIL PROTECTED]
Subject: LDAP Server


Hello,
Can somebody recommend a LDAP server that he/she have used?
Batsheva



___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




Tomcat 4.0 b2 and classloader

2001-04-03 Thread Dmitry Rogatkin

Great job Tomcat team! Now Tomcat starts much faster and private class loader provides 
excellent protection, but there is some bad thing. I didn't specify explicitly for my 
servlet/JSP XML parser classes, because they were already in class path. Now, I have 
to. I think, XML parser classes can be considered as system level classes without 
necessity specifying them for each servlet. Is there a possibility to provide some 
classes shared by all servlet/JSP including Tomcat itself? Or probably there is 
another solution?

Thanks.

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA

___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




Re: Tomcat 4.0 b2 and classloader

2001-04-03 Thread Dmitry Rogatkin

The goal of JAXP is making a developer free from thinking what kind/vendor of XML 
parser he/she uses (in my understanding). 
Of course, I have copied these stuff to lib directory as got class not found messages.
So, if I have 10 different applications running on Tomcat, then I have to have 10 
copies of XML libraries. It isn't problem regarding disk space, but could be a problem 
regarding RAM.
I like Sun's solution when you can copy some classes in trusted location and then use 
them without duplication for each application.

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Craig R. McClanahan [EMAIL PROTECTED]
Sent:Tue, 3 Apr 2001 18:33:41 -0700 (PDT)
To:  [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: Tomcat 4.0 b2 and classloader




On Tue, 3 Apr 2001, Dmitry Rogatkin wrote:

> Great job Tomcat team! Now Tomcat starts much faster and private class
> loader provides excellent protection, but there is some bad thing. I
> didn't specify explicitly for my servlet/JSP XML parser classes,
> because they were already in class path. Now, I have to. I think, XML
> parser classes can be considered as system level classes without
> necessity specifying them for each servlet. Is there a possibility to
> provide some classes shared by all servlet/JSP including Tomcat
> itself? Or probably there is another solution?
> 

It turns out that which XML parser should be used is very much an
emotional issue for many people :-).  As shipped, Tomcat 4.0 does not
expose an XML parser to all webapps, but this is easy to change:

* If you want to use the JAXP RI parser, move jaxp.jar and crimson.jar
  from the jasper directory to the lib directory.

* If you want to use Xerces (only version 1.3.1 has all the required
  support), put xerces.jar in the "lib" directory, and remove jaxp.jar
  and crimson.jar from "jasper".

See the release notes for more info.

> Thanks.
> 
> Dmitry R., [EMAIL PROTECTED]
> Chief Architect, MetricStream.COM
> Santa Clara, CA
> 

Craig McClanahan (who happens to be in Santa Clara this week for
ApacheCon)

IMPORTANT NOTE:  You should also upgrade to Tomcat 4.0-beta-3 instead, to
fix a security vulnerability that was reported in beta 2.




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




Re: Tomcat 4.0 b2 and classloader

2001-04-04 Thread Dmitry Rogatkin

I've resolved my problem putting all common classes archives in directory common/lib
Thanks, the product is amazing, but not so well documented.

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Dmitry Rogatkin [EMAIL PROTECTED]
Sent:Tue, 03 Apr 2001 18:48:38 -0700
To:  [EMAIL PROTECTED]
Subject: Re: Tomcat 4.0 b2 and classloader


The goal of JAXP is making a developer free from thinking what kind/vendor of XML 
parser he/she uses (in my understanding). 
Of course, I have copied these stuff to lib directory as got class not found messages.
So, if I have 10 different applications running on Tomcat, then I have to have 10 
copies of XML libraries. It isn't problem regarding disk space, but could be a problem 
regarding RAM.
I like Sun's solution when you can copy some classes in trusted location and then use 
them without duplication for each application.

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Craig R. McClanahan [EMAIL PROTECTED]
Sent:Tue, 3 Apr 2001 18:33:41 -0700 (PDT)
To:  [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: Tomcat 4.0 b2 and classloader




On Tue, 3 Apr 2001, Dmitry Rogatkin wrote:

> Great job Tomcat team! Now Tomcat starts much faster and private class
> loader provides excellent protection, but there is some bad thing. I
> didn't specify explicitly for my servlet/JSP XML parser classes,
> because they were already in class path. Now, I have to. I think, XML
> parser classes can be considered as system level classes without
> necessity specifying them for each servlet. Is there a possibility to
> provide some classes shared by all servlet/JSP including Tomcat
> itself? Or probably there is another solution?
> 

It turns out that which XML parser should be used is very much an
emotional issue for many people :-).  As shipped, Tomcat 4.0 does not
expose an XML parser to all webapps, but this is easy to change:

* If you want to use the JAXP RI parser, move jaxp.jar and crimson.jar
  from the jasper directory to the lib directory.

* If you want to use Xerces (only version 1.3.1 has all the required
  support), put xerces.jar in the "lib" directory, and remove jaxp.jar
  and crimson.jar from "jasper".

See the release notes for more info.

> Thanks.
> 
> Dmitry R., [EMAIL PROTECTED]
> Chief Architect, MetricStream.COM
> Santa Clara, CA
> 

Craig McClanahan (who happens to be in Santa Clara this week for
ApacheCon)

IMPORTANT NOTE:  You should also upgrade to Tomcat 4.0-beta-3 instead, to
fix a security vulnerability that was reported in beta 2.




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.




server push how?

2001-01-23 Thread Dmitry Rogatkin

I've started using this amazing product, but found that server side push is not 
working. Why flush doesn't push anything to server? You probably ask me, how to 
implement reset() if you already sent something to server? Just raise 
java.lang.IllegalStateException in reset() after any flush(). But probably, I do 
something wrong? Please, help me. You can find source code of my application I work on 
at: 
http://drogatkin.openestate.net/webchat.htm 
and also check working binaries using another servlet engine. But I want the tomcat. 
Sorry for the newbie question, 
Dmitry R., [EMAIL PROTECTED] 

___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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