Stupid servlet question...

2003-12-19 Thread Mikael Aronsson
Hi !

I have an application scope servlet and it works fine, but I would like to
run it all the time as soon as tomcat starts, not just after the first use,
is this possible ?

Mikael


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



Re: How much memory does Tomcat really use?

2003-09-25 Thread Mikael Aronsson
A basic out of the box Tomcat 5.0.12 is pretty happy with around 30MB on a
windows machine, but it's always tricky to say how much memory it will use
as it depends on lots of other things, how you configure it and the kind of
applications you run on it, but  40-50MB could be an ok guess on Windows.

Mikael

- Original Message - 
From: "Frank T. Murphy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 10:08 PM
Subject: How much memory does Tomcat really use?


> Does anyone have a handle on how much memory is used by java in running
> tomcat?  I set the ms and mx values but it always seems that the process
> overall takes up much more memory.
>
> I asume it's overhead with the JVM talking to the operating system.
> I'm trying to get a handle on how to size various servers.
> I went through Sun's developer forums and I've seen this question asked
> several times with no response.
>
> I work in bothe the Solaris and windows environment.
>
>
> Thanks
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: JDK 1.4 /Tomcat 4 problem...

2002-04-17 Thread Mikael Aronsson

Ahh!, sorry to bug you all in that case, I will check later today, I was
assuming that the error was related to the deprecation message, it looked
that way

Mikael

- Original Message -
From: "Ingo Bruell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 17, 2002 9:12 AM
Subject: Re: JDK 1.4 /Tomcat 4 problem...


> Hi Tomcat,
>
> MA> I read that there is a problem with JDK 1.4, but as I understand it
this
> MA> should only be a warning, I have digged around a bit but I have not
found an
> MA> anser to this, I have read some posts that people do run Tomcat 4 with
JDK
> MA> 1.4 so I am doing something wrong, but what... ?
>
> MA> Any ideas ?
>
> Please read the whole log, all time i got this message, my jsp
> page had an error.
>
>
> so long
>
>
> Ingo Bruell
>
> ---
> <[EMAIL PROTECTED]>
> <[EMAIL PROTECTED]>
> 
> OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648
169E E5FC
> Germany  PGP-Public-Key available at pgpkeys.mit.edu
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JDK 1.4 /Tomcat 4 problem...

2002-04-17 Thread Mikael Aronsson

Hi !

When use Tomcat 4.0.3 I get:
org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.

I read that there is a problem with JDK 1.4, but as I understand it this
should only be a warning, I have digged around a bit but I have not found an
anser to this, I have read some posts that people do run Tomcat 4 with JDK
1.4 so I am doing something wrong, but what... ?

Any ideas ?



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: ## Out of Environment space ##

2001-10-05 Thread Mikael Aronsson

You need to increase the environment space, command.com has a switch for
this, I don't remember in my head what it is though, type command /? and you
should get info about it. Modify your config.sys so that this option is used
for the default command.com

Mikael

- Original Message -
From: "Sam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 05, 2001 9:00 AM
Subject: ## Out of Environment space ##


