Tomcat 9 returning 404 for audio files

2024-03-10 Thread Sam
I just upgraded a legacy application from Tomcat 7 to Tomcat 9. It's deployed as a war file. I'm facing a weird issue with audio files playback. When loading a page that contains an audio file. First time Tomcat returns 404 error but if reloading the page, audio file is loaded properly and no erro

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Sam
Thanks for replying!! Yes audio files are generated dynamically from DB.in a Servlet. I've verified that audio file exists on file system before returning the html code that contains audo control. On Mon, Mar 11, 2024, 5:22 a.m. Mark Thomas wrote: > On 11/03/2024 02:21, Sam wrote: &g

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Sam
link: *Resources are cached by default.* I'll try with *Cache-Control* request header and see if it helps! Thank you! On Mon, Mar 11, 2024 at 11:46 AM Mark Thomas wrote: > On 11/03/2024 11:31, Sam wrote: > > Thanks for replying!! > > > > Yes audio files are generated d

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Sam
24 16:46, Mark Thomas ha scritto: > > On 11/03/2024 11:31, Sam wrote: > >> Thanks for replying!! > >> > >> Yes audio files are generated dynamically from DB.in a Servlet. > >> > >> I've verified that audio file exists on file system before returni

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Sam
hultz < ch...@christopherschultz.net> wrote: > Sam, > > On 3/11/24 13:04, Sam wrote: > > On the server side, I'm checking that file exists before returning the > file > > path to the browser. We are also dynamically creating pdf files this way > > and no issues with accessin

Re: Tomcat 9 returning 404 for audio files

2024-03-12 Thread Sam
placed under the path > "/apache-tomcat-9.0.30/webapps/ROOT/wav/" not " /wav/ " > > On Tue, Mar 12, 2024 at 11:20 AM Sam wrote: > > > Hi Chris, > > > > I'm creating the audio file dynamically from DB and I check if the file > > e

Re: Tomcat 9 returning 404 for audio files

2024-03-13 Thread Sam
ving-weird-static-file-problems > > On Wed, Mar 13, 2024 at 3:46 AM Chuck Caldarale wrote: > > > > > > On Mar 12, 2024, at 13:15, Sam wrote: > > > > > > As I said earlier, 404 error is only returned 1st time. > > > > > > Subsequent reques

Re: Apache2.x + Apache Tomcat5.x + mod_jk + virtual host on windows XP

2006-10-13 Thread sam
on the same line.. i can access my jsp-examples frm http://localhost/jsp-examples.. but whn i pass my IP address to frnds (whn i m connected to the internet)...it shows page not available/requested page is not available... i m using tomcat 5.5 anf apache 2.2.3... the configuration seems OK to

Tomcat with Apache 2.2.0

2005-12-07 Thread Sam Lee
Anyone tried the newest apache 2.2.0 with tomcat using jk? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How does tomcat parse multipart requests?

2005-12-20 Thread Sam Lee
Dear Guys, I want to know how tomcat parse multipart requests? Or tomcat does not parse multipart requests at all? I try to find the answer from tomcat 5.5 source,but failed because don't know where to begin. Thanks,

UnsatisfiedLinkError when loading DLL twice

2006-04-11 Thread Ho, Sam
to load the DLL? I am using Window XP Pro. Any suggestions or Hints, I will be very appreciate! Thanks Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: UnsatisfiedLinkError when loading DLL twice

