Re: tomcat install problems on Tru64unix

2002-10-21 Thread Mr. Cristian Romanescu
Hi,
I'm not sure if this would help, but maybe you should try setting 
CATALINA_HOME, since new releases of Tomcat.
also you might want to run "catalina.sh run".

Bye!

He, JianBo wrote:

Hi, 

I installed J2SDK V1.4 and tomcat on Compaq Tru64UNIX v5.1 successful, set TOMCAT_HOME and JAVA_HOME variable to proper directory, but failed to startup with startup.sh,  there is no corresponding process running and also, no explicit error apears. Only in output log, it recorded:

# more catalina.out

usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -debug
] [ -nonaming ] { start | stop }
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -debug
] [ -nonaming ] { start | stop }

I do not know where the problem is, J2SDK? or tomcat?   

thanks you for your kindly help!


Best Regards

He JianBo

Technical Consultant Organization
Hewlett-Packard Company



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: deploying servlet ?

2002-10-21 Thread Mr. Cristian Romanescu

The first search of Goole after : "Deploying a servlet in Tomcat"...
http://www.nacse.org/~yoon/tomcat-howto.html

You do the rest...

Cheers.


[EMAIL PROTECTED] wrote:


Hi Y´all
If I make a servlet and compile it, where am I supposed to place the class file, and which files should I add the context to ? 

I was reading a tutorial on http://wireless.java.sun.com/midp/articles/tutorial2/ but that seems to be the another version of Tomcat, I´m running 4.1.12, since it talks about adding the context to conf/server.xml but I can´t find anything like that in conf/server.xml

Is there a homepage with a good instruction on how to add a first servlet to tomcat ?

Sincerely
	Daniel

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat autostart on Linux

2002-10-25 Thread Mr. Cristian Romanescu
It depends on how it's installed, also Linux distro

If you have RedHat and istalled via rpm distro, you should have in 
/etc/init.d/ a script named tomcat4 that launches Tomcat @ statup.

 4 -rwxr-xr-x1 root root 3055 Mar  4  2002 tomcat4

(I'm not also a linux expert, but I suppose that should be marked 
executable.

also you can stop/start manually invoking
/etc/init.d/tomcat4 

Here's a quick'n paste solution

--
#!/bin/sh
#
# Startup script for Tomcat 4.0, the Apache Servlet Engine
#
# chkconfig: 345 80 20
# description: Tomcat 4.0 is the Apache Servlet Engine RI for Servlet 
2.3/JSP 1.2
# processname: tomcat
# pidfile: /var/run/tomcat4.pid
# config:  /etc/tomcat4/conf/tomcat4.conf
#
# Gomez Henri <[EMAIL PROTECTED]>
# Keith Irwin <[EMAIL PROTECTED]>
# Nicolas Mailhot <[EMAIL PROTECTED]>
#
# version 1.02 - Removed initlog support
# version 1.03 - Removed config:
# version 1.04 - tomcat will start before httpd and stop after httpd
# version 1.05 - jdk hardcoded to link /usr/java/jdk and tomcat runs as 
"nobody"
# version 1.06 - split up into script and config file
# version 1.07 - Rework from Nicolas ideas
# version 1.08 - Fix work dir permission at start time, switch to use 
tomcat4
# version 1.09 - Fix pidfile and config tags
# version 1.10 - Fallback to su direct use on systems without 
Redhat/Mandrake init.d functions
# version 1.11 - Fix webapps dir permissions
#

# Source function library.
if [ -x /etc/rc.d/init.d/functions ]; then
. /etc/rc.d/init.d/functions
fi

# Get Tomcat config

TOMCAT_CFG="/etc/tomcat4/conf/tomcat4.conf"

[ -r "$TOMCAT_CFG" ] && . "${TOMCAT_CFG}"

# Path to the tomcat launch script (direct don't use wrapper)
TOMCAT_SCRIPT=/usr/bin/dtomcat4

# Tomcat name :)
TOMCAT_PROG=tomcat4

# if TOMCAT_USER is not set, use tomcat4 like Apache HTTP server
if [ -z "$TOMCAT_USER" ]; then
TOMCAT_USER="tomcat4"
fi

# Since the daemon function will sandbox $tomcat
# no environment stuff should be defined here anymore.
# Please use the /etc/tomcat.conf file instead ; it will
# be read by the $tomcat script

RETVAL=0

# See how we were called.
start() {
echo -n "Starting $TOMCAT_PROG: "

chown -R $TOMCAT_USER:$TOMCAT_USER $CATALINA_HOME/logs
chown -R $TOMCAT_USER:$TOMCAT_USER $CATALINA_HOME/work
chown -R $TOMCAT_USER:$TOMCAT_USER $CATALINA_TMPDIR
chown -R $TOMCAT_USER:$TOMCAT_USER $CATALINA_HOME/webapps

if [ -x /etc/rc.d/init.d/functions ]; then
daemon --user $TOMCAT_USER $TOMCAT_SCRIPT start
else
su - $TOMCAT_USER -c "$TOMCAT_SCRIPT start"
fi

RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/tomcat4
return $RETVAL
}

stop() {
echo -n "Stopping $TOMCAT_PROG: "
if [ -x /etc/rc.d/init.d/functions ]; then
daemon --user $TOMCAT_USER $TOMCAT_SCRIPT stop
else
su - $TOMCAT_USER -c "$TOMCAT_SCRIPT stop"
fi
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/tomcat4 /var/run/tomcat4.pid
}


# See how we were called.
case "$1" in
  start)
