Look at this link:
http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
This option is being used when you are operating on a machine without
graphics support (usually in a server configuration). You will use the
option for example when you want to do some AWT/Swing operation o
Is there at least someone that could tell me where to find more
information about the option "JAVA_OPTS=-Djava.awt.headless=true"?
What exactly is its purpose? Thanks in advance.
Daniel
On 5/6/05, Daniel Watrous <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a web application that uses java.aw
I'm using mysql + tomcat as server to run jsp pages.
and there are JavaBeans too.
I have read a lot on the web that using a connection pool is very good.
I just wondering why I should configure DBCP in tomcat?
i think if i write the database connection in jsp pages(not in beans)
I need configure DB
> Here is context.xml...
>
>
>
> type="javax.sql.DataSource"/>
>
>
>
> factoryorg.apache.commons.dbcp.BasicDataSourceFactory
>
>
>
>
> maxActive100
> maxIdle30
> maxWait1
>
>
>
> driverClassNamecom.mysql.jdbc.Driver
>
> urljdbc:mysql://loc
I think that would be the direction I would take.
If you need more proof:
Sniff the connection to the server to confirm the lack of available
connections. So far it is pointing in that direction.
Another test you might do is create a connection from a known IP, close the
browser and monitor the
So that I avoid "already loaded" classloader problems with jar's that
front native library calls via JNI, I am following the pattern of
putting the jars into "shared/lib".
However, I get a ClassNotFoundException. If I put this into
"CATALINA_HOME/common/lib", everything works fine. It's my im
So that I avoid "already loaded" classloader problems with jar's that
front native library calls via JNI, I am following the pattern of
putting the jars into "shared/lib".
However, I get a ClassNotFoundException. If I put this into
"CATALINA_HOME/common/lib", everything works fine. It's my i
็Hi Mark,
Many thanks for your help.
Dave.
--- Mark Thomas <[EMAIL PROTECTED]> wrote:
> David,
>
> You also need to look at how the parameters are set
> in the first place.
> Are you using GET or POST? If you are using GET have
> you set any of the
> character encoding settings on the connect
Another thing I noticed that you have placed your bean as a jar in the
WEB-INF/lib directory - while this works perfectly the practice is to put
custom class files in the WEB-INF/classes directory as just .class files
under their respective folders (as per package declaration)..
IMO the lib fol
Michael,
Everything works perfectly fine in your jsp and bean except that the package
mentioned in your bean (Beany.java) file seems incorrect:
It is:
** BEANY.JAVA
package subapp;
It should be:
** BEANY.JAVA
package subclass;
Or else an alternative is to change the folder in
It seems that, at least in most cases, the main menu
page after a login is loaded slow. After that other
pages are loaded pretty quick. Does that mean once a
connection is established, browser and server
communication is ok. If that is the case, maybe I
should look more at the connection timeout at
Please see the answer embedded below.
--- Parsons Technical Services
<[EMAIL PROTECTED]> wrote:
> 127421 over what period of time?
It's about 6 hours. But most of them are at the first
hour or so.
>
> Without a profile it is impossible to say if Tomcat
> can handle the load. But
> if the memory
David,
You also need to look at how the parameters are set in the first place.
Are you using GET or POST? If you are using GET have you set any of the
character encoding settings on the connector?
The following index.jsp works for me:
<%@ page contentType="text/html; charset=UTF-8" %>
C
127421 over what period of time?
Without a profile it is impossible to say if Tomcat can handle the load. But
if the memory consumption and the CPU usage is low (as noted) it is fairly
safe to say that Tomcat itself is not the bottle neck.
Quick question, why are you using Apache?
Also what is t
Hey,
Has your workers.properties a correct setup?
worker.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.cachesize=150
worker.ajp13.cache_timeout=600
What mod_jk Version you use?
Better config at mod_jk >=1.2.10
add this
worker.list=router,jkstatus
Hi Mark
If I have tried the following.
response.setContentType("text/html;
charset=utf-8");
PrintWriter out = response.getWriter();
request.setCharacterEncoding("UTF-8");
String test=request.getParameter("login");
out.println("Input string:"+test);
http://jakarta.apache.org/tomcat/faq/misc.html#tomcat5CharEncoding
Mark
David Harland wrote:
I am using Tomcat 5.0 and I am trying to receive and
send thai characters. Can someone please tell me the
simplest ways to do this.
Many thanks
Dave.
__
Do Y
I am using Tomcat 5.0 and I am trying to receive and
send thai characters. Can someone please tell me the
simplest ways to do this.
Many thanks
Dave.
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.ya
This website has many JSP pages of which each has many
JSPF included. I wonder whether or not the system is
not be able to handle this kind of setting. But
strange thing is that when we experienced the
slowness, I looked at the usage of CPU and find that
almost 90% of the CPU is idle.
Do anyone k
As a wild guess
Browser drops the connection immediately without notice
After 5 minutes, tomcat decides to drop the connection
After 30 minutes or so, Solaris finally finishes dropping the connection.
Gives a strange meaning to "Keep-Alive" ;)
-Original Message-
From: Jeffrey [mailto:[EMAI
I am sorry, the box runs a Solaris 5.6 instead of 2.6
as I said before. But still you are probably right, it
would be better to get a new OS installed.
I didn't use ndd commands to set the TCP parameters.
So even though we have the session timeout set to 5
minutes at the tomcat level, that paramet
Hi everyone,
I have studied this problem for a week now, and I can't seem to figure it out.
All I want to do is connect Tomcat 5.5.4 Server to Apache 2.0.52. I've read
the documents about the jk connector over and over, and tried doing the setup
with many tiny variations, but whatever I do I
Hi,
First off, let me apologise for the level of detail in
this message; if possible, I'd have made it shorter.
Anyway, I'm trying to learn J2EE; Tomcat seemed like a
good choice to learn the underlying technology, rather
than a particular JSP/Servlet container's deployment
tool. I can get 'plain
Oto Bossert wrote:
> Yoo,
>
> Yes switch to jk2 is faster!
But unsupported! Development of mod_jk1.x is going on, but not jk2. I
wouldn't advise anyone to select something uncontinued.
I set the session timeout time to 5 minutes, but
>>>
>>>in
>>>
the session view of tomcat manager, I see
Yoo,
Yes switch to jk2 is faster!
set parameters in OPT_CATALINA with -server Xmx=? and Xms=?
Sorry values depend on your available memory on the server, parameters
could be different with your version, check or google for correct parameters,
should improve performance...
Another option could b
> Looking back I was starting Tomcat from inside Eclipse with the Sysdeo
> Tomcat Plugin which apparently doesn't use the tomcat startup scripts,
> i.e., it bypasses startup.sh so it never sees -server. When I started
> tomcat manually via the cli with startup.sh with the JAVA_OPTS in
> catalina.s
26 matches
Mail list logo