> Hi all,
>
>   I want to run tomcat 3.2.3 on win98.
>   the set environment as follows:
>
>   ==C:\tomcat\bin>set
> TMP=C:\WINDOWS\TEMP
> TEMP=C:\WINDOWS\TEMP
> PROMPT=$p$g
> winbootdir=C:\WINDOWS
> COMSPEC=C:\WINDOWS\COMMAND.COM
> PATH=.;C:\JDK\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND
> CLASSOATH=.;c:\tomcat\lib\servlet.jar;c:\jdk\lib\tools.jar
> windir=C:\WINDOWS
> JAVA_HOME=c:\jdk
> TOMCAT_HOME=c:\tomcat
>   ==
>
>   execute C:\tomcat\bin\startup.bat and report,
>
> ==
> C:\tomcat\bin>startup
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Unable to set CLASSPATH dynamically.
> Note: To set the CLASSPATH dynamical
>   only DOS 8.3 names may be used
> Setting your CLASSPATH statically.
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
>
> Using CLASSPATH: c:\tomcat\classes
>
> Out of environment space
> Starting Tomcat in new window
> C:\tomcat\bin>
> ==
>
>   I do not run any other program.
>   what is the reason?
>
>   thanks all.
>
>
>
> > On Fri, 5 Oct 2001, Firestar wrote:
> >
> > > Hi Dmitri, thanks for your quick reply.
> > >
> > > I have tried adding the classpath to my servlets to
> > > catalina.bat, but it throw a javax.http.servlet class
> > > not found exception. It will works OK if i do not add
> > > in the classpath.
> > >
> > > Regards,
> > > Firestar
> > >
> > > > > Is this possible in TC? I know in JRun it is
> > > > possible
> > > > > to do so by specifying the classpath to my
> > > > servlets in
> > > > > the configuration file.
> > > > Anything's possible  the simplest way is to
> > > > change the catalina.sh to
> > > > include your classpath, but this is plain _wrong_,
> > > > what you would be
> > > > better off doing is changing your build/deploy
> > > > process so that you have a
> > > > properly structured webapp.
> > > >
> > > > for more info check out
> > > > http://java.sun.com/products/servlets
> > > >
> > > > cheers
> > > > dim
> > > >
> > > >
> > >
> > >
> > > __
> > > Do You Yahoo!?
> > > NEW from Yahoo! GeoCities - quick and easy web site hosting, just
> $8.95/month.
> > > http://geocities.yahoo.com/ps/info1
> > >
> >
>




Re: Please unsubscribe me

2001-10-03 Thread Mikael Aronsson

To remove your address from the list, send a message to:
   <[EMAIL PROTECTED]>

- Original Message -
From: "Guo Song Bai NCS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 9:02 AM
Subject: Please unsubscribe me


>
>
> Best Regards,
> Songbai
> Tel: 5565063
>
>
> This email (including all attachments) contains confidential information
> which may be privileged. It is intended solely for the identified
> recipient(s) to whom it is addressed. If you are not an intended
recipient,
> please reply to us immediately and delete this message from your system.
You
> may not copy or use it for any purpose, or otherwise disclose its contents
> to any person
>




Re: where to find the class's names

2001-10-02 Thread Mikael Aronsson

Hi !

The easiest thing would be to do as you where told when you subscribed to
the list, there is no reason to use that kind of language here.

"Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address."

...

To remove your address from the list, send a message to:
   <[EMAIL PROTECTED]>

That's it.
Mikael

- Original Message -
From: "Alexandru ANDREI" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 10:26 AM
Subject: RE: where to find the class's names


> dear list ...
> HOW THE HELL CAN I UNSUBSCRIBE FROM THIS LIST ???
> Or at least to switch to digest mode ?
>
> -Original Message-
> From: Huaxin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 02, 2001 4:10 PM
> To: [EMAIL PROTECTED]
> Subject: where to find the class's names
>
>
> I see this usage of attribute as below:
>
>   <%
> String requestURI = (String)
>  request.getAttribute("javax.servlet.error.request_uri");
>   %>
>
> Could anybody tell me where is that javax.servlet.error.request_uri
> defined?
>
>




Re: Réf. : web-inf/classes not found ?

2001-09-27 Thread Mikael Aronsson

Hi !

Already done, (I am using Linux 50% of the time so that's the first thing I
check) it's all uppercase and it still does not work, but I am pretty sure
that I have done something stupid so I will dig around a bit and see if I
can fix it.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 1:00 PM
Subject: Réf. : web-inf/classes not found ?