start
;;
  stop)
stop
;;
  restart)
stop
# Ugly hack
# We should really make sure tomcat
# is stopped before leaving stop
sleep 2
start
;;
  condrestart)
if [ -f /var/run/tomcat4.pid ] ; then
stop
start
fi
;;
  *)
echo "Usage: $TOMCAT_PROG {start|stop|restart|condrestart}"
exit 1
esac

exit
--



neal wrote:

Anyone know how to make Tomcat automatically startup when Linux is 
rebooted?

As you can probably tell I'm not a Linux expert.  :(

Thanks.
Neal

--
To unsubscribe, e-mail:
For additional commands, e-mail:



--
Cristian D. Romanescu
alternative: cristian at qdrei.de
mobile : +40745133096

--- "Pauca sed matura" - Gauss' motto ---


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: plz help, I cannot determine why this is not working????

2002-10-25 Thread Mr. Cristian Romanescu
In my oppinion it's your application fault and not Tomcat's. It would be 
helpful to send the code snippet from place where your code throws 
NullPointer...

But first you should try to put some System.outs. out there and see 
where the code hangs...as that exception doesn't give (me) a clue about 
what's happening..


regards,
cristian.




Edmund Smith wrote:

I have so far tried many times to make a program work at another 
location. Now I am totally lost for ideas.
The program works at home but when I try it in a networked computer 
everything fails. I do not know why.
I would be grateful if someone would look at my code and test it. 
Please reply to me here so that I could perhaps send the code.
I would be eternally grateful.
Thank you in advance.
Here is the error, which I get only at the deployment location:
Error: 500
Location: /myJSPs/jsp/portal-project/processviewfiles_dir.jsp
Internal Servlet Error:
javax.servlet.ServletException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
at 
jsp.portal_0002dproject.processviewfiles_dir_4._jspService(processviewfiles_dir_4.java:163)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at 
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:536)
Root cause:
java.lang.NullPointerException
at 
jsp.portal_0002dproject.processviewfiles_dir_4._jspService(processviewfiles_dir_4.java:133)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at 
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:536)




-
Get a bigger mailbox -- choose a size that fits your needs.



--
Cristian D. Romanescu
alternative: cristian at qdrei.de
mobile : +40745133096

--- "Pauca sed matura" - Gauss' motto ---


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Shared Class Loader (4.0.5) and (4.1.12) Win 2K

