Re: Fw: The value for the useBean class attribute com.company.product.thing is invalid.

2004-08-21 Thread Kok Wei, Koh
Hi Kenneth,

A while ago I ran into the same problem. I specified a larger heap size
like what you did and it helped. I can't think of a way you could control
how Tomcat uses memory, but I suppose you should increase your heap size
even further. At its worst, you'd just notice that your java process goes
into swapping rather than just using the RAM.

Have you tried a higher heap-size?

 Hi,

 I have an application running on Tomcat 4.1.24 with JapserReport 0.5.0.
 When
 I try to print JasperReport with large amount of data, there is a
 OutofMemoryError there. The tomcat will then shutdown unexpectedly.

 I search on google and set java -Xms256m -Xmx512m, but it doesn't help.

 I find it difficult to change to report design to limit the search result.

 Is there any setting I can control Tomcat's memory usage or restart tomcat
 programmically when it is shut down?

 Thanks in advance.

 Kenneth


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



-- 
Kok Wei, Koh [EMAIL PROTECTED]
iMocha Consulting - the Internet people
(M) +60(12) 3022956
(O) +60(3) 21688424
(F) +60(3) 21688343

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



Re: Load Balancing Problem...Urgent

2004-02-01 Thread Kok Wei, Koh
Hi Nicholas,

It is great to see undergraduates students (especially from Malaysia), 
using Tomcat in their projects ;-) High five dude!

Ok first of all, if you're building a web application you may want to 
consider placing Apache 1.3.x in front of your Tomcat instance, to serve 
a all static contents such as html/images and proxy all tomcat related 
stuffs to the Tomcat instances.

Why not go with the latest:-
* apache 1.3.29
* tomcat 4.1.29
* and the mod_jk connector
You may find a very good tutorial on how to setup load balanced Tomcat 
servers at the following URL:-

http://www.ubeans.com/tomcat/index.html

To answer your question...

snip
how can I send the request from load balancer connector to the connector
in that selected server?
After the selected server has finished the process, how can the server 
send back the response to load balancer and then the load balancer sends 
back to user?
/snip

An example of a complete flow of a request to a web application eg: 
http://www.xxx.com/myapp/start.do is ...

User - Apache - Tomcat - Apache - User

The way Apache determines if a particular request is to be proxied to 
Tomcar, is via the JkMount directive in the httpd.conf, see below:

JkMount /myapp/* loadbalancer

where loadbalancer is a worker of type lb.

Please go through the above URL to find out more.
Good luck!
Nicholas Tham Soon Hing wrote:
Hi,

I'm an undergraduate student from Malaysia. I'm using Tomcat 4.1.27 to
do a load balancing system. This system consists of several tomcat
servers and one of them will be the load balancer. When a user accesses
a url page, the load balancer will select a server to response to that
request. The problem that I faced now is I don't know how to make the
selected server to process the request from user browser. As I know the
tomcat connector will assign the socket to processor to process it. So
how can I send the request from load balancer connector to the connector
in that selected server? What should I send (socket? Input stream? Or
the request line? How to get these?)?After the selected server has
finished the process, how can the server send back the response to load
balancer and then the load balancer sends back to user? Can anyone help
me on this? Or is there any one has done this before? Can someone show
me the sample code for solving this problem? It's urgent. Your help is
appreciated.
Thanks,
Nicholas Tham


-
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: Tom cat set up problem

2003-10-22 Thread Kok Wei, Koh
Hi Sudhir.

You may give 4.1.24 a shot. I used it with jdk1.3.x and it worked fine.

Lim is right, javax.xml.* is specific to jdk1.4 and above.

UR Friend wrote:
Thanks for the info...can you tell me which version of Tomcat will work with this version. Is it possible to include any jar file and get it working..

Sudhir H

On Wed, 22 Oct 2003 Lim Huat Heng wrote :

I guess the main problem is your jdk is version 1.3.1. If I am not wrong the
javax.xml.* only in jdk1.4 above.Try to get jdk1.4.1 or preferably jdk1.4.2,
then change your JAVA_HOME to point to the new jdk location. hope it helps.
- Original Message -
From: UR Friend [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:40 PM
Subject: Tom cat set up problem
Hi!

I am trying to set up tomcat...tried to set-up following env var

It is installed in

C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12



SET JAVA_HOME=C:\jdk1.3.1_01
SET CATALINA_HOME=C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
When tried to run, I got the following exception. Am I running it in a
proper manner...??
C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\bincatalina run
Using CATALINA_BASE:   C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
Using CATALINA_HOME:   C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\temp
Using JAVA_HOME:   C:\jdk1.3.1_01
[ERROR] Digester - -Begin event threw error java.lang.NoClassDefFoundError:
jav
ax/xml/transform/Sourcejava.lang.NoClassDefFoundError:
javax/xml/transform/Sour
ce
   at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
(MbeansDescriptorsDOMSource.java:130)
   at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDes
criptors(MbeansDescriptorsDOMSource.java:120)
   at org.apache.commons.modeler.Registry.load(Registry.java:819)
   at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931
)
   at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909
)
   at
org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1646)
   at
org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
   at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(
GlobalResourcesLifecycleListener.java:112)
   at java.lang.Class.newInstance0(Native Method)
   at java.lang.Class.newInstance(Class.java:237)
   at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j
ava:253)
   at org.apache.commons.digester.Rule.begin(Rule.java:200)
   at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
   at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:459)
   at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abst
ractXMLDocumentParser.java:221)
   at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBi
nder.java:595)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:747)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:329)
   at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:525)
   at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:581)
   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
   at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1175)
   at org.apache.commons.digester.Digester.parse(Digester.java:1548)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:512)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:258)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:391)
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
jav
ax/xml/transform/Source
   at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
(MbeansDescriptorsDOMSource.java:130)
   at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDes
criptors(MbeansDescriptorsDOMSource.java:120)
   at org.apache.commons.modeler.Registry.load(Registry.java:819)
   at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931
)
   at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909
)
   at
org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1646)
   at
org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
   at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(
GlobalResourcesLifecycleListener.java:112)
   at 

Re: JRun - maybe off topic

2003-09-25 Thread Kok Wei, Koh
Hi Steve,

Yes you can. Say you have machine A and B, with A running Apache (w/ 
mod_jrun) and B with JRun. You have to first configure JRun to disable 
the JRun web server (in this case you dont want to use it because it's 
always better to have Apache in front shielding JRun), and then 
configure the external webserver which will then open up the jcp (JRun 
connector port). This is the port on machine B that's opened up for 
mod_jrun on machine A to connect to.

On machine A, you need to have the local.properties file of the JRun 
server running on machine B, so that mod_jrun is able to look up the jcp 
to connect to.

I'm bad at illustrating this with words ... forgive me if the above is 
kinda misleading. I've done this kinda setup before and it works. I 
however, just got experience with JRun 3.0, and not 4.0.

Good luck! ;-) and happy trying.

Steve Harris wrote:
So can jrun be split off and run on a sperate box from apache like I
can with tomcat ?
Cheers - Steve

On Thu, 25 Sep 2003, Shapira, Yoav wrote:


Howdy,
JRun is a complete J2EE server.  It can replace just your tomcat piece
or whole apache-tomcat setup.  If you really need Apache, it probably
because your traffic is high enough that tomcat standalone can't handle
it.  In that case, you'll still need Apache in front o JRun.
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Steve Harris [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 3:07 PM
To: [EMAIL PROTECTED]
Subject: JRun - maybe off topic
Hi all,

I'm trying to get to grips with the architecture for an application we
are

going to be deploying.  I have no problem with the apache/tomcat set-up
but this app uses apache and JRun.  Am I reading this wrong or does
JRun

simply take the place of tomcat but runs the apps locally as opposed to
being able to be deployed under an apps server like tomcat on some
other

server somewhere ?

Cheers - Steve

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




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
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]



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