>
> Hi...
>
> you seem working on windows (your email header say so): beware on case ;)
> it is NOT web-inf, it is WEB-INF (under explorer right-click on dir,
> porperties gives you exact name).
>
> my 2 cents
> --
> Joseph
>
>
>
> Internet
> [EMAIL PROTECTED] - 27/09/2001 14:54
>
>
> Veuillez répondre à [EMAIL PROTECTED]
> Pour :tomcat-user
>
> cc :
>
> ccc :
>
>
> Objet :   web-inf/classes not found ?
>
>
> Hi !
>
> Tomcat complains that it can't find some of my classes
> .../web-inf/classes/xxx/yyy/myclassses for example,
> Everything works fine when I compile it (I specify the -classpath to let
> the
> compiler find the classes), but when I run the application in Tomcat, it
> does not find the classes.
>
> The docs says that it should look in the web-inf/classes directory ?
>
> Am I doing something wrong here maybe ?
>
> Mikael
>
>
>
>
>
>
>
>
>
>
> This message and any attachments (the "message") is
> intended solely for the addressees and is confidential.
> If you receive this message in error, please delete it and
> immediately notify the sender. Any use not in accord with
> its purpose, any dissemination or disclosure, either whole
> or partial, is prohibited except formal approval. The internet
> can not guarantee the integrity of this message.
> BNP PARIBAS (and its subsidiaries) shall (will) not
> therefore be liable for the message if modified.
>
> -
>
> Ce message et toutes les pieces jointes (ci-apres le
> "message") sont etablis a l'intention exclusive de ses
> destinataires et sont confidentiels. Si vous recevez ce
> message par erreur, merci de le detruire et d'en avertir
> immediatement l'expediteur. Toute utilisation de ce
> message non conforme a sa destination, toute diffusion
> ou toute publication, totale ou partielle, est interdite, sauf
> autorisation expresse. L'internet ne permettant pas
> d'assurer l'integrite de ce message, BNP PARIBAS (et ses
> filiales) decline(nt) toute responsabilite au titre de ce
> message, dans l'hypothese ou il aurait ete modifie.




Re: web-inf/classes not found ?

2001-09-27 Thread Mikael Aronsson

Ok, many thanks for the help.

Mikael

- Original Message -
From: "Chaber, Eric" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 1:32 PM
Subject: RE: web-inf/classes not found ?


> Edit your server.xml
> copy paste
>
>   docBase="webapps/examples"
>  crossContext="false"
>  debug="0"
>  reloadable="true" >
> 
>
> change "examples" to "mydir"
> create a dir $TOMCAT_HOME/webapps/mydir
> under my dir creates directories WEB-INF/classes
>
> at the end you should have $TOMCAT_HOME/webapps/mydir/WEB-INF/classes
> reboot tomcat
> put yur classes there
> that's how I did for my setup.
>
>
> -Original Message-
> From: Mikael Aronsson [mailto:[EMAIL PROTECTED]]
> Sent: September 27 2001 14:24
> To: [EMAIL PROTECTED]
> Subject: Re: web-inf/classes not found ?
>
>
> Ok, thanks, I will see if I can figure out how to do that
>
> The documentation says that Tomcat (4) always adds a classloader for each
> web application that looks in the web-inf/classes and web-inf/dir
directory,
> I could not find any examples/web-inf/classes reference in my server.xml,
I
> guess I should place this information in the context for my application
but
> I have no idea where, but I will see if I can find anything about it in
the
> documentation.
>
> Mikael
>
> - Original Message -
> From: "Chaber, Eric" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 27, 2001 12:53 PM
> Subject: RE: web-inf/classes not found ?
>
>
> > Mikeal,
> >
> > you have to specify in server.xml where your classes are.
> > for the example directory it's
> > /webapps/examples/web-inf/classes
> > recreate same path in server.xml
> > /webapps/mydir/web-inf/classes
> > reboot tomcat
> > put your class files there
> > tomcat should find them
> >
> > rgds,
> > Eric
> > -Original Message-
> > From: Mikael Aronsson [mailto:[EMAIL PROTECTED]]
> > Sent: September 27 2001 13:55
> > To: [EMAIL PROTECTED]
> > Subject: web-inf/classes not found ?
> >
> >
> > Hi !
> >
> > Tomcat complains that it can't find some of my classes
> > .../web-inf/classes/xxx/yyy/myclassses for example,
> > Everything works fine when I compile it (I specify the -classpath to let
> the
> > compiler find the classes), but when I run the application in Tomcat, it
> > does not find the classes.
> >
> > The docs says that it should look in the web-inf/classes directory ?
> >
> > Am I doing something wrong here maybe ?
> >
> > Mikael
> >




Re: web-inf/classes not found ?

2001-09-27 Thread Mikael Aronsson

Ok, thanks, I will see if I can figure out how to do that

The documentation says that Tomcat (4) always adds a classloader for each
web application that looks in the web-inf/classes and web-inf/dir directory,
I could not find any examples/web-inf/classes reference in my server.xml, I
guess I should place this information in the context for my application but
I have no idea where, but I will see if I can find anything about it in the
documentation.