2002-10-28 Thread Mr. Cristian Romanescu
1. the jar should be placed in 'webapps/yourwebapp/WEB-INF/lib'
2. the jar should not be corrupted (check if it's ok) - It happened a 
few times that jar was corrupted (mm.mysql-2.0.4-bin.jar) so when I 
looked inside archive nothing was there...
3. I don'y use mysql-connector, but plain "mm.mysql-2.0.4-bin.jar" so 
check also if packages are correct!

Good luck!


Curley, Thomas wrote:

Hi,

While trying to load mysql driver :

Shared Class Loader:
on 4.0.5  - I placed mysql 'mysql-connector-java-2.0.14-bin.jar' in 
$CATALINA_HOME/lib but still got  - Cannot load JDBC driver class 
'org.gjt.mm.mysql.Driver'
on 4.1.12 - I placed mysql 'mysql-connector-java-2.0.14-bin.jar' in 
$CATALINA_HOME/shared/lib but still got  - Cannot load JDBC driver 
class 'org.gjt.mm.mysql.Driver'

Common Class Loader:
on 4.0.5 $CATALINA_HOME/common/lib  - the common class loader works - 
Why is this ? - is the doc wrong or am I mssing a step


thanks
Thomas















--
To unsubscribe, e-mail:
For additional commands, e-mail:



--
Cristian D. Romanescu
alternative: cristian at qdrei.de
mobile : +40745133096

--- "Pauca sed matura" - Gauss' motto ---


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JSP's, scriplets, and logic

2002-10-28 Thread Mr. Cristian Romanescu
Think of it, you get sloppy, another gets sloppy, so if all would get 
sloppy and just drop code wherever it came's first in mind, who will 
stay and maintain the code?

I write because, I stand now & bitchin' that someone else wrote whatever 
his mind shit out...

Keep in mind that you develop an web application and someone tomorrow 
tolds you that an Java thin client would also be useful, and in no more 
than 2-3 weeks...so I'll what you'll do!?
Let me see you cutting from JSP and paste it in Java sources, day & night...

Wouldn't be nice that you get your logic seperated so you would only 
call you classes to do the DB queries and then use them as Vectors 
lists, whatever you wish and display them, for example!?

Well, maybe isn't that bad, but you get the idea...

Regards,
Cristian...


Matt Fury wrote:

Yes,

Again I agree, it can get sloppy. So what would you
reccommend? Many servlets? many beans? Just curious
thats all. Lots of times I think there isn't much to
separate. I am asking because I strive to become a
better programmer as we all do. Advancing to higher
levels means understanding business logic. I worked
for a company who partnered with Rational so we were
all about business logic.

I don't have a problem taking this offline for a bit
if anyone wants to discuss furthur.

Thanks.

-Matt



--- [EMAIL PROTECTED] wrote:

>No its just good design.  Its thinking of the
>future.  Badly
>partitioned code is one of the prime reasons that
>leads to
>unmaintainable code
>On Friday, October 25, 2002, at 08:43 PM, Matt Fury
>wrote:
>
>
>>Yes I agree,
>>
>>but not all projects warrant EJB's or the like.
>>I think lots of times trying to separate business
>>logic is just overkill.
>>
>>-Matt
>>
>>--- John Trollinger
>
>wrote:
>
Which implies you're putting code in scriptlets,
>>>
>>>right?  Sheesh ...
>>>
Java code to implement business logic belongs in
>>>
>>>Java
>>>
classes, not intermixed with your presentation
>>>
>>>markup in a JSP page.
>>>
>>>
>>>If only more people would listen to this!
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>
>
>
>
>>>For additional commands, e-mail:
>>>
>>>
>>
>>=
>>
>>int myName() {
>>  cout << "-Matt Fury \n";
>>  return 0;
>>}
>>
>>
>>__
>>Do you Yahoo!?
>>Y! Web Hosting - Let the expert host your web site
>>http://webhosting.yahoo.com/
>>
>>--
>>To unsubscribe, e-mail:
>>
>
>
>
>>For additional commands, e-mail:
>>
>>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>


=

int myName() {
  cout << "-Matt Fury \n";
  return 0;
}


__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

--
To unsubscribe, e-mail:
For additional commands, e-mail:




--
Cristian D. Romanescu
alternative: cristian at qdrei.de
mobile : +40745133096

--- "Pauca sed matura" - Gauss' motto ---


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: tomcat 4.1.12 not starting- exception

2002-10-29 Thread Mr. Cristian Romanescu
Actually if you want to use JDK 1.3.1 you need xerces XML parser, which 
lacks on LS distribution which is part of JDK 1.4.1 so no need to 
include it in Tomcat also...

Raj Saini wrote:

Hi,
jakarta-tomcat-4.1.12-LE-jdk14.exe does not have some librabries which
are part of the JDK 1.4.x. Download the jakarta-tomcat-4.1.12.exe as
your JDK version is 1.3.x. If you want to use the LE version download
and install the JDK 1.4.x.

Raj
Sexton, George wrote:

> The LE distribution requires JDK 1.4
>
> -Original Message-
> From: Nalini [mailto:nalinisp@;yahoo.com]
> Sent: 28 October, 2002 11:54 AM
> To: Tomcat Users List
> Subject: tomcat 4.1.12 not starting- exception
>
>
> Hi,
>
> I have installed jdk1.3.1_04 and made JAVA_HOME point
> to the jdk home =
> directory.
> Then I have down loaded the release version of tomcat
> 4.1.12 and unzipped =
> it. When I tried to start tomcat from the
> tomcathome\bin directory using =
> the startup command , I get the following error.
>
> Using CATALINA_BASE:
> C:\jakarta-tomcat-4.1.12-LE-jdk14
> Using CATALINA_HOME:
> C:\jakarta-tomcat-4.1.12-LE-jdk14
> Using CATALINA_TMPDIR:
> C:\jakarta-tomcat-4.1.12-LE-jdk14\temp
> Using JAVA_HOME:   C:\jdk1.3.1_04
> Exception in thread "main"
> java.lang.NoClassDefFoundError: org/xml/sax/Inpu=
> tSour
> ce
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:232)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179)
>
> Could someone help me fix this error.
>
> --- Robert L Sowders  wrote:
>
>> Here is a nice article that might help with
>> clustering.
>>
>>
>
> http://www2.theserverside.com/resources/article.jsp?l=Tomcat
>
>> rls
>>
>>
>>
>>
>>
>>
>> Bernd Koecke
>> 10/28/2002 01:45 AM
>> Please respond to "Tomcat Users List"
>>
>>
>>To: Tomcat Users List
>>
>>cc:
>>Subject:Re: load balancing with
>> routing with mod_jk in cluster
>>
>>
>> Hi,
>>
>> it seems that you want to use mod_jk on the nodes as
>> balancer. We don't
>> use it
>> in that way. We have a load balancer in front of our
>> nodes, which has a
>> standby
>> balancer, if the first one goes down. If we want to
>> get your requested
>> behavior,
>> we had to configure this on our load balancer, not
>> on the nodes. This
>> balancer
>> knows nothing about apache, tomcat and mod_jk. So I
>> don't know how to
>> manage it
>> with mod_jk.
>>
>> I don't know how your config should work. Because if
>> N1 routes to all
>> other
>> nodes and N1 goes down, how should your client know,
>> that he had to
>> connect to
>> N2? You need some logic in front of your cluster,
>> that the clients see
>> your
>> cluster as one big server. If you want something
>> like standby or hot
>> standby you
>> must implement this in the front logic, not on the
>> nodes. And I don't know
>> if
>> this is possible with jk1.
>>
>> Why do you limit the balancing to N1? Most of the
>> work is done in your
>> servlets.
>> The balancing is not so hard, that it will bring
>> your node down. If all
>> nodes do
>> balancing its no problem, if one node goes down.
>>
>> But may be I don't understand your scenario.
>>
>> Bernd
>>
>> Alexander Piavka wrote:
>>
>>> Bernd thanks for your reply.
>>>
>>> There is one more question i have.
>>> I have 3 nodes N1,N2,N3 each runs apache and
>>
>>
>> tomcat. On node N1 i want
>>
>>> to run lb_worker1 which will route all requests
>>
>>
>> between all nodes.
>>
>>> All apache servers will send requests to this
>>
>>
>> lb_worker1.
>>
>>> On node N2 i want to run lb_worker2 which will
>>
>>
>> start routing  all
>> requests
>>
>>> between all nodes ONLY then lb_worker1 goes down.
>>> I don't know if it is possible to make this
>>
>>
>> configuration in
>>
>>> workers.properties file.
>>> As i see i on each node workers.proprerties file
>>
>>
>> should have bl_worker
>>
>>> which will route requests between bl_worker1
>>
>>
>> bl_worker2. And bl_worker1
>>
>>> should have very high lbfactor and bl_worker2 very
>>
>>
>> low:
>>
>>> worker.bl_worker.type=lb
>>>
>>
> worker.bl_worker.balanced_workers=bl_worker1,bl_worker2
>
>>> but this is probably illegal as load balancers
>>
>>
>> don't have lbfactor,
>>
>>> and balancers can't have other balancers in their
>>
>>
>> balanced_workers
>>
>>> property.
>>> Please tell me if i can make the above scenario
>>
>>
>> work.
>>
>> [...]
>>
>>
>> --
>> Dipl.-Inform. Bernd Koecke
>> UNIX-Entwicklung
>> Schlund+Partner AG
>> Fon: +49-721-91374-0
>> E-Mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
>> ATTACHMENT part 2 application/octet-stream
>
>
> name=attbf0fo.dat
>
>> --
>> To unsubscribe, e-mail:
>>
>> For additional commands, e-mail:
>
>
>
>
>
> __
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
> http://webhosting.yahoo.com/
>
> --
> To unsubscribe, e-mail:
>
> For additional commands, e-mail:
>
>
>
> --
> To unsubscribe, e-mail:
>
> For additional co