2006-04-12 Thread Ho, Sam
Thanks Rajeev Jha. I probably put the DLL in many places. After I clean them up from other places, I have not seen the error so far. Sam -Original Message- From: Rajeev Jha [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 5:21 AM To: Tomcat Users List Subject: Re

RE: UnsatisfiedLinkError when loading DLL twice

2006-04-12 Thread Ho, Sam
Thank you for your reply I probably put the DLL into many places. As a result the DLL appears in the PATH at least twice. After I clean them up in other places, I have not seen the error so far. Thanks again Sam -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent

Configuring Tomcat Service Wrapper for remote debugging.

2006-06-08 Thread Sam Ganzman
he required JVM options." I cannot find this documentation. Sam Ganzman Channel Logistics LLC (856) 428 9201 X 111

Why tomcat has a wrapped dbcp?

2005-10-25 Thread Sam Lee
Why tomcat has a wrapped dbcp? Is there any difference? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Deploy application from Eclipse (windows) to Tomcat (in linux).

2008-08-01 Thread Sam Wun
Hi, Is there any user guide I can read thru for deploying applicatoin from windows eclipse to linux tomcat? I am using tomcat 5.5 Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROT

example about deploy application from windows eclipse to linux Tomcat

2008-08-02 Thread Sam Wun
Hi, Can anyone link me an example about deploy application from windows eclipse to linux Tomcat? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: Problem with Displaying Result of a MySQL Join in Tomcat

2008-08-02 Thread Sam Wun
why not use Linux? On Sun, Aug 3, 2008 at 10:02 AM, Glyn Thomas <[EMAIL PROTECTED]> wrote: > I am in the process of converting a Tomcat front end for a MySQL database > from > > Windows XP to Windows Vista. > > > > The XP version used MySQL Version 5.0.22, Tomcat 5.5.20, JRE 1.5.0 release > > 12

mvn command line failed with archetype....

2008-08-08 Thread Sam Wun
Hi, I am wondering how to fix the following attached error (mvn command run)? I tried to follow the instruction shown in the following website, but got error. http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html === attached mvn command run === Maven version:

mvn failed with archetype....

2008-08-08 Thread Sam Wun
Hi, I am wondering how to fix the following attached error (mvn command run)? I tried to follow the instruction shown in the following website, but got error. http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html === attached mvn command run === Maven version:

Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-08 Thread Sam Wun
Hi, I am wondering how to fix the following attached error (mvn command run)? I tried to follow the instruction shown in the following website, but got error. http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html === attached mvn command run === Maven version:

Re: mvn command line failed with archetype....

2008-08-08 Thread Sam Wun
nstead of > trying to do the continuation '\' operator which may not work on Windows. > That last '\' character is being interpreted by mvn as a parameter. > > --David > > Christopher Schultz wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SH

Re: How to programmatically add parameters to ServletRequest objects?

2008-08-09 Thread Sam Wun
Hi, I have just configured Eclipse 3.4 with tomcat in windows vista. The environemt is running JDK1.6 and JRE 1.5, but I have selected jdk1.6 for the enviornemt. When I press the Start Tomcat menu in the Eclispe menu bar, it thrown the following exception in the Eclispe console: 10/08/2008 12:51:1

Can start tomcat within Eclipse.

2008-08-09 Thread Sam Wun
sorry about the preivous email with a different subject. Here is the quest with the right subject name: Hi, I have just configured Eclipse 3.4 with tomcat in windows vista. The environemt is running JDK1.6 and JRE 1.5, but I have selected jdk1.6 for the enviornemt. When I press the Start Tomcat me

Re: Can't start tomcat within Eclipse.

2008-08-09 Thread Sam Wun
les/Java/jdk1.6.0_10/lib/tools.jar for Classpath Is there anything wrong with my configuration/setup? Thanks Sam On Sun, Aug 10, 2008 at 1:00 AM, Sam Wun <[EMAIL PROTECTED]> wrote: > sorry about the preivous email with a different subject. > Here is the quest with the right subject name:

Re: Can't start tomcat within Eclipse.

2008-08-09 Thread Sam Wun
thansk for the response, it is actually a typo when I type it in the email here. In eclipse, I use \ instead of / Thansk On Sun, Aug 10, 2008 at 3:41 AM, Johnny Kewl <[EMAIL PROTECTED]> wrote: > > - Original Message ----- From: "Sam Wun" <[EMAIL PROTECTED]> >

Re: Can't start tomcat within Eclipse.

2008-08-09 Thread Sam Wun
On Sun, Aug 10, 2008 at 3:41 AM, Johnny Kewl <[EMAIL PROTECTED]> wrote: > > - Original Message ----- From: "Sam Wun" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Saturday, August 09, 2008 6:31 PM > Subject: Re: Can't start tomcat

Tomcat within Eclipse

2008-08-10 Thread Sam Wun
Hi, Can anyone tell me how to resolve the followoing exception? and how do I know whether tomcat service is really running. 11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production enviro

Re: Tomcat within Eclipse

2008-08-10 Thread Sam Wun
Can you tell me how to setup a *userdatabase* for this case? Thank you for your reply. On Mon, Aug 11, 2008 at 5:14 PM, Jens Kapitza <[EMAIL PROTECTED]> wrote: > Sam Wun schrieb: >> >> Hi, >> >> Can anyone tell me how to resolve the followoing exception? &g

Re: Tomcat within Eclipse

2008-08-11 Thread Sam Wun
essage - From: "Sam Wun" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Monday, August 11, 2008 6:57 AM > Subject: Tomcat within Eclipse > > >> Hi, >> >> Can anyone tell me how to resolve the followoing exception? >> and

javax.transaction:jta:jar:1.0.1B

2008-08-12 Thread Sam Wun
HI, I am following an example from the following link, but got error and using maven building the project. http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html I have downloaded jta-1.1-classes.jar and used maven install it in the repository. Output from build process: [INFO]

Re: Tomcat JConsole

2008-08-14 Thread Sam Wun
Hi, I m using Eclipse 3.4 (in Vista) and Tomcat 5.5 (in linux) as J2EE development environment. I want to build a online order form to interact with backend database in linux. I know I can use dreamweaver to create web page (html template), but I don't know how to use it and dont' have the time to

Form design or framework from Eclipse or Tomcat.

2008-08-14 Thread Sam Wun
Hi, I m using Eclipse 3.4 (in Vista) and Tomcat 5.5 (in linux) as J2EE development environment. I want to build a online order form to interact with backend database in linux. I know I can use dreamweaver to create web page (html template), but I don't know how to use it and dont' have the time to

simple online order form

2008-08-18 Thread sam wun
Hi, I want to build a simple  online order form with Struts, eclipse, and tomcat (mysql database). Is there any example/tutorial I can follow to create this simple project? I found many tutorials are based on MyEclipse, but I am using Elcipse 3.4. Thank  you in advance.

establsh remote db connection

2008-08-19 Thread sam wun
Hi,  I triedto follow the tutorial shown in the link below http://java.sys-con.com/node/152270  but I amstuck with the mysql location. I haveinstalled mysql database engine in a linux server. Thetutorial I am following on is started in windows Vista with Eclipse 3.4, it assumed we  installed

java version in windows and tomcat server

2008-08-19 Thread sam wun
Hi, when I create a web project in windows Eclipse (3.4), I use jre6. But in my tomcat server (linux), it s using jre5. Do I have to make the jre version to be the same for both platforms? Because if I package it in a war file in windows, the lib  jar files are all in jre6 version. Then when

errors in deploying war file to tomcat 5.5

2008-08-23 Thread sam wun
is highly appreciated. Thanks Sam

Re: Re: errors in deploying war file to tomcat 5.5

2008-08-24 Thread sam wun
> - Original Message - > From: Edoardo Panfili > Sent: 24/08/08 02:28 am > To: Tomcat Users List > Subject: Re: errors in deploying war file to tomcat 5.5 > > Edoardo Panfili ha scritto: > > sam wun ha scritto: > >> Hi, > >> > >> >

Re: Re: errors in deploying war file to tomcat 5.5

2008-08-24 Thread sam wun
BTW, how to see the content of the war file I built from Eclipse? Thanks > - Original Message - > From: Edoardo Panfili > Sent: 24/08/08 02:28 am > To: Tomcat Users List > Subject: Re: errors in deploying war file to tomcat 5.5 > > Edoardo Panfili ha scritto: > &g

Re: Re: Re: errors in deploying war file to tomcat 5.5

2008-08-24 Thread sam wun
t way > is to rename the file with a .zip extension, then you can right-click > on it and Extract All. > -- > Len > > On Sun, Aug 24, 2008 at 03:58, sam wun <[EMAIL PROTECTED]> wrote: > > Hi, > > > > > > > > I have downloaded commons-io-1.3.1.jar

Re: RE: Tomcat does not unpack WAR file (Tomcat 5.5.20)

2008-08-25 Thread sam wun
tomcat/apache-tomcat-5.5.26/webapps/cat # ls -l total 0 drwxr-xr-x   4 root root  96 Aug 26 10:02 . drwxr-xr-x  11 root root 320 Aug 26 10:02 .. drwxr-xr-x   2 root root  80 Aug 26 10:02 META-INF drwxr-xr-x   4 root root 120 Aug 26 10:02 WEB-INF How to instruct tomcat to unpack this cat.war file as

how to reference a class to the current src directory.

2008-08-25 Thread sam wun
nning of this post, you can see the class file DatabaseCommand.java file is already defined in the same directory as as CommandExecutor.java defined. How to tell Eclipse compiler that the DatabaseCommand class is in the same directory as the CommandExecutor.java? Thanks Sam

Re: RE: how to reference a class to the current src directory.

2008-08-25 Thread sam wun
Hi, Thanks for the help. Can you tell me how to compile these .java files into classes in Eclipse(3.4)? All these java files are under "command" package. Thanks Sam > - Original Message - > From: Tandel, Aswin > Sent: 26/08/08 02:23 am > To: Tomcat Us

Re: RE: how to reference a class to the current src directory.

2008-08-25 Thread sam wun
class in Eclipse? thanks sam > - Original Message - > From: Tandel, Aswin > Sent: 26/08/08 02:23 am > To: Tomcat Users List > Subject: RE: how to reference a class to the current src directory. > > Hi, > > For the classes in the same directory it is not req

how to create domain.Order class

2008-08-25 Thread sam wun
e inside theh domain folder? Thanks Sam  

Can't generate class file from Interface

2008-08-26 Thread sam wun
that meant no class found. How can I get around this issue? may be I should ask how to generate an interface dot class file (eg. DatabaseCommand.class in this instance)? Thanks Sam

Can't execute servlet project

2008-08-26 Thread sam wun
stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs. I haven't create any *bean*, but servlet only. How to get fix problem? Your help is much appreciated. Thanks Sam

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
Hi, thanks for trying to help. I dont' have a clue on this *bean*. The entire tutorial doesn't mention about how to setup a bean... The tutorial I;ve followed is shown as below: http://java.sys-con.com/node/152270 Thanks Sam > - Original Message - > From: Da

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
HI there, It sounds logical, but there is no LIstCustomers in the DBTest folder. Thanks Sam > - Original Message - > From: David Smith > Sent: 27/08/08 09:59 pm > To: Tomcat Users List > Subject: Re: Can't execute servlet project > > I see the

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
in the linux(tomcat) server. Here is the project directory listing of my tomcat server (in linux): linux:~/tomcat/apache-tomcat-5.5.26/webapps/DBTest # ls .  ..  META-INF  WEB-INF  customers.jsp Thanks Sam > - Original Message - > From: David Smith > Sent: 27/08/08 1

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
$ControlRunnable.run(ThreadPool.java:689) java.lang.Thread.run(Unknown Source) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs. It looks like it invoked the class, but... not sure... Thanks Sam > - Original Message - >

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
with listening on port 8080 and it's installed on your local > workstation). That's what the ... > part of web.xml is all about -- mapping URLs to servlets. > > > --David > > sam wun wrote: > > I got a similar web.xml, but the is different. > &g

Re: Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
BTW, where should I place the web.xml file in the tomcat server? The web (root) execution path of my tomcat server is: /tomcat/apache-tomcat-5.5.26/webapps/DBTest Thanks Sam > - Original Message - > From: sam wun > Sent: 28/08/08 02:45 am > To: Tomcat Users List, Tomca

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
.xml file so > connections are tested and regenerated as needed. > > --David > > sam wun wrote: > > HI there, > > > > > > > > I managed to fix the jdk version error, now it comes with a different > > error. > > > > The url I am trying t

Re: Can't execute servlet project

2008-08-28 Thread sam wun
  naming-factory.jar    servlet-api.jar ..  jasper-compiler-jdt.jar  jasper-runtime.jar   naming-factory-dbcp.jar  naming-resources.jar If I need to have that, where can I download it? Thanks > - Original Message - > From: sam wun > Sent: 28/08/08 04:44 pm > To: Tomca

Re: Re: Can't execute servlet project

2008-08-28 Thread sam wun
of it? Thanks Sam > - Original Message - > From: Pid > Sent: 28/08/08 06:47 pm > To: Tomcat Users List > Subject: Re: Can't execute servlet project > > sam wun wrote: > > Do I need to put mysql driver in the common/lib/ directory in linux? > > Yes, t

Why GlassFish

2008-08-28 Thread sam wun
Hi, Just a quick question, I found that Tomcat is quite capable with servlet application, but lack of EJB support. Is GlassFish designed to fill the gaps to support EJB application only? Thanks

Monitor contanier

2008-08-29 Thread sam wun
Hi there, What can I use to monitor tomcat container? Thanks

Re: Can't execute servlet project

2008-09-01 Thread sam wun
    default.html     default.htm     default.jsp             DB Connection     jdbc/TestDB     javax.sql.DataSource     Container   Thanks Sam javax.servlet.http.HttpServlet.ser

Re: Re: Can't execute servlet project

2008-09-01 Thread sam wun
tabase connection pool. My only > edit that article I would recommend is don't add ?autoReconnect=true to > the end of the mysql database url. Instead, add validationQuery="select > 1" to the element in your context.xml file so > connections are tested and r

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
Hi David, No, I don't have this 2 jar files in the common/lib/ directory. where can I download it from? Thanks Sam > - Original Message - > From: David Smith > Sent: 02/09/08 10:39 pm > To: Tomcat Users List > Subject: Re: Can't execute servlet project

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
; Subject: Re: Can't execute servlet project > > Hmmm... good question. I moved over to Maven and don't manually > download these any more. This looks like it should do the trick: > > Try > http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.c

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
Servlet.java:803) > - Original Message - > From: David Smith > Sent: 03/09/08 01:23 am > To: Tomcat Users List > Subject: Re: Can't execute servlet project > > Download the binary zip file and expand it. Within it is a lib > directory with just standard

