hello,
Tomcat logs when it starts :
Apr 30, 2008 12:08:32 PM org.apache.catalina.core.AprLifecycleListen er
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
produ ction environments was not found on the java.library.path:
/usr/jdk/instances/jd
k1.5.0/jre/
Thank you. I will look at the project.
--- David Fisher <[EMAIL PROTECTED]> schrieb:
> Well, it looks like you can use the reading the file
> part of my
> approach or David Smith's approach.
>
> If you need to retrieve content from within a
> Microsoft Office file -
> including properties, et
Well, it looks like you can use the reading the file part of my
approach or David Smith's approach.
If you need to retrieve content from within a Microsoft Office file -
including properties, etc then you might take a look the Apache POI
project - http://poi.apache.org/
If you need to do
--- David Smith <[EMAIL PROTECTED]> schrieb:
> No, I don't mean that. It should be able to retrieve
> any type of file.
> What you can do with it from within a jsp might be
> somewhat limited thought.
Ok,
> What exactly do you want to do with the file
> contents within the jsp?
I will save
No, I don't mean that. It should be able to retrieve any type of file.
What you can do with it from within a jsp might be somewhat limited
though. What exactly do you want to do with the file contents within the
jsp?
BTW, I highly recommend you read the documentation for the jstl taglibs
and
Hi Henry,
most of these files are PDF, XLS and not only TXT
format.
You are meaning that with a JSP definitvly one can
reads only TXT files?
When I had the trouble I was referred to the JSP spec and it is meant
for serving marked up Text formats. Encoding translations can happen
with JSP.
Hi David,
most of these files are PDF, XLS and not only TXT
format.
You are meaning that with a JSP definitvly one can
reads only TXT files?
i understood with help of
--- David Fisher <[EMAIL PROTECTED]> schrieb:
> Henry doesn't say if these are text files or binary
> files.
>
> If these are b
Thanks David. I will try it as long as i know about
some details and options of my to be implemented
project. please follow my other topic, maybe you can
help too
> Yes, in general the url="http://remoteServer/path"; /> would
> fetch the file via http protocol. The actual URL
> you'd use is dep
Yes, in general the http://remoteServer/path"; /> would
fetch the file via http protocol. The actual URL you'd use is dependent
on the configuration of the remote server.
--David
henry human wrote:
You gave me some idea and brought light to the issue!
Thanks
url="http://remoteSystem.dns.com
You gave me some idea and brought light to the issue!
Thanks
url="http://remoteSystem.dns.com/http/path/to/file.txt
> var="fileContents" />
Am I right about above, that you mean my JSP ask the
tomcat on the remote machine and consequently the
remote tomcat reads the file by means of the incoming
Henry doesn't say if these are text files or binary files.
If these are binary files like PDF, PPT and XLS files then a servlet
will be needed - not a jsp.
We use variations like the following in both Tomcat 4.1.31 and Tomcat
5.5.26
public class OpenFileServlet extends HttpServlet{
p
anyway he could make a static link to the directory, making the file name a
parameter and stringing it on at the end?
I did that for a while from one of my JSPs with a screen from my Tomcat server.
I had a similar scenario, where people uploaded files to the server
(inaccessible generally speak
So... the "remote file" is available to the local system on a network
drive. That's a fun one. There are a couple of different ways to do this.
1. Using Windows fileshares
Let me preface this by saying *I've* never done this. The few times I've
had a tomcat server on a Windows machine, it only
Thanks David,
I try to clarify my situation.
I have a JSP running in local computer in tomcat. This
JSP should read from a remote machine. The files are
under d:\archive\files. These directory which provide
a repository functionality could not be transfer
somewhere else. The files must be saved t
Here's the picture you painted in the original email and I based my
answer on:
1. You have a jsp file on a tomcat server which needs to read
information from a remote system
2. The system containing the remote file has a webserver you could put
the file in.
The c:import tag is a java standar
> Seems to me the simplest is the c:import tag and
sorry,I don't understand what you mean, could you tell
more detailed. Maybe a little code code, a sample, etc
> fetch the file via http
how??
> -- just my two cents. You know more about your
> architecture and what's
> available than any of
Seems to me the simplest is the c:import tag and fetch the file via http
-- just my two cents. You know more about your architecture and what's
available than any of us.
--David
henry human wrote:
Once again because there was a mistake in the first
email :
i am about to read from a JSP the
If I am not mistaken, you will need to add the following tag to your web.xml
CATALINA_HOME/webapps/your_app_name/WEB-INF/web.xml
Landon Fabbricino
IT Applications
Phone: 403.225.7515
Fax: 403.225.7604
[EMAIL PROTECTED]
>>> karthikn <[EMAIL PROTECTED]> 4/28/2008 11:34:43 PM >>>
Hi
The F
Once again because there was a mistake in the first
email :
i am about to read from a JSP the data at a
remote computer. At remote computer is tomcat
running. the files are stored in
remote computer at
d:\archive\files
The port 80 is also accessible.
Please tell me, what should be
configu
Chuck,
On Apr 29, 2008, at 8:37 AM, Caldarale, Charles R wrote:
From: Michael Burbidge [mailto:[EMAIL PROTECTED]
Subject: Where to define Context element...
The Tomcat documentation lists several different places
that you can define a Context element.
Would you like us to guess what Tomcat ve
> From: Michael Burbidge [mailto:[EMAIL PROTECTED]
> Subject: Where to define Context element...
>
> The Tomcat documentation lists several different places
> that you can define a Context element.
Would you like us to guess what Tomcat version you're using, or could
you take the time to tell u
The Tomcat documentation lists several different places that you can
define a Context element. I don't want to define it in my app's web.xml
Neither should you. Web.xml has its own purpose defined by the servlet spec.
My web app is in a war called mytest.war, which I deployed to
$CATALINA_HOME
I'm trying to define a JNDI resource for a datasource. The Tomcat
documentation lists several different places that you can define a
Context element. I don't want to define it in my app's web.xml and I
don't want to modify tomcat config files. I want to define a companion
file for my app, b
Hello there!
I'm using Tomcat 6.0.16 with an extremely simple servlet.
The code of servlet is here (functions that doesn't mentioned here are
blank):
...
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rainer,
Rainer Jung wrote:
| Christopher Schultz wrote:
|> Hmm... I took a look at the new code and it appears to be the same as
|> the old code for cookies (except that now JSESSIONID cookies are
|> completely ignored when cookies have been disabled
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Pavel,
Pavel Pragin wrote:
| I setup the redirector and using this rules. But it's not working:
|
|
|
|
| www.tibcocommunity.com
| www.yahoo.com
|
|
|
This is not a support group for urlrewrite... we just know that it
exis
Hello,
I setup the redirector and using this rules. But it's not working:
www.tibcocommunity.com
www.yahoo.com
-Original Message-
From: Ken Bowen [mailto:[EMAIL PROTECTED]
Sent: Monday, April 28, 2008 6:20 PM
To: Tomcat Users List
Subject: Re: how redirec
Hi Ben,
Firstly thanks for replying, it could be that my file is not arranged in the
most suitable order then, I might have tags inside other tags when they
don't need to be (could be shared by both services?).
I have pasted my server.xml into this email, if you could take a look at the
order of
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
Christopher Schultz wrote:
| IIRC, each stream requires a thread, which means that all your
| connections are creating lots of threads to manage input and output.
Before everyone jumps all over me, I'd like to redact that statement. I
was not p
On Tue, 2008-04-29 at 12:52 +0100, [EMAIL PROTECTED] wrote:
> Hi,
>
> I am trying to achieve the above, at the moment I am trying to do this by
> including an additional service parameter and assigning different ports for
> the connectors. However now my original web apps are not working either.
Hi Charles,
Thanks again for your help and your time. I'm still having no luck -
Yes - transferring files from some system to another with a different
time base can cause "interesting" actions in Tomcat.
What do you mean by timebase - is this an OS-specific time format for files?
I have check
Hell
i am about to access from a JSP file the data in a
remote computer. At remote computer is tomcat
running. My file policy.txt is saved at the remote
computer at
d:\archive\files
The port 80 is also accesible.
what should i configure in tomcat to
be able to do it
?
Thanks for any hint
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Stephen,
Stephen Caine wrote:
| We are using a c:import url tag. Under most circumstances this works
| just fine, but when it is iterated hundreds of times within the same
| page, it causes the java process to quickly exhaust threads.
That is a /lo
Hi Reich, Lloyd, Chris,
Finally the issue is resolved by enabling APR feature in tomcat. Now
the NM can use 40 concurrent threads to talk with 100 simulated
devices with 70s delay on each successfully.
But I am not very clear yet why I have to use APR instead of NIO
connector in the scenario :)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Barak,
Barak Yaish wrote:
| Please, can someone explain me why a thread that waits for a connection
| hangs the HTTP Connector? This thread is not part of the flow of
serving an
| HTTP request.
Nobody can read your thread dump. How did you produce i
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rainer,
Rainer Jung wrote:
| This is not a real answer to your question, but if you look at the code,
| the behaviour w.r.t. multiple JSESSIONID cookies has been changed
| between 5.5.25 and 5.5.26. There is an issue BZ 43
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rainer,
Rainer Jung wrote:
| This is not a real answer to your question, but if you look at the code,
| the behaviour w.r.t. multiple JSESSIONID cookies has been changed
| between 5.5.25 and 5.5.26. There is an issue BZ 43839, and the patch has
| bee
It seems you are perhaps using different startup parameters?
We could provide a more comprehensive answer if you display Tomcat log
for the startup configuration experiencing the long delay
Thanks
Martin--
- Original Message -
From: "jitesh sharma" <[EMAIL PROTECTED]>
To:
Sent: Tuesda
Mark,
On Apr 29, 2008, at 2:29 AM, Mark Thomas wrote:
Stephen Caine wrote:
We are using a c:import url tag. Under most circumstances this
works just fine, but when it is iterated hundreds of times within
the same page, it causes the java process to quickly exhaust
threads. This is on a 6
On Tue, Apr 29, 2008 at 7:16 AM, jitesh sharma <[EMAIL PROTECTED]>
wrote:
>
> without my web application it does not takes more then 5-6 seconds.
>
> Peter Crowther wrote:
> >
> >> From: jitesh sharma [mailto:[EMAIL PROTECTED]
> >> I have successfully installed Tomcat 5.5.27 over my Solaris
> >> s
Hi,
I am trying to achieve the above, at the moment I am trying to do this by
including an additional service parameter and assigning different ports for
the connectors. However now my original web apps are not working either.
My tomcat log file contains:
INFO: Stopping Coyote HTTP/1.1 on http-8
Thank you for replying.
-Xms and -Xmx were 256MB. I changed 512MB but the result was same.
As session in implicit object in JSP ,
if I don't set <% session.invalidate();%>, sessions will create.
The jsp which I used the test isn't set <% session.invalidate();%>.
So I thought sessions were cre
Is there System.exit(0) in your code?
Ronald.
On Thu Apr 24 16:11:58 CEST 2008 Tomcat Users List
wrote:
Hi Mark,
thanks for your reply.
My linux boxes have 4GB RAM available and there is no trace about a out
of memory error. In fact, i run 7 tomcats instances on different ports
on the same
without my web application it does not takes more then 5-6 seconds.
Peter Crowther wrote:
>
>> From: jitesh sharma [mailto:[EMAIL PROTECTED]
>> I have successfully installed Tomcat 5.5.27 over my Solaris
>> system with x86 architecture.
>> but when i tried to start tomcat it takes almost 2 hour
> From: jitesh sharma [mailto:[EMAIL PROTECTED]
> I have successfully installed Tomcat 5.5.27 over my Solaris
> system with x86 architecture.
> but when i tried to start tomcat it takes almost 2 hours to start.
>
> when i start the server in normal mode with command
> " /opt/tomcat/in/catalina.sh
> From: Nilesh Bansal [mailto:[EMAIL PROTECTED]
> I have a question regarding context reloading in tomcat. Our app
> consists of two type of Java class files (1) core modules consisting
> of many singletons which are initialized once by reading large files
> from filesystem at the start of applicat
Hi Chris,
Christopher Schultz wrote:
Christopher Schultz wrote:
| This means that, for users who are using both applications at once,
| all requests to '/foo' have TWO values sent for the JSESSIONID
| cookie. It appears that Tomcat will try both cookie ids and use the
| one that actually works (
Christopher Schultz wrote:
It seems that I have two options:
1) Re-locate one of the applications -- which is not entirely trivial
~ since we have lots of links pointing to it
I'd relocate root application and use mod_rewrite to make old links work.
--
Mikolaj Rydzewski <[EMAIL PROTECTED]>
48 matches
Mail list logo