Re: tomcat speed

2002-10-30 Thread Mr. Cristian Romanescu
seems very strange, because I never have to wait so much for Tomcat to 
start...

1. Of course you could read docs and fine-tune the server.xml to your 
needs, i.e. removing uneeded connectors, realms (correct ?) that you 
don't normally need for your app.

2.Get a better processor ;)

Regards,
Cristian

Sandeep Murphy wrote:

hi all,

I have been using Tomcat for more than a year now...however 2 things 
hv always bugged me and decided its time to get them solved..

1. The Tomcat 4 normally used to boot up/start up in under 30 seconds 
but sometimes takes as much 6-8 mins to start up and run !!! Why does 
this happen and is there any way to solve it??

do i need to chk anything??

2. As u can c below this indicates that the tomcat service has started 
up and running.. but why does it appear 2 times on the tomcat console 
??? any particular reason??

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1

thnx for any suggestions..

cheers,
sands

--
To unsubscribe, e-mail:
For additional commands, e-mail:



--
Cristian D. Romanescu
alternative: cristian at qdrei.de
mobile : +40745133096

--- "Pauca sed matura" - Gauss' motto ---


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: AW: Server.xml and keystore password

2002-11-01 Thread Mr. Cristian Romanescu

Try this on a Win98 or 2000/FAT32 :)