Mikael

- Original Message -
From: "Chaber, Eric" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 12:53 PM
Subject: RE: web-inf/classes not found ?


> Mikeal,
>
> you have to specify in server.xml where your classes are.
> for the example directory it's
> /webapps/examples/web-inf/classes
> recreate same path in server.xml
> /webapps/mydir/web-inf/classes
> reboot tomcat
> put your class files there
> tomcat should find them
>
> rgds,
> Eric
> -Original Message-
> From: Mikael Aronsson [mailto:[EMAIL PROTECTED]]
> Sent: September 27 2001 13:55
> To: [EMAIL PROTECTED]
> Subject: web-inf/classes not found ?
>
>
> Hi !
>
> Tomcat complains that it can't find some of my classes
> .../web-inf/classes/xxx/yyy/myclassses for example,
> Everything works fine when I compile it (I specify the -classpath to let
the
> compiler find the classes), but when I run the application in Tomcat, it
> does not find the classes.
>
> The docs says that it should look in the web-inf/classes directory ?
>
> Am I doing something wrong here maybe ?
>
> Mikael
>




web-inf/classes not found ?

2001-09-27 Thread Mikael Aronsson

Hi !

Tomcat complains that it can't find some of my classes
.../web-inf/classes/xxx/yyy/myclassses for example,
Everything works fine when I compile it (I specify the -classpath to let the
compiler find the classes), but when I run the application in Tomcat, it
does not find the classes.

The docs says that it should look in the web-inf/classes directory ?

Am I doing something wrong here maybe ?

Mikael





Re: Tomcat consistently crashes Win2000 Server operating system

2001-09-26 Thread Mikael Aronsson

I don't think this has anything to do with Tomcat, when you get the blue
screen you also get an error message or exception text, what does it say ?

Mikael

- Original Message -
From: "Gregory Baytler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 1:06 AM
Subject: Tomcat consistently crashes Win2000 Server operating system


> I had jdk1.3.1 installed on my win2000 server.
> I am able to run applets and servlets OK, but I would like to create a JSP
> application.
> At first, I installed Tomcat 3.0 and created system variables: JAVA_HOME
and
> TOMCAT_HOME.
> I go to dos and cd into directory where startup.bat is, then startup
Tomcat.
> Tomcat 3.0 would startup OK, but as soon as I enter http://localhost:8080/
> into the browser, I get NT blue screen memory dump. So, I installed
> jdk1.2.2 - same thing
> happened. Then I installed Tomcat 3.2.3 - now I was able to get to
Tomcat's
> default page, but as soon as I click on Examples link, it crashes windows
> again. And also, since then I was not able to even get to default page
> anymore. As soon as I enter http://localhost:8080/ into the browser, I get
> NT blue screen with memory dump. Can somebody give me any clues on to what
> in the world is going on?
>
> Thanks in advance,
>
> -Gregory Baytler
> [EMAIL PROTECTED]
>




Re: java.lang.SecurityException: sealing violation

2001-09-26 Thread Mikael Aronsson

I am not sure but I belive this is because you are using the JAXP 1.1
libraries from the sun download site, those files does not work with TC4,
you must use the jaxp.jar and crimson.jar files included with TC4 (in the
jasper directory).

Mikael

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 10:22 AM
Subject: java.lang.SecurityException: sealing violation


> Hi,
>
> I use tomcat 3.2 and try to read a xml file throught a servlet but i
> recieve this error :
>
> java.lang.Exception: Exception occurred: java.lang.SecurityException:
> sealing violation
> at lds.utils.XMLManager.loadXML(XMLManager.java:168)
> at lds.utils.XMLManager.loadXML(XMLManager.java:183)
> at
> lds.servlets.OdataControllerServlet.init(OdataControllerServlet.java:93)
> at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
> org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
> at org.apache.tomcat.core.Handler.init(Handler.java:215)
> at
> org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
> at org.apache.tomcat.core.Handler.service(Handler.java:254)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> Compiled Code)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> Compiled Code)
> at java.lang.Thread.run(Thread.java:479)
>
> any idee to help me 
>
> Patrick PIERRA
>




Re: Tomcat spawning multiple processes under Linux

2001-09-25 Thread Mikael Aronsson