Re: Can't execute servlet project

2008-09-02 Thread sam wun
    default.jsp             DB Connection     jdbc/TestDB     javax.sql.DataSource     Container   > - Original Message - > From: sam wun > Sent: 03/09/08 01:41

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
> > You can also take a look at tomcat's JDBC Datasource howto's on the > tomcat website for your version of tomcat which offer a lot of help. > > --David > > sam wun wrote: > > Thanks David, > > > > > > > > After copied the jstl and stan

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
Here is the mysql-connector jar file I got in the common/lib directory: linux:~/tomcat/apache-tomcat-5.5.26/common/lib # ls mysql* mysql-connector-java-5.1.3-rc-bin.jar Is thsi the correct mysql jar file? Thanks Sam > - Original Message - > From: David Smith > Sent:

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
ot; password="javadude" > driverClassName="com.mysql.jdbc.Driver" >url="jdbc:mysql://localhost:3306/javatest" > validationQuery="select 1" /> > > > Obviously replace the username, password, and URL with what's > appropriat

Re: Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
/conf # do I need to remove DBTest.xml and web.xml here? Thanks Sam > - Original Message - > From: sam wun > Sent: 03/09/08 11:13 am > To: Tomcat Users List > Subject: Re: Re: Can't execute servlet project > > After moved the context.xml file to > /tom