Power-Netz (Schwarz) wrote:


>security hole.  Is there anyway around this?  Any ideas or
>recommendations will be greatly appreciated.


set the ugw flags to readonly for the tomcat user :)

--
To unsubscribe, e-mail:
For additional commands, e-mail:




--
Cristian D. Romanescu
alternative: cristian at qdrei.de
mobile : +40745133096

--- "Pauca sed matura" - Gauss' motto ---


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Win32] Tomcat 5.0 -- JavaSDK problem

2002-11-01 Thread Mr. Cristian Romanescu
Juergen Heckel wrote:


Hi,
first Apache 2.0.44-dev and Tomcat 5.0 are running fine, Apache is
starting Tomcat; with http://localhost:8080 I see the Tomcat startpage.

But testing a JSP 2.0 example in the application manager e.g.
/jsp-examples/basic_comparisons.jsp fails.

 From stderr.log:
01.11.2002 11:36:33 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=20/230
config=f:\jakarta-tomcat-5.0\conf\jk2.properties
01.11.2002 11:37:04 org.apache.jasper.compiler.Compiler generateClass
SCHWERWIEGEND: Javac execption
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java) 


at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java)
at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:373)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:414)

The javac.exe IS in the path (i can start it from elsewhere),
PATH=f:\j2sdk1.4.1_01;f:\j2sdk1.4.1_01\bin
JAVA_HOME=f:/j2sdk1.4.1_01


JAVA_HOME=f:\j2sdk1.4.1_01
^

Well, maybe isn't this the answer, but...



CLASSPATH=.;f:\jakarta-tomcat-5.0\common\lib\servlet.jar;
f:\jakarta-tomcat-5.0\common\lib\tools.jar;f:\jakarta-tomcat-5.0\bin\boo
tstrap.jar;


Please can someone help me?

Juergen

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
Cristian D. Romanescu
alternative: cristian at qdrei.de
mobile : +40745133096

--- "Pauca sed matura" - Gauss' motto ---


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to allocate memory to JVM

2002-11-01 Thread Mr. Cristian Romanescu
Maybe this would help you:

http://java.sun.com/docs/hotspot/VMOptions.html
http://java.sun.com/j2se/1.3/docs/tooldocs/linux/java.html


[EMAIL PROTECTED] wrote:


Hi !
How does one allocate physical RAM to the JVM on a Linux RH box ?
How does one change existing allocation.
Keeping my fingers crossed.
TIA

--
To unsubscribe, e-mail:
For additional commands, e-mail:




--
Cristian D. Romanescu
alternative: cristian at qdrei.de
mobile : +40745133096

--- "Pauca sed matura" - Gauss' motto ---


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: question about session behavior

2003-01-08 Thread Mr. Cristian Romanescu
Hi, David.
There is one detail, Tomcat uses so called (I think) persistent 
sessions. Meaning...
If you close Tomcat, it creates a file 
($CATALINA_HOME/work/Standalone/yourwebapp/SESSIONS.ser) where present 
sessions are serialized.
Also when you restart Tomcat, that file is deleted. So basically when 
you close Tomcat your sessions aren't really destroyed, but saved for 
latter restart.

Hope this help.

Regards,
Cristian.

David Boyer wrote:

When I shut down Tomcat, shouldn't HttpSessionListener.sessionDestroyed() be called for each existing session?

When users authenticate to my application, I store their username and encrypted password in a database where it's associated with their session. When the session is destroyed, I have a session listener delete the database row associated with that session. However, when I shut down Tomcat I end up with orphaned rows in the database.

Is there a way to have HttpSessionListener.sessionDestroyed() called for each session when shutting down Tomcat?

TIA!


 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problems with installation on win2k advanced server (Java exceptionsthrown)

2003-01-08 Thread Mr. Cristian Romanescu
Hi!