A thread on Linux is visible as a process, so what you see is the Java
threads running.

Mikael

- Original Message -
From: "Chaber, Eric" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 1:48 PM
Subject: RE: Tomcat spawning multiple processes under Linux


> same as me, seems to be a normal behaviour...
>
> -Original Message-
> From: Tor Arne Benjaminsen [mailto:[EMAIL PROTECTED]]
> Sent: September 25 2001 12:28
> To: [EMAIL PROTECTED]
> Subject: Tomcat spawning multiple processes under Linux
>
>
> I've tried both 3.2.3 and 4.0, and both spawn a varying number of
processes,
> usually between 10 and 25, like this:
>
> root  1908  0.0 34.7 209804 19116 pts/2  S13:01   0:00
> /usr/local/jdk1.3
> .1_01/bin/i386/native_threads/java -classpath
> /usr/local/jakarta-tomcat-4.0/bin/
> bootstrap.jar:/usr/local/java/lib/tools.jar
> -Dcatalina.base=/usr/local/jakarta-t
> omcat-4.0 -Dcatalina.home=/usr/local/jakarta-tomcat-4.0
> org.apache.catalina.star
> tup.Bootstrap start
>
> Could anyone explain to me why this is happening?
>
>




Re: .jsp ?

2001-09-25 Thread Mikael Aronsson

This is where you need mod_webapp if I understand everything correct.

Mikael

- Original Message - 
From: "Hans-Erik Skyttberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 1:08 PM
Subject: .jsp ?


> Hi!
> 
> If I only want to send files ending with .jsp to tomcat and not any
> other files is this possible with Tomcat 4.0 ?
> I would like to have a dir like /mail which kan consist of both .php
> .html and .jsp, but I only want to send .jsp to tomcat not .html or .php
> any suggestions on how to do this ?
> 
> Regards
> 
> Hans - Erik Skyttberg
> Boxer TV Access AB
> Tegluddsv. 64
> 115 28 Stockholm
> +46 (0)8 587 899 64
> +46 (0)733 35 70 64
> 




Re: Cookies.

2001-09-24 Thread Mikael Aronsson

I have no idea, but could it have something to do with \or\n <-> \n
conversion somewhere maybe ?

Mikael

- Original Message -
From: "James, Stuart" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 24, 2001 4:57 PM
Subject: Cookies.


> Development Machine is Tomcat-3.2.3 / WinNT 4. IE 6
> Live Tomcat-3.2.3 / HPUX11, IE5
>
> I am sending a cookie of 6402 bytes from Internet Explorer to tomcat, but
> tomcat tell's me that the received length is 5095 bytes ?
>
> The data is a very simple strings (comma separated values) the strings are
> escaped/unescaped before sending.
>
> Anybody out there got any ideas ?
>
> Thanks,
> Stuart.
>
>
> ___
> Email Disclaimer
>
> This communication is for the attention of the
> named recipient only and should not be passed
> on to any other person. Information relating to
> any company or security, is for information
> purposes only and should not be interpreted as
> a solicitation or offer to buy or sell any security.
> The information on which this communication is based
> has been obtained from sources we believe to be reliable,
> but we do not guarantee its accuracy or completeness.
> All expressions of opinion are subject to change
> without notice.  All e-mail messages, and associated attachments,
> are subject to interception and monitoring for lawful business purposes.
> ___




was (Security problems....)

2001-09-24 Thread Mikael Aronsson

Hi again !

It wasn't a security problem after all, an old applet was used instead of
the one I had compiled, I am not sure yet what failed, but it's weird, when
I emptied that classloader cache in the Java console and emptied the
Internet explorer cache it started to work, but I am not sure why the cache
would fail, the clock is running fine and so on so this shouldn't happen,
anyway it is a bit scary that the JVM might run an old applet in the cache
instead of the one I have compiled and placed on the server.

But as I said I am not sure if this is a Java problem of if it's my Internet
Explorer that does this to me

Mikael





Security problem....

2001-09-24 Thread Mikael Aronsson

Hi !

When I try to run this from an applet:
URL df = getCodeBase();
iconReport = new ImageIcon( new URL( df, "images/i_report.gif"));