Re: Re: Can't execute servlet project - it works now

2008-09-02 Thread sam wun
After this final changed (renamed the context.xml file to DBTest.xml), it works fine now. Thank you very much for the help along the way. Without your patient and effort, I wouldn't be able to get this going. Thanks Sam > - Original Message - > From: David Smith >

Good JSP editor

2008-09-06 Thread sam wun
Hi there, I know it is better for me to ask this quetion in a jsp forum, but I couldn't find one for mailing list . And you guys are very helpful too in terms of this experience. If you are  using a good jsp editor, can you tell me where its download link? My current development enviorn

Re: Exchange Language

2007-06-20 Thread Sam Klin
Can this witty exchange continue in private email? - Original Message - From: "Jacob Rhoden" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, June 21, 2007 12:27 AM Subject: Re: Exchange Language > Oops, I did not mean to send this to the mailing list. Sorry. We should > tak

Exception Thrown in a JSP

2007-07-17 Thread Sam Klin
I am trying to figure out how to debug the following exception that's thrown in one of my jsps. The line number from the exception trace is 259. If this is a line number from the underlying jsp then the line is: <%@ include file="inc/footer.jsp" %> this is also the last line in the jsp. If, on t

APR Library with JBoss/Tomcat

2007-08-05 Thread Sam Klin
I notice my new version of JBoss (4.2.1GA) gives the following message in the server logs: 2007-08-05 15:41:32,650 INFO [org.apache.catalina.core.AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.pat

Re: APR Library with JBoss/Tomcat

2007-08-05 Thread Sam Klin
rary. (The APR is one part of that.) > The Tomcat docs have a page about this - for example, > http://tomcat.apache.org/tomcat-5.5-doc/apr.html for version 5.5. > That page points to a download page that has both source and compiled > binaries for Windows: http://tomcat.heanet.ie/native/

grant codeBase not working for my jar

2007-09-17 Thread Sam Halliday
pps/scanner/WEB-INF/lib/ scanner.jar!/-" { permission java.io.FilePermission "/bin/sh", "execute"; permission java.io.FilePermission "/tmp/thinktank-scanner.bmp", "read,delete"; }; then everything should work... but it doesn't. Instead I

Re: grant codeBase not working for my jar

2007-09-17 Thread Sam Halliday
ager.checkPermission (SecurityManager.java:532) at java.lang.SecurityManager.checkExec(SecurityManager.java: 779) at java.lang.ProcessBuilder.start(ProcessBuilder.java:447) at thinktank.scanner.server.ScanImage.scan(ScanImage.java:116) On 17 Sep 2007, at 16:26, Mark Thomas

Re: grant codeBase not working for my jar

2007-09-17 Thread Sam Halliday
nt to that? On 17 Sep 2007, at 17:14, Mark Thomas wrote: Sam Halliday wrote: That doesn't give me any additional input... I already know which permissions I need, I just want to restrict them to the one Servlet. The debug output should tell you what coedbase is requesting what permission. I

Re: grant codeBase not working for my jar

2007-09-17 Thread Sam Halliday
On 17 Sep 2007, at 18:16, Mark Thomas wrote: Sam Halliday wrote: Hmm, where should I expect to see the extra debugging output. It isn't in any of the log files. Should be on standard out. Aah! That's why I wasn't seeing it. There is a pretty bad bug in Ubuntu which puts

Re: grant codeBase not working for my jar

2007-09-18 Thread Sam Halliday
med that this is where the jar file is... but tomcat is still refusing to give the permissions on a per-jar basis! Maybe this is a bug with the Ubuntu release? -- Sam http://javablog.co.uk - To start a new topic, e-mail:

Tomcat tutorial

2008-03-27 Thread Sam Wun
Hi, I am new to Tomcat. Is there any Tomcat tutorial (eg. example of projects) I can download from the web? Thanks S Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ht

Re: Tomcat tutorial

2008-03-27 Thread Sam Wun
ebpage. Thanks S tomcat.apache.org has a couple, but not as good as others. On Fri, Mar 28, 2008 at 2:32 PM, Sam Wun <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to Tomcat. Is there any Tomcat tutorial (eg. example of projects) > I can do

Re: Tomcat tutorial

2008-03-27 Thread Sam Wun
- Original Message From: Patrick Fong <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Friday, March 28, 2008 3:25:46 PM Subject: Re: Tomcat tutorial >>try ibm.com/developerworks Hi, this works for me. But where should I go into in order to download tomcat tutorials? Th

Usage of Hibernate

2008-04-06 Thread Sam Wun
has another important/popular usage rather than only dealingwith database, I would think this is may be the only reason whyHibernate getting more popularity. Can anyone tell me? Thanks Sam You rock. Tha

Why use SOAP in Java

2008-04-09 Thread Sam Wun
Hi, I am wondering why use SOAP with Java? Since SOAP is based on RPC, I think the best question may be asked, why use RPC for client-server application? Thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Tomcat upgrade and JSTL XML library

2008-06-05 Thread Sam Weinger
if there is anyone who has encountered this same problem. Am I missing some setting in my web.xml that would control this? Any help is greatly appreciated. thanks! sam -- Sam Weinger Consultant at Wrycan, Inc. sam dot weinger at wrycan dot com

very slow class loading on initial JSP/servlet request after restart

2009-02-19 Thread Sam Hokin
I've been struggling with a very severe problem on one of my three Tomcat servers since late December. I'm completely stumped. I'm running 6.0.18 on all three servers, which are all running Fedora Core 9, all currently running Sun's JDK 1.6.0_12. The only difference is hardware. The server th

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
Caldarale, Charles R wrote: 1) What are the servers that don't have a problem? One is a single AMD Athlon 64 2800+, running the 64-bit Sun JDK (same version). The other is a dual AMD Athlon MP 2000+, running the 32-bit Sun JDK (same version). And the "bad" server has "8" Intel Xeon E5310 CP

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
Ron McNulty wrote: Hi Sam You jar - does it include any JSP tag files written as JSP fragments? There are known issues in this area. The dependency management seems to get confused, resulting in lots of unnecessary compilation of the .tag files No, it doesn't, Ron. But thanks fo

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
Christopher Schultz wrote: Sam, On 2/19/2009 6:23 PM, Sam Hokin wrote: The problem, which spontaneously appeared a few days before Christmas on this one server, is that the initial request of a JSP or servlet takes AGES to respond, usually exceeding several minutes. Good... then you'll

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
Caldarale, Charles R wrote: Run jstack several times during the delay, and then let's compare the set of thread dumps. What is the CPU utilization during the delay? OK, done. The CPU utilization during the delay is tiny, 1% or less. I've run jstack before, during, and after I've done a fi

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
Christopher Schultz wrote: jstack.8.txt is the last thread dump where File.exists was stalled. http://ims.net/jstack/jstack.9.txt http://ims.net/jstack/jstack.10.txt http://ims.net/jstack/jstack.11.txt The server appears to be idle, here. It's a little weird that thread 9770 has NO STACK IN

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
-) Uid: ( 500/ sam) Gid: ( 100/ users) Access: 2009-02-20 13:39:29.0 -0600 <--- Tomcat accesses the file Modify: 2009-02-20 10:39:09.0 -0600 Change: 2009-02-20 13:39:06.0 -0600 File: `/usr/local/tomcat/work/Catalina/www.ims.net/_/org/apache/jsp/test4_jsp.c

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
Chuck's comment about JSP to Java translation done by Jasper reminded me that I should have included the time on the Java source file created during JSP compilation. It shows that the Java source file was created immediately, but accessed again six seconds later (!), presumably by the compiler.

Re: very slow class loading on initial JSP/servlet request afterrestart

2009-02-20 Thread Sam Hokin
Actually, /usr/local/tomcat is a symlink to /usr/local/apache-tomcat-6.0.18. But that's a pretty important symlink for me, to make it easy to change Tomcat versions. But I'll investigate that. That's the only symlink involved that I can think of. Caldarale, Charles R wrote:

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
An update. I've written a simple standalone Java routine that calls File.exists(). It never hangs. In fact, I ran it against the class file that Tomcat creates from a test JSP; it doesn't hang, returns false for the (long) time it takes Tomcat to create the class file on the slow system, then

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
it's software, either in some service mucking up the JVM or the JVM itself. But it only manifests itself under Tomcat, and then only when this particular package is imported. Christopher Schultz wrote: Sam and David, On 2/20/2009 1:36 PM, David Smith wrote: Sam Hokin wrote: It's

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
André Warnier wrote: Sam Hokin wrote: I'd like to correct an error I made in my earlier report of this problem. It turns out that the response delay in my simple test JSP IS during compilation! I ran stat on the files in question, as well as looked at the time shown on the response

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-23 Thread Sam Hokin
Christopher Schultz wrote: Sam, On 2/20/2009 6:44 PM, Sam Hokin wrote: Thanks, Chris. I ran e2fsck with the -c option, which runs badblocks, when I tested it earlier. And I just ran badblocks again - 0 bad blocks found. Did you run badblocks on the array, or on an individual disk? I would

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-24 Thread Sam Hokin
Mark Thomas wrote: Sam Hokin wrote: Thanks, Chris. I ran e2fsck with the -c option, which runs badblocks, when I tested it earlier. And I just ran badblocks again - 0 bad blocks found. I wish I could fix this by simply as swapping out a bad disk (notwithstanding Andre's desir

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-24 Thread Sam Hokin
Juha Laiho wrote: One tool that I haven't yet seen suggested is 'strace', the Linux system call tracer. This will show all the calls your application makes to the operating system. As you say the application is mostly idle during the delay, it is, in one way or another, waiting for some OS servi

  1   2   >