I remember we had the same problem on the web server where using Tomcat 
4.0.3 with JDK 1.3.1, so the resolution was to upgrade both Tomcat & JDK
since on the test server (Tomcat 4.1.12 + JDK 1.4.1_01 worked 
perfectly). From what I could see you are using latest version of 
Tomcat, maybe try upgrading JDK (I don't think will resolve, but it's an 
idea)

Did you tried to request other pages (not index.jsp) and see if they 
compile...?
Also you could try another version of Tomcat, I think...

Hope this helps...

Cristian.


Tammer Salem wrote:

Hi,
I just installed Tomcat 4.1.18 on win2k advanced server (and running J2SDK 1.4). I keep on getting a Java exception when I use (http://localhost:8080/).
I've included the error below.
Does anyone have any idea how to solve this?



type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
   [javac] Compiling 1 source file



	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
	at java.lang.Thread.run(Thread.java:536)



 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: TOMCAT Crashing down

2003-01-14 Thread Mr. Cristian Romanescu
Hi.
From your posting is not resulting what combination of platform / 
tomcat / jdk you are using.
Provide more technical details, maybe someone would help you...




Dheeraj Anand wrote:

Dear All,

My tomcat is getting shutdown after giving following problem...

"An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code
outside the VM"

Any clue?

We are running some JSP pages that require connection to DB2 in backend. And
one Java multithreaded application is also running (separate to tomcat) and
this application also require access to DB2.

Regards,
Dheeraj


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: TOMCAT Crashing down

2003-01-14 Thread Mr. Cristian Romanescu
Hello, again.
:-\  IMHO you should try using diferent distribution of  JDK / Tomcat (I 
think Tomcat 4.x is better).
Also check if driver it's ok (i.e. works in other contexts / applications).
If  Tomcat is shutting down right after it starts, then there is a 
problem loading one of the webapps libraries (jars classes etc), try 
disabling and see what happens.

This is what I would do...

c.


Dheeraj Anand wrote:

Hi,

we are using Windows 2000 professional edition and we are using JDK 1.3
along with Tomcat 3.2.4.
We are using DB2 Enterprise edition version 7.1 and JDBC driver is
db2java.zip that resides in

c:\program files\SQLLIB\java

Regards,
Dheeraj

-Original Message-
From: Mr. Cristian Romanescu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 1:16 AM
To: Tomcat Users List
Subject: Re: TOMCAT Crashing down


Hi.
From your posting is not resulting what combination of platform /
tomcat / jdk you are using.
Provide more technical details, maybe someone would help you...




Dheeraj Anand wrote:

 

Dear All,

My tomcat is getting shutdown after giving following problem...

"An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code
outside the VM"

Any clue?

We are running some JSP pages that require connection to DB2 in backend.
   

And
 

one Java multithreaded application is also running (separate to tomcat) and
this application also require access to DB2.

Regards,
Dheeraj


--
To unsubscribe, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 


   




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


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

 




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




Re: !!!HELP!!! how to execute an external .exe-file (+Parameters)that creates data-files I want to use later in my servlet

2003-01-21 Thread Mr. Cristian Romanescu

here's a  sample of code that would send an e-mail using mail command 
under Linux.
I guess that the exe probably should be within your PATH
As you can observe, cmd[0] is the name of the app
cmd[1], cmd[2], .are command line arguments to the app

   private static void sendMail(String mailTo, String subject, String 
body) throws IOException {
   String []cmd = new String[3];
   cmd[0] = new String("mail");
   cmd[1] = new String("-s SUBJECT - " + subject);
   cmd[2] = new String(mailTo);
   Process mailProc = Runtime.getRuntime().exec(cmd);
   OutputStream outStream = mailProc.getOutputStream();
   outStream.write(body.getBytes());
   outStream.flush();
   outStream.close();
   }

hope this helps

c.


Patrick Kosiol wrote:

Hi,

I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
My Code:

 String[] runString = {relativeDataPath + "data.exe",
   parameter0, parameter1, parameter2, parameter3};
 Process p = Runtime.getRuntime().exec(runString);
 System.out.println(runString);
 if(p.waitFor() == 0){
   

The 'data.exe'-File is placed in 
$CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no 
problem to access this File. The Number of  Parameters etc. is OK.
But I get the following Error-Message:

java.io.IOException: CreateProcess: 'relativeDataPath'/bfpldata.exe 
parameter0 parameter1 parameter2 parameter3 error=2

error=2 means imho that the File is not found. How can I execute my 
file to do that, what I want. Is it possible that the process can 
create files in the Tomcat folders?


Thx
Patrick


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: could you help me please?

2003-01-21 Thread Mr. Cristian Romanescu
The problem isn't that easy.
First of all I developed an application using parallel port (it's a 
matter of choice :)):
I found a big issue accesing port from Java...finally my option was to 
write an dynamic library (dll) in Ms Visual C (because is directly in 
assembler)
where I wrote the basic I/O functions with parallel ports.
Then using JNI (Java Native Interface) I called the methods from java, 
wherever I wanted to send something to the parallel port.

Unfortunately this works fine only in '95/'98...in NT/2000 blah...you'll 
need privilege access (or you'll get privilege exception from kernel)
There is a way for this also...there is a program (i can't remember 
now... search google) which gives privileges access to ports to yer java 
virtual machine.
So I suppose you should start tomcat's JVM with this application 
launcher and then load the dll from there...

I wrote my app in Swing, so I can't help you further (ie where to put 
your dll or so...)


Hope this helps.

c.


[EMAIL PROTECTED] wrote:

Hi all,sorry for bothering you ;-)
I'm just a student trying to develop some Servlet...
I'm trying to use COM ports from a servlet running in TOMCAT 3.2.4 ,but i get the error message :"Port COM1 does not exist." 
What can i do to make com ports visible from a servlet?
Could you help me please? 
My email address is [EMAIL PROTECTED]