I Get:
Java.security.AccessControlException: access denied (java.io.FilePermission
images/i_report.gif read)
 at java.security.AccessControlContext.checkPermission(Unknown Source)
 at java.security.AccessController.checkPermission(Unknown Source)
 at java.lang.SecurityManager.checkPermission(Unknown Source)
 at java.lang.SecurityManager.checkRead(Unknown Source)
 at sun.awt.SunToolkit.getImageFromHash(Unknown Source)
 at sun.awt.SunToolkit.getImage(Unknown Source)

But in another place in the code I have:
df = new URL( getCodeBase(), "stntree.dat");
BufferedReader  in = new BufferedReader( new InputStreamReader(
df.openStream(), "UTF-16"));

And this works fine without any problems, I thought it had something to do
with the images subdirectory, but even if I put the gif files in the same
directory as the applet it does not work.

Is there anything special I have to do to read an icon ?

(Windows2000 and Tomcat 4.0)

Mikael







Re: JSP vs. ASP

2001-09-21 Thread Mikael Aronsson

Hi !

- Original Message -
From: "Randy Layman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 21, 2001 12:42 PM
Subject: RE: JSP vs. ASP


>
>
> > -Original Message-
> > From: Järkeborn Joacim [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, September 21, 2001 7:55 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: JSP vs. ASP
> >
> >
> > Some differences:
> >
> > A ASP page is compiled into memory (every time it's accessed I think)
>
> This is true for ASP, but not ASPX (the .Net version).
>
>
> I think that the biggest difference is in how they interact with
> external objects - generally the business portion of your application.
>
> In Java you use beans (basically just classes) that implement the
> stuff in your application.  These are written in Java and can do whatever
> Java can do.
>
> In ASP you use COM objects.  These objects are written in more ASP,
> VB, VC++ (and C# for .Net).  Objects in ASP can't do a whole lot so
they're
> not all that useful.  VB has threading issues and Microsoft recommends not
> using VB COM objects with IIS because of it (this might have changed with
> .Net - I haven't been able to check either way).


They (MS) claim to have fixed this in VB.NET.


> So, for a good ASP
> application you need to write the COM objects in C++, which gives you all
of
> your old headaches about memory management, etc.  Also these COM objects
are
> implemented as DLLs with need to be in the Windows directory (for
non-.Net)
> or in the IIS bin directory (for .Net).  In either case you can have only
> version of the object at a time, making multiple web applications using
the
> same objects but different versions impossible.  (There are also other
> implications that cause problems.)
>


They also claim to have fixed this, they have support for multiple .dlls
with different versions, but it only works on XP (I think), and it's a
pretty ugly solution if I understand it all correct (which I might not do of
course, I often have problems figuring out what MS is trying to do ;o)


> The downside for Java is its speed.  Its still an interpreted
> language.  However, with Microsoft making the CLI, ASP/C++/C# is now also
> interpreted, so the gap is closing.
>
> I've tried several different times to come up with an upside to ASP
> while writing this message, but none come to me.  Microsoft solutions are
> generally cheaper than EJB for initial outlay, there are more MS admins
> (IIS) out there than Tomcat/Resin/JRun/whatever servlet container.
However,
> both are dubious signs - Microsoft solutions haven't been proven to have a
> lower Total Cost of Ownership (TCO), but they haven't really been proven
to
> have a higher one either.  Also, the fact that there are more certified
> admins might be an indicator that MS solutions need more care and feeding
> than the corresponding Servlet solution, again I haven't seen any proof
> either way.
>
> These are just my thoughts and no one's official opinion.
>
> Randy




Tomcat vs. Apache

2001-09-19 Thread Mikael Aronsson

Hi !

Apache is faster then Tomcat, and in some documents I have also found
information that Tomcat should be less robust then Apache.

I am running Tomcat locally on my computer and so far I have not noticed any
performance problems, I am developing an intranet application that use alot
of JSP and applets, but the number of users is pretty low, say maybe 5-10
active users.

So, is it ok to use Tomcat for a solution like this ?, it would be
interesting to know a little of where the bottlenecks are in Tomcat..., at
the moment I don't have any possibility to try it out in a realistic
environment, so it would be nice to have a clue if I should go for a
solution with Tomcat and a separate HTTP server or use Tomcat alone.

Mikael