Old dogs love attention!
Thanks for the tip. I never (well almost never) create my folders with
spaces (and file names for that matter too)!
Maybe you can teach old dogs new tricks.
-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Wednesday, May 18, 2011 5:22 AM
To
>
> #2 here blows my mind: an LB runs an XSLT that connects to a DB? WTF?
>
> Another thought that occurs to me is why are you using xslt. Why not code a
jsp page - java servlet whatever. At least in this, you could add some
proper logging, and possibly take some corrective action when an exception
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
הילה,
On 5/19/2011 4:06 PM, הילה wrote:
>> 1) You have tomcat 6.0.29 running on virtual machines running on win 2008
>> 2) You have a load balancer which calls a home made xslt transform, that
>> queries the database. If this fails 3 times in a row, t
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rob,
On 5/19/2011 12:29 PM, Rob GB wrote:
> Someone suggested commons IO could provide some cool stream APIs,
> I'll try all recommendations, including asynchronous writes.
Why not just let the DefaulsServlet serve the files?
- -chris
-BEGIN PGP
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rob,
*sigh*
We'll argue about this all week if someone doesn't just reformat your
code and go for it. Evidently, I've got nothing better to do.
On 5/19/2011 6:44 AM, Rob GB wrote:
> public void service(HttpServletRequest request, HttpServletRespon
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Brian,
On 5/19/2011 12:02 PM, Brian Braun wrote:
> I think I just understood what was the problem: The file that was missing
> contains all the intarfaces and abstract classes that declare what needs to
> be implemented, and the other file (that comes
>
> All,
>
> 16 emails into this chain - might be worth a summary
>
> 1) You have tomcat 6.0.29 running on virtual machines running on win 2008
> 2) You have a load balancer which calls a home made xslt transform, that
> queries the database. If this fails 3 times in a row, the load balancer
> trea
All,
16 emails into this chain - might be worth a summary
1) You have tomcat 6.0.29 running on virtual machines running on win 2008
2) You have a load balancer which calls a home made xslt transform, that
queries the database. If this fails 3 times in a row, the load balancer
treats the machine a
Yes, but did you actually ever bother to read its documentation, e.g. at
http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html ?
> (particularly starting with the attribute "testOnBorrow")
>
> I do not know much about these things, but just entering
> ""org.apache.tomcat.jdbc.pool" in Google,
Thanks everybody.
Someone suggested commons IO could provide some cool stream APIs, I'll try all
recommendations, including asynchronous writes.
Cheers!
> Date: Thu, 19 May 2011 18:25:45 +0200
> From: a...@ice-sa.com
> To: users@tomcat.apache.org
> Subje
André Warnier wrote:
Gerardo Corro wrote:
Trying gmail
That works.
Of course, you're going to expect people here to look at 50 lines of code.
Oh well..
Hi all,
I have a file download servlet running on Tomcat, the code is
...
However once in a while I get an error that prevents files
Gerardo Corro wrote:
Trying gmail
That works.
Of course, you're going to expect people here to look at 50 lines of code.
Oh well..
Hi all,
I have a file download servlet running on Tomcat, the code is
...
However once in a while I get an error that prevents files from being
downloaded
Looks like the client disconnected, that is a fairly normal scenario.
You have to be able to handle the error if a client disconnects prior to having
downloaded all the content
Filip
On 5/19/2011 8:46 AM, Gerardo Corro wrote:
Trying gmail
Hi all,
I have a file download servlet running on T
Hi,I sent it from gmail in the right format some minutes ago, you should had
already received it.Here it goes again. Thanks.
public void service(HttpServletRequest request, HttpServletResponse
response) throws IOException { byte buf[] = new byte[1024 * 4];
try { Fi
Rob GB wrote:
No-one is going to read all that unformatted code. Try again.> > p>
ok, trying again, it looks formatted in hotmail editor:
Get a better email program, cause it ain't formatted here.
Are you trying to send this "as html" by any chance ? If yes, then try "as plain text" if
your e
I think I just understood what was the problem: The file that was missing
contains all the intarfaces and abstract classes that declare what needs to
be implemented, and the other file (that comes from Apache) implements it. I
just downloaded the second file in the beginning.
On Thu, May 19, 201
Thanks Mark, that was the problem! Now it runs.
I'm starting to think that you know more about java than I do
;-)
On Thu, May 19, 2011 at 10:33 AM, Mark Thomas wrote:
> On 19/05/2011 16:30, Brian Braun wrote:
> > Hi Mark,
> >
> > Do I also need to deploy that file?
>
> Almost certainly since
On 19/05/2011 16:30, Brian Braun wrote:
> Hi Mark,
>
> Do I also need to deploy that file?
Almost certainly since that is where I would expect to find the missing
class.
Mark
>
> On Thu, May 19, 2011 at 10:28 AM, Mark Thomas wrote:
>
>> On 19/05/2011 16:26, Brian Braun wrote:
>>> I did.
>>
>
Hi Mark,
Do I also need to deploy that file?
On Thu, May 19, 2011 at 10:28 AM, Mark Thomas wrote:
> On 19/05/2011 16:26, Brian Braun wrote:
> > I did.
>
> Isn't there a jstl-api-1.2.jar you need as well?
>
> Mark
>
> >
> > On Thu, May 19, 2011 at 10:24 AM, Yucca Nel wrote:
> >
> >> Either that
On 19/05/2011 16:26, Brian Braun wrote:
> I did.
Isn't there a jstl-api-1.2.jar you need as well?
Mark
>
> On Thu, May 19, 2011 at 10:24 AM, Yucca Nel wrote:
>
>> Either that classis part of a lib that must be included in your WEB-INF/lib
>> or in your $CATALINA_HOME/lib directory or it needs
I did.
On Thu, May 19, 2011 at 10:24 AM, Yucca Nel wrote:
> Either that classis part of a lib that must be included in your WEB-INF/lib
> or in your $CATALINA_HOME/lib directory or it needs to be included in your
> zipped up web app(.war).
>
> -Original Message- From: Brian Braun
> Sent:
Either that classis part of a lib that must be included in your WEB-INF/lib
or in your $CATALINA_HOME/lib directory or it needs to be included in your
zipped up web app(.war).
-Original Message-
From: Brian Braun
Sent: Thursday, May 19, 2011 5:16 PM
To: Tomcat Users List
Subject: java
Hi,
I feel like a rookie, But I will ask for help on this. I will swallow my
pride.
I'm using Eclipe (latest version) to develop, and Tomcat 7.0.X both in
development and in production. I started using JSTL1.2 today. When I run my
app, I get this response:
javax.servlet.ServletException: java.lan
>>>Trying gmail
Hi all,
I have a file download servlet running on Tomcat, the code is
public void service(HttpServletRequest request,
HttpServletResponse response) throws IOException {
byte buf[] = new byte[1024 * 4];
try {
File file = new File(realFilename);
On 19/05/2011 15:30, Pid wrote:
> Unsubscribe this dude someone, please.
Way ahead of you. The unsubscribe command went out about 30s after the
original message arrived in my inbox.
Mark
PS Rather than re-post messages like this to the list (which just
repeats the URL and further annoys the othe
> From: Rob GB [mailto:rob_gar_...@hotmail.com]
> Subject: RE: Tomcat download stream gets broken
> ok, trying again, it looks formatted in hotmail editor:
Try using a real e-mail client. This is what it looks like to the rest of the
world:
http://marc.info/?l=tomcat-user&m=130581549006975&w=
Sorry! It is working.
I was just looking to another webbap path.
So this is the solution:
ObjectName name=new
ObjectName("Catalina:type=Manager,path=/NAME_OF_APP,host=localhost");
ManagementFactory.getPlatformMBeanServer().getAttribute(name,
"activeSessions");
However, is there any way to know wh
> No-one is going to read all that unformatted code. Try again.> > p>
ok, trying again, it looks formatted in hotmail editor:
I have a file download servlet running on Tomcat, the code is
public void service(HttpServletRequest request, HttpServletResponse
response) throws IOException {
Unsubscribe this dude someone, please.
p
On 17/05/2011 11:42, Abhay Adgurwar wrote:
> Hello
>
> Click on the link below and please enter your birthday for me. It will take
> less than one minute.
>
> http://www.birthdayalarm.com/bd2/83842497a620634935b1537677409c348957808d1386
>
> Thank You
On 19/05/2011 15:24, Mateu Yabar wrote:
> What I have for now, after enableing JMX as descrived in
> http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html
>
> I have the following code:
> ObjectName name=new
> ObjectName("Catalina:type=Manager,path=/test,host=localhost");
> ManagementFactory.get
What I have for now, after enableing JMX as descrived in
http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html
I have the following code:
ObjectName name=new
ObjectName("Catalina:type=Manager,path=/test,host=localhost");
ManagementFactory.getPlatformMBeanServer().invoke(name, "listSessionIds",
n
On 19/05/2011 11:44, Rob GB wrote:
>
> Hi all,
> I have a file download servlet running on Tomcat, the code is
>
> public void service(HttpServletRequest request, HttpServletResponse
> response) throws IOException {byte buf[] = new byte[1024 * 4];
> try {File file
On Thu, May 19, 2011 at 10:33 AM, Mateu Yabar wrote:
> After all day working on this, I'm still unable to use JMX to obtain the
> context.
> Please, can anyone gime me a hand?
>
Obviously if you have spent all day on it, you must have a lot of code. Just
send the latest piece, with a description
After all day working on this, I'm still unable to use JMX to obtain the
context.
Please, can anyone gime me a hand?
Thanks!
On 19 May 2011 13:12, Mateu Yabar wrote:
> >
> > 2. The OP wants current sessions so a ServletContextListener that only
> > runs at context start and stop isn't going to
On 5/19/2011 4:55 AM, Venky Vasant wrote:
Chris
Microsoft does call it as a type 4 driver, i am not sure though why there are
some dll files in the installation folder.
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=99b21b65-e98f-4a61-b811-19912601fdc9
Placing only sqljdbc.jar f
>
> 2. The OP wants current sessions so a ServletContextListener that only
> runs at context start and stop isn't going to help.
>
In ServletContextListener, arg0.getServletContext(), only gives a
ApplicationContextFacade, but I can access apache context from there, so I
can't get the active sessi
Hi all,
I have a file download servlet running on Tomcat, the code is
public void service(HttpServletRequest request, HttpServletResponse
response) throws IOException {byte buf[] = new byte[1024 * 4];
try {File file = new File(realFilename);int size =
On 19/05/2011 11:17, chris derham wrote:
>>
>>
>> 2. The OP wants current sessions so a ServletContextListener that only
>> runs at context start and stop isn't going to help.
>>
>
> I don't understand this - could you explain a little further, or point me to
> some docs? I thought when a context
>
>
> 2. The OP wants current sessions so a ServletContextListener that only
> runs at context start and stop isn't going to help.
>
I don't understand this - could you explain a little further, or point me to
some docs? I thought when a context starts, sessions can start against it.
How is this n
Thanks!
I'm looking through JMX (I don't nothing about it), but meanwhile, can
anyone tell me how to access the Context through JMX?
On 19 May 2011 11:41, Mark Thomas wrote:
> On 19/05/2011 10:36, Micka wrote:
> > Hi,
> >
> > You should implents ServletContextListener to get the context () :
>
On 19/05/2011 10:36, Micka wrote:
> Hi,
>
> You should implents ServletContextListener to get the context () :
>
> http://www.roseindia.net/servlets/ServletContextListener-example.shtml
>
> @Override
> public void contextInitialized(ServletContextEvent arg0) {
> if (context == nu
On 19/05/2011 10:30, Mateu Yabar wrote:
> Hi to all,
>
> I need to obtain the number of active sessions on the current application.
> If written the following (import org.apache.catalina.Context, import
> org.apache.catalina.Manager):
> public int getActiveSession(){
> Context context=null;
> Mana
Hi,
You should implents ServletContextListener to get the context () :
http://www.roseindia.net/servlets/ServletContextListener-example.shtml
@Override
public void contextInitialized(ServletContextEvent arg0) {
if (context == null) {
context = arg0.getServletContext()
Hi to all,
I need to obtain the number of active sessions on the current application.
If written the following (import org.apache.catalina.Context, import
org.apache.catalina.Manager):
public int getActiveSession(){
Context context=null;
Manager manager=context.getManager();
return manager.getActi
Chris
Microsoft does call it as a type 4 driver, i am not sure though why there are
some dll files in the installation folder.
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=99b21b65-e98f-4a61-b811-19912601fdc9
Placing only sqljdbc.jar file under CATALINA_BASE/common worked.
I
Chris
Yes we use connection pooling mechanism
I will try placing these in CATALINA_BASE/common
:-) yes we use Microsoft SQL Server JDBC 2.0 , let me search for pure java
drivers, you have any pointers.
Regards
Venkat
From: Christopher Schultz
To: Tomcat U
הילה wrote:
Hey,
All of you basically asked about the connection pool I'm using.
I stated at the beginning that I'm using JDBC connection pool.
I implement it in the xml file under conf\catalina\localhost, under resource
tag-
*factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"*
with placing
47 matches
Mail list logo