Thanx in advance :-) looking forward to your answer.
Best regards,
Edo 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: could you help me please?

2003-01-21 Thread Mr. Cristian Romanescu
Yeah, like John said, you could also use Java Comm api, but 
unfortunately in my project, when I wanted to send something to parallel 
port, the print spooler started,
then complaining about corrupted print jobs, so it seems that port isn't 
directly accesed...in the final. Maybe for COM ports does work


Turner, John wrote:

It does if you want to access one from a servlet.  I've never done it, but I
think you use the Java Communications API:

http://java.sun.com/products/javacomm/

John


 

-Original Message-
From: Vinay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 9:43 AM
To: Tomcat Users List
Subject: Re: could you help me please?


Does  COM ports  have anything to do with Tomcat and servlets
- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 9:32 AM
Subject: RE: could you help me please?


   

He's talking about COM ports, as in serial ports (COM1, COM2, etc.).

John


 

-Original Message-
From: Peter Choe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 9:31 AM
To: Tomcat Users List
Subject: Re: could you help me please?


isn't COM microsoft specific?

At 06:59 AM 1/21/2003, you wrote:
   

Hi all,sorry for bothering you ;-)
I'm just a student trying to develop some Servlet...
I'm trying to use COM ports from a servlet running in TOMCAT
 

3.2.4 ,but i
   

get the error message :"Port COM1 does not exist."
What can i do to make com ports visible from a servlet?
Could you help me please?
My email address is [EMAIL PROTECTED]

Thanx in advance :-) looking forward to your answer.
Best regards,
Edo


--
To unsubscribe, e-mail:
 


   

For additional commands, e-mail:
 





--
To unsubscribe, e-mail:

For additional commands, e-mail:


   

--
To unsubscribe, e-mail:
 


   

For additional commands, e-mail:
 


   


 


--
To unsubscribe, e-mail:   
   


For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: what is catalina?..

2003-01-31 Thread Mr. Cristian Romanescu
NO! You are completely wrong!

...Catalina is actually a beautiful princess with big blue 
eyes...and...blonde...hair...sitting there in your box all alone, forced to 
listen all the cr*p played by the TCP radio, more commonly on 8080MHz, 
(some high skilled actually succeed to accord it on the 80MHz, but that's 
though!)
Sysadmins, the bad guys or "company internal police" actually 
bring this Apache so she would not try to escape after all that stress.
And as in those love stories, the Apache and Catalina fall in love 
together, and after a little time come to life
those little kids also known as 'servlets'...living all together until the 
end of times (if they are on the Linux Planet, of course) or until your 
next electrical problem.

Go ahead and open yer box...and you'll see that i'm not kidding you...

Cheers...hope I raise yer morale...yet! :)))


C.

=
Ask stupid questions and you'll get stupid answers:
If someone with multiple personalities threatens to kill himself, is it 
considered a hostage situation?
=

At 11:19 PM 1/30/2003 -0800, you wrote:

"rf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> --- Bill Barker <[EMAIL PROTECTED]> wrote:
> > Catalina is also the name of a small island off the
> > coast of southern
> > California.  I, personally, have no idea why this
> > was chosen as a package
> > name (I haven't been hanging out here that long).
> > Especially since the
> > principal author doesn't live in So. CA.
> >
>
> Any idea why "jakarta" is chosen for
> jakarta.apache.org? whats the relation between jakarta
> and apache?
>

This one I actually know :).  It is a popular fallacy that it is because
Jakarta is (as it happens) the capital of the island of Java in Indonesia.
The real reason is that it was simply the name of the conference room in Sun
where the project was launched.

> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com




-
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: jsp:setProperty

2003-01-31 Thread Mr. Cristian Romanescu


You should put your scope request, not session.
this is an example:
=

  

=

At 03:40 PM 1/30/2005 +0800, you wrote:

I am trying to use the directive jsp:setProperty to set the attributes
on a bean. However, when I try to set a password field, I get the error:
Can't find a method to write property 'password' of type
'java.lang.String' in a bean of type 'Mylogin.UserLoginBean'
I am getting the password from the screen:
text:


and then in the jsp, I am calling




in the class, I have password:
String password;
public void setPassowrd(String password){
password=password;
System.out.println("inside password");
}

I am doing the same with other properties and it seems that password is
the only one running into problem.


Thanks for all the help in advance.

Khalid



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




Re: Little system X Great architecture

2003-02-11 Thread Mr. Cristian Romanescu
We use here data persistence using JRF (Java Relational Framework): 
http://jrf.sourceforge.net
You could check this out as a simpler solution...


Good luck.



At 11:36 AM 2/10/2003 -0300, you wrote:
need to code a system in which there is no many business rules, but i need
data persistence in a database. Even if this system will have an enterprise
users scope, should i use EJB technology? What about only servlets/jsp



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




Re: parameter order

2003-02-21 Thread Mr. Cristian Romanescu
Actually, from my experience you should not rely on the order of the 
parameters...There is no rule on that.

At 12:16 AM 2/21/2003 -0800, you wrote:

StringBuffer sb = new StringBuffer();
Enumeration en = req.getParameterNames();
for (; en.hasMoreElements() ;) {
String param = (String) en.nextElement();
String value = req.getParameter (param);
sb.append(param).append(":
").append(value).append("\n");
}


The order of the parameters is not clear - it is
neither alphabetical nor as specified in the html
form.
Is it that IE is ordering the parameters in such way
when POSTing the data? Anybody knows about this? This
is just out of curiousity, not really needed anywhere.

Thanks
rf


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
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: Autopostback in JSP

2003-02-26 Thread Mr. Cristian Romanescu
Here are some hints:

At 09:00 PM 2/25/2003 -0800, you wrote:
Hi,
1)  I want the contents of my HTML page display to
refresh automatically based on a selection made by the
user. I am using HTML + JSP.
For Example:
  There are three radio buttons
  - Thesis
  - Non-Thesis
  - Software Engineering
  Drop Down Menu1
If the user selects 'thesis' there should be one drop
down menu appearing on the screen else there should be
two drop down menus appearing.
 How can I do that?


You have to do on the radio buttons, an JavaScript function which handler 
onClick (I think) event.
It would be something like this:

Here is a sample how an drop-down list works (I have it handy...)

JavaScript function:

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

Here is the Drop-list that implements this functionality.


  Please select a country
  Any country


As you can see I pass using HTTP GET method the param field which shows me 
what used has selected.

Now you could adapt this code to your needs.


2)  Also what function in JSP will allow my page to
display one image if the mouse is placed on it and
another image if the the mouse is not place on it?
2) That is called rollover and is done also from JavaScript. Search the web 
further for JS tutorials on that.
As a a startup, you should handle the onMouseOver and onMouseOut events in 
a  for example

here is some sample code:
 


hope this helps.
 c.
Thanks,
I shall appreciate any help.
Thanks,
Runu
__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
-
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: Compile JSP on Tomcat Startup

2003-02-26 Thread Mr. Cristian Romanescu
I think that you would use jspc (JSP compiler) that comes with Tomcat 
distribution. It's materialized in jsp.bat[sh] in
$TOMCAT_HOME/bin directory. I hope I'm correct, but I cannot give you more 
info

regards,
c.
At 04:07 PM 2/25/2003 -0500, you wrote:
How can I compile all of my JSPs when I start Tomcat?  The version I am
using is 3.3.1a.  Any help would be great.
Thanks.
Barry


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


Re: Error with tomcat 4.1.18

2003-03-27 Thread Mr. Cristian Romanescu
Yes, you have to put in your path the JDK 1.4, 'java' and 'javac' should
be made available to the environment. I had the same problem when
upgrading from JDK 1.3/tomcat 4.0.3 to JDK 1.4/tomcat 4.1.18...

good luck!

On Thu, 2003-03-27 at 10:07, Samuel Blanchet wrote:
> Hi,
>  
> Have you ever seen this error : 
>  
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: -1 in the jsp file: null
> 
> Generated servlet error:
> [javac] Compiling 1 source file
> [javac] Modern compiler not found - looking for classic compiler
>  
> Could you help me ?
> 
>  Sam
> 


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