Re: SSL 8443

2005-09-15 Thread Robert F Hall

Caldarale, Charles R wrote:

From: Lalit Batra [mailto:[EMAIL PROTECTED] 
Subject: SSL 8443


Is there any way I can have to do without enetering 8443 port number. 
   



Change the port attribute of the SSL connector in your server.xml file.

- Chuck
 


And use port number 443.

- Robert


Re: A web based e-mail client

2005-08-14 Thread Robert F Hall

Evgeny,

Can't help you on the experience side.  But asking the right question
will help you get the right answers.   You are looking for folks to share
their experiences/opinions of java mail *servers*, right?

- Robert

Evgeny Gesin wrote:


Robert,

I wanted to hear what others recommend based on their
experiences. I need opinions.

Evgeny Gesin


--- Robert F Hall [EMAIL PROTECTED] wrote:

 


Evgeny,

Google 'java mail server', I'm guessing yuou will
find what you need.

- Robert

Evgeny Gesin wrote:

   


Hi Litty Preeth.

CraftMail looks like a standalone application. I
 


need
   


a web based client, like Yahoo/Hotmail, which runs
 


on
   


the server. I will access that web client using a
regular web browser.

Thanks!

Evgeny Gesin



--- Litty Preeth [EMAIL PROTECTED] wrote:



 


Hi Evgeny Gesin

There is a java mail client given by freebeans.
The url is :

  

   


http://www2s.biglobe.ne.jp/~dat/java/applications/CraftMail/index_en.html
   




 


With regards,
Litty Preeth

--- Evgeny Gesin [EMAIL PROTECTED] wrote:

  

   


I run QMail server and need a web based client
written
in Java. I will access that client from anywhere
like
Yahoo mail.

There is a SquirrelMail/Courier-IMAP which use


 


PHP,
  

   


but I need a Java-based web client.

Any pointers will be helpful

Evgeny Gesin

 






__ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 



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


 





Re: A web based e-mail client

2005-08-14 Thread Robert F Hall

Evgeny,

Thanks for the clarification.  I've written several java apps that run
in Tomcat, with browser based front ends and never thought of them
as java client apps...

You may have already done this, but if not, I suggest you google 'java 
web mail'.


-Robert

Evgeny Gesin wrote:


I need a Java web apps client, not server (I have a
mail server), similar to Yahoo/Hotmail, running under
Tomcat which allows to read/send e-mails when I'm out
of office.

I found a few Java web based front-ends, but I will be
glad to hear what others recommend. So, its a
Tomcat/Java relative too :)

Evgeny Gesin


--- Robert F Hall [EMAIL PROTECTED] wrote:

 


Evgeny,

Can't help you on the experience side.  But asking
the right question
will help you get the right answers.   You are
looking for folks to share
their experiences/opinions of java mail *servers*,
right?

- Robert

Evgeny Gesin wrote:

   


Robert,

I wanted to hear what others recommend based on
 


their
   


experiences. I need opinions.

Evgeny Gesin


--- Robert F Hall [EMAIL PROTECTED] wrote:



 


Evgeny,

Google 'java mail server', I'm guessing yuou will
find what you need.

- Robert

Evgeny Gesin wrote:

  

   


Hi Litty Preeth.

CraftMail looks like a standalone application. I


 


need
  

   


a web based client, like Yahoo/Hotmail, which
 


runs
   



 


on
  

   


the server. I will access that web client using a
regular web browser.

Thanks!

Evgeny Gesin



--- Litty Preeth [EMAIL PROTECTED] wrote:





 


Hi Evgeny Gesin

There is a java mail client given by freebeans.
The url is :

 

  

   


http://www2s.biglobe.ne.jp/~dat/java/applications/CraftMail/index_en.html
 

  

   



 


With regards,
Litty Preeth

--- Evgeny Gesin [EMAIL PROTECTED] wrote:

 

  

   


I run QMail server and need a web based client
written
in Java. I will access that client from
 


anywhere
   


like
Yahoo mail.

There is a SquirrelMail/Courier-IMAP which use
   



 


PHP,
 

  

   


but I need a Java-based web client.

Any pointers will be helpful

Evgeny Gesin
 



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



Re: A web based e-mail client

2005-08-13 Thread Robert F Hall

Evgeny,

Google 'java mail server', I'm guessing yuou will find what you need.

- Robert

Evgeny Gesin wrote:


Hi Litty Preeth.

CraftMail looks like a standalone application. I need
a web based client, like Yahoo/Hotmail, which runs on
the server. I will access that web client using a
regular web browser.

Thanks!

Evgeny Gesin



--- Litty Preeth [EMAIL PROTECTED] wrote:

 


Hi Evgeny Gesin

There is a java mail client given by freebeans.
The url is :

   


http://www2s.biglobe.ne.jp/~dat/java/applications/CraftMail/index_en.html
 


With regards,
Litty Preeth

--- Evgeny Gesin [EMAIL PROTECTED] wrote:

   


I run QMail server and need a web based client
written
in Java. I will access that client from anywhere
like
Yahoo mail.

There is a SquirrelMail/Courier-IMAP which use
 


PHP,
   


but I need a Java-based web client.

Any pointers will be helpful

Evgeny Gesin



Re: Oracle function problem in using tomcat 5.5.9

2005-08-07 Thread Robert F Hall

Geraldine,

Is the same DB login being used in  all cases?  If not, then the problem 
may be due to the
DB user not having execute privileges on the procedure in question.  
Another possibility

is that the DB's are different and procedure actually does not exist.

- Robert

[EMAIL PROTECTED] wrote:



Hi,

I got an error message as below when I use an oracle function in a statement
in a java bean, but I use the same statement in a java servlet, it's ok.

The statement in the bean is:
public String[] getDetailAD(){
   
try{

Connection conn = null;
   
if (conn == null) {

conn = JDBCConnectionPool.getConnection(ORACLE_DATASOURCE);
}
if (conn == null) {
throw new Exception(Can't connect to Oracle);
}
Statement stmt = conn.createStatement();

String query = select ADV_MERCURY_DESC(club_mercury) from
ops$profai.faagent where no = 12345;

ResultSet rs = stmt.executeQuery(query);
while (rs.next()) {...

The function is:
(p_str IN STRING) RETURN VARCHAR2
--
	IS 
	

leftstr varchar2(1);
BEGIN
   leftstr := substr (p_str ,1,1);

   IF p_str IS NULL THEN
RETURN 'NONE';  
   ELSIF leftstr = ' ' THEN
RETURN 'NONE';  
   ELSIF leftstr = 'G' THEN
RETURN 'GOLD';
	   ELSIF leftstr = 'S' THEN 
	   	RETURN  'SILVER';
	   ELSIF leftstr = 'B' THEN 
	   	RETURN  'BLUE';
	   ELSIF leftstr = 'T' THEN 
	   	RETURN  'TLC';
	   ELSIF leftstr = 'R' THEN 
	   	RETURN  'RED';
	   ELSIF leftstr = 'N' THEN 
	   	RETURN  'NOW';
	   ELSIF leftstr = 'W' THEN 
	   	RETURN  'NOW GOLD';


   ELSE
RETURN  ('UNKNOWN:' || leftstr || '!');
   END IF;

END ADV_MERCURY_DESC;

The statement and the function are always ok if I run them directly in
Oracle environment or use a servlet which is running under jdk2 and Apache
server 1.3, but get error when run the bean in Tomcat5.5.9, the oracle
driver is classes12.jar.

Could anyone give me a clue?

Thanks in advance.

Geraldine


Error message is here:

java.sql.SQLException: ORA-00904: ADV_MERCURY_DESC: invalid identifier

   at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
   at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
   at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
   at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
   at
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:
643)
   at
oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.jav
a:1674)
   at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1870)
   at
oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:
538)
   at
org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingSt
atement.java:162)
   at oiintranet.MainADBean.getDetailAD(MainADBean.java:106)
   at
org.apache.jsp.DetailAD_jsp._jspService(org.apache.jsp.DetailAD_jsp:6
3)
   at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:322)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
91)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
   at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:856)
   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:744)
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
   at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
   at java.lang.Thread.run(Unknown Source)

***
The information contained in this mail message is confidential and may also be  
legally  

Re: Apache2/Tomcat55/mod_jk and Sticky Sessions

2005-07-16 Thread Robert F Hall

Dave,

Try a Google search for: Apache httpd sticky sessions.
One result that looks particularly useful: http://raibledesigns.com/tomcat/

-Robert

Dave Morrow wrote:


Hi all.  I am attempting to setup a loadbalanced set of Tomcat5.5 servers 
behind an Apache2 server using mod_jk.  The application developers have told me 
that the app will require sticky sessions.  I have it all configured and 
working with the exception of the sticky sessions.  I think my 
workers.properties is correct so there must be something I am missing.  For 
testing, I created a JSP in the ROOT application of each of the Tomcat servers 
which simply displays the server name and SessionID.  The loadbalancing is 
working, but instead of maintaining a session, it's flip-flopping between 
servers and thus changing session ID's.

My workers.properties contains (note the localhost is in the opposite place on 
the other server);

worker.list= qatomcat1, qatomcat2, loadbalancer #
worker.qatomcat1.port=8009
worker.qatomcat1.host=qahost1
worker.qatomcat1.type=ajp13
worker.qatomcat1.lbfactor=100
worker.qatomcat1.local=0
#
worker.qatomcat2.port=8009
worker.qatomcat2.host=localhost
worker.qatomcat2.type=ajp13
worker.qatomcat2.lbfactor=100
worker.qatomcat2.local=1


David A. Morrow
Technical Systems Lead
Autodata Solutions Company
[EMAIL PROTECTED]
http://www.autodata.net
Tel: (519) 951-6079
Fax: (519) 451-6615 


 Poor planning on your part does not necessarily constitute an emergency on my 
part! 

This message has originated from Autodata Solutions. The attached material is the 
Confidential and Proprietary Information of Autodata Solutions. This email and any 
files transmitted with it are confidential and intended solely for the use of the 
individual or entity to whom they are addressed. If you have received this email in 
error please delete this message and notify the Autodata system administrator at 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


 




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



Re: Custom Realm development: can't locate javax.management package

2005-04-18 Thread Robert F Hall
Should be in ${TOMCAT_HOME}/bin/jmx.jar
[EMAIL PROTECTED] wrote:
I'll look again, but I didn't see a jmx.jar earlier
-- Original message --
From: Guy Katz [EMAIL PROTECTED]
 

its a jmx class.
probably in jmx.jar
-Original Message-
From: alebu [mailto:[EMAIL PROTECTED]
Sent: Monday, April 18, 2005 9:46 AM
To: tomcat-user@jakarta.apache.org
Subject: Custom Realm development: can't locate javax.management package
Hi, I was trying to develop my own Realm extending
org.apache.catalina.realm.RealmBase
but in Eclipse I got this error:
  The type javax.management.MBeanRegistration cannot be resolved.
  It is indirectly referenced from required .class files MyRealmBase.java.
I can't find jar file where this package is specified, but I not using
Tomcat sources, I just pointing
compiler to required jar files. And because this package is in javax
tree, then it should be somewhere in classpath I can't find it :(
-
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: [OT] Throughput and scalability

2005-02-23 Thread Robert F. Hall
Ross,
I recommend that you think along the lines of expandability.
That is, a load balancer in front of tomcat(s) running on one or
more servers.  As demand increases you add more instances,
then another server.  There is also the nature of the communication
with the external system to consider.  It sounds like you should
profile the app at a range of loads, identify bottlenecks, and
design/specify accordingly.
-Robert
Larry Meadors wrote:
I do not think that anyone can answer that but you. 

It is so application specific that any answers we give would be SWAGs at best.
Larry
On Wed, 23 Feb 2005 14:25:32 -0800, Ross Poppel [EMAIL PROTECTED] wrote:
 

Hi Tomcat Users -
We are implementing Tomcat (with Axis) for HTML translation to a
proprietary format (as a pass-thru).  This is for submission to an
external system (its pretty simple data) and back again.
We were wondering if anyone has any ideas how you would size a box
(Solaris/HP-UX based) if you want to get a specific throughput (x number
of messages per second).  Is there any guidelines anyone can recommend?
---
Ross Poppel - [EMAIL PROTECTED]
Solutions Architect, PORTAL Software
Cell:  (609) 744-2050
EFax:  (617) 344-2585
SMS:   [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: Name jdbc is not bound in this Context error

2005-02-21 Thread Robert F Hall
U K,
It works as you said, but there are a couple of things I'll recommend:
First, you should move your Connection, ResultSet and Statement 
declarations before
the try {} block and add a finally {} block where you check for null 
values and close
the resources if not null.

   Connection conn = null;
Statement stmt = null;
ResultSet res = null;
 try {
   ..
  }
  catch {

   }
   finally {
if (stmt != null ) {
try {
stmnt.close();
}
 catch (SQLException se) {
 log.error(se.getMessage);
}
 }
 
   
Second, you should use a connection pool.  I don't have a Tomcat config 
readily
available.   But can follow up with one if you need it.

-Robert
U K Laxmi wrote:
I tried without GlobalNamingResources. No luck. When
googled, i found that if we include
GlobalNamingResource tag, then it will be available in
all web context. 

After spending enough time on that, now i coded all
database related stuff in JSP in the way we do in
stand alone application. I mean - 

Coding like this in jspo itself.
 code --
%@ page contentType=text/html import=java.sql.*%
html
headtitlesimmPlan - simple material planning
system/title
script language=JavaScript
src=/js/default.js/script
%
 String userid = request.getParameter(userid);
 String passwd = request.getParameter(passwd);
 System.out.println(Password:  + passwd);
 String pwd = , str = ;
 int level = -1, ind = -1;
try {
   Connection conn = null;
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
			
conn=DriverManager.getConnection(jdbc:odbc:driver={Microsoft
Access Driver
(*.mdb)};DBQ=C:/tomcat/webapps/db1/db1.mdb);
   Statement stmt =
conn.createStatement();
   
   String query = SELECT * FROM user
where name = ' + userid + ';
   
   ResultSet st =
stmt.executeQuery(query);
   if (st.next()) {
   pwd = st.getString(password);   
   
	level = st.getInt(level);
   System.err.println(Query
result=+userid+/+pwd+/+level);
   }
else {
	ind = -2;
	System.out.println(No user with name  + userid
+  available in the database);
}

   if (stmt != null) {
   stmt.close();
   }
   if (conn != null) {
   conn.close();
   }
 
   } catch (Exception e) {
   e.printStackTrace();
   }   
		if(pwd.equals(passwd)) {
	ind = level;
}
   // else ind = -1;

 System.out.println(Ind -   + ind);
%
script language=JavaScript type=text/JavaScript
var ind = %= ind %
function loadHtml() {
//alert(in loadHtml());
if(ind == -2) {
alert(Not a valid user);
location.href = login.jsp;
return;
}
if (ind == -1) {
alert(Incorrect password);
location.href = login.jsp;
return;
}
else {
//alert(Correct password);
location.href = Second_Page.html;
return;
}
}
/script
/head
body onload=javascript:loadHtml()
!-- User Name : %= userid %br
Password  : %= passwd % --
/body
/html
--- code ends here ---
It works. But is it the right way to do? Pls advice.
--- Antony Paul [EMAIL PROTECTED] wrote:
 

By default server.xml contains have a 
GlobalNamingResources. You
have to add your resources in there.

rgds
Antony Paul
On Mon, 21 Feb 2005 19:56:23 -0800 (PST), U K Laxmi
[EMAIL PROTECTED] wrote:
   

As just moved the GlobalNamingResources inside the
main server in my server.xml residing in
TOMCAT_HOME/conf directory. When i restart tomcat
5.5.7 it's throwing up following exception.
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
Feb 22, 2005 11:51:46 AM
org.apache.catalina.realm.UserDatabaseRealm start
SEVERE: Exception looking up UserDatabase under
 

key
   

UserDatabase
javax.naming.NameNotFoundException: Name
 

UserDatabase
   

is not bound in this Conte
xt
   at
 

org.apache.naming.NamingContext.lookup(NamingContext.java:769)
 

   at
 

org.apache.naming.NamingContext.lookup(NamingContext.java:152)
 

   at
 

org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.j
 

ava:222)
   at
 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
 

   at
 

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440
 

)
   at
 

org.apache.catalina.core.StandardService.start(StandardService.java:4
 

50)
   at
 

org.apache.catalina.core.StandardServer.start(StandardServer.java:683
 

)
   at
 

org.apache.catalina.startup.Catalina.start(Catalina.java:537)
 

   at
 

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Robert F. Hall
Dutch?
Punit Duggal wrote:
What language is this ??
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Subject: Re: Re: JK, Session Replication/Clustering, SSL and failover 
in Tomcat 5
Date: 26 Jan 2005 23:13:47 -

Geachte relatie,
Het door u gebruikte e-mailadres is niet meer actief. U kunt uw 
e-mailbericht sturen naar [EMAIL PROTECTED] of dit bericht 
beantwoorden.

Bedankt voor uw medewerking,
Met vriendelijke groet,
ATP Hypotheken
Het Spoor 40
3994 AK Houten
Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]
 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Express yourself instantly with MSN Messenger! Download today - it's 
FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

-
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: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Robert F. Hall
Try killing one of the Tomcat JVM's at the OS level.
-Robert
Richard Mixon (qwest) wrote:
Filip,
Thanks so much for some reason taking the Manager  statement
completely out of the context worked.
I can now see session replication occurring, which then identified some
objects that were not serializable. I have fixed these and can see the
session replicating correctly in the log messages.
I quickly realized that I could not just run catalina stop as this
caused the session to be deleted on both the tomcat instance that was
stopping and on the remaining Tomcat instance - hence the reason I was
always prompted to re-login in.
So how do I trigger the maintenance failover? If I use the Admin
console to delete the port 8009 connector (first Tomcat instance), this
does not prevent JK from continuing to route traffic to this instance.
I also tried using ant stop from the tomcat-deployer, but this results
in a HTTP Status 503 - This application is not currently available
message.
I feel like I'm very close, but not quite there.
Thank you - Richard
Filip Hanik - Dev wrote:
 

you said you enabled it in your context.xml file, if so remove it
 snip - this was getting really long...

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


Re: I don't know what's wrong.

2004-12-07 Thread Robert F. Hall
Hi Warron,
We are using JBoss 3.2.5 w/embedded Tomcat 5.0.26 and have Apache 1.3.27 
in front of JBoss/Tomcat

A brief overview:
[Web browser]---[Apache port 80]---[mod_jk port 
8009]---[JBoss/Tomcat listener port 8009][Database + other 
resources]

If you could forward your Apache config files and your JBoss server.xml 
(maybe best done off-list, Yoav?) I'll take a look at them.

-Robert
Warron French wrote:
So, how does JBoss fit into the whole situation?
Merry Christmas  Happy New Year!
Warron French
Sr. Network Engineer
Xtria, LLC
8045 Leesburg Pike #400
Vienna, VA 22182
Desk: 703-821-6110
Main: 703-821-6000
Fax:  703-827-0374
-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 07, 2004 4:34 PM
To: 'Tomcat Users List'
Subject: RE: I don't know what's wrong.
Mod_jk is the bridge between Apache and Tomcat. Consult jk 1.x documentation
on how to configure it.
Mysqld is the MySQL daemon on linux. Many websites use MySQL along with
Apache and PHP.
-Original Message-
From: Warron French [mailto:[EMAIL PROTECTED] 
Sent: December 7, 2004 4:22 PM
To: User Tomcat (E-mail)
Subject: I don't know what's wrong.

We have a JBoss application?  That uses .jsp files to interact with a
supposedly searchable database.
Can someone explain to me the concepts behind Tomcat, mod_jk, JBoss, and
Apache, and if maybe I am missing something like the database.
I am running mysqld, but as far as I know... the mysqld isn't supporting ANY
websites yet.
Here is my url I am trying to get to work.  I really don't know enough to
figure out what is missing and what I need to be done.
http://www.nrcitcw.org/nrcitcw/SearchCategory.jsp
I can send snippets of my Virtual Host config from my apache server if
anyone is willing to help me.
please.  This is driving me nuts.  It was implemented before I knew it
existed.

Merry Christmas  Happy New Year!
Warron French
Sr. Network Engineer
Xtria, LLC
8045 Leesburg Pike #400
Vienna, VA 22182
Desk: 703-821-6110
Main: 703-821-6000
Fax:  703-827-0374
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
!DSPAM:41b61f0721071269171754!
-
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: jboss with tomcat

2004-11-03 Thread Robert F. Hall
Howdy,
Or a tool like oXygen/ (stand-alone or Eclipse plug-in), 
http://www.oxygenxml.com
BTW, I think the OP meant JBoss 3.2.5.

-Robert
Shapira, Yoav wrote:
Hi,
Hmm, not trivial.  Start by validating your web.xml using a tool like
XMLSpy.
Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: B Wiley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 5:34 PM
To: [EMAIL PROTECTED]
Subject: jboss with tomcat
Hello, I've got tomcat embedded into jboss 2.2.5 .
I get some kind of mapping error when I go to
http://localhost:8080/web-console/ and the browser displays a 500
   

error.
 

What is causing this and where can I look to fix it?
[INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING
configuration
error for request URI
[ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
java.lang.NullPointerException
   



Re: Forum instead of mailist!!

2004-10-11 Thread Robert F. Hall
Ben Souther wrote:
-1
This comes up every so often and goes nowhere.
The auto replies are a minor annoyance but easy enough to delete.
 

Or you can set up (depending on your email client) a Junk filter to 
handle them.
BTW, is -1 a thread weighting ?

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


Re: Tomcat Question - HELP

2004-10-01 Thread Robert F. Hall
[EMAIL PROTECTED] wrote:
We actually replicated the issue and 
killing a tomcat PID, sometimes does not release the port it is listening 
to/or using. I killed the tomcat PID, clear port 8080 and make sure 
nothing else is using it or holding it and restarted tomcat with my rc2.d 
script that calls catalina.sh and it solved my issue.

Daniel,
Doesn't your Tomcat bin directory include a shutdown.sh script?  Why not 
use that instead of
killing the PID?  I've never had an issue with port contention when 
using shutdown.sh.

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


Re: headless java setting

2004-09-27 Thread Robert F. Hall
No need to add X libs, just  add   -Djava.awt.headless=true  to your 
JAVA_OPTS

Didier McGillis wrote:
I have a small problem.  My predicesor setup his code to work with 
X-Windows.  Well the code will not work without an x11 server 
running.  However I have all my machines setup as a typical server and 
do not have xwindows installed.  I saw where you could grab a few x11 
libs and then run somewhere in the catalina.sh file a flag that would 
flip on the headless setting in teh JVM.  I have tried that several 
times and not even a hint that it works.

Any thoughts.  Any experience.
_
Take charge with a pop-up guard built on patented Microsoft® 
SmartScreen Technology. 
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines 
 Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.

-
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: another DBCP problem with tomcat 4.1.30, tomcat-5.0.27 and Oracle ApplicationServer-9.0.4

2004-08-27 Thread Robert F. Hall
Howdy,
Apparently, the Connections returned from the DriverManager and the DBCP
are not equivalent ;-).   How is the DBCP getting Connections to Oracle?
/Robert
Edson Alves Pereira wrote:
Hello dudes, i´m trying to store a value to a CLOB in my databse,
everything is fine with a simple Connection created with DriverManager, but
when i use DBCP from one of these servlet-engines i got the same error:
ava.sql.SQLException: invalid arguments in call
04/08/27 11:56:44 	at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189) 
04/08/27 11:56:44 	at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231) 
04/08/27 11:56:44
atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:294) 
04/08/27 11:56:44 	at oracle.sql.CLOB.createTemporary(CLOB.java:527) 
04/08/27 11:56:44 	at appi.util.JUtils.getClob(JUtils.java:166)

Here´s my code:
 //create a new temporary CLOB
 tempClob = CLOB.createTemporary(
   servlet_.getDbCon( ).getCon( ),
   true,
   CLOB.DURATION_SESSION );
How can i fix it?
Regards,
Edson
 


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


Re: ENC: another DBCP problem with tomcat 4.1.30, tomcat-5.0.27 and O racleApplicationServer-9.0.4

2004-08-27 Thread Robert F. Hall
Hola,
Just to clarify, is it true that you can store a CLOB if the 
java.sql.Connection is
obtained directly from Oracle's DriverManager?

But when  you use a java.sql.Connection from DBCP, everything else being 
the same,
you can not store a CLOB?

If that's the situation, then there has to be some difference between 
the Connections.
I'm not familiar with Tomcat's DBCP, we use JBoss, so I don't know what 
goes into
configuring TC's DBCP.  Is should be possible to configure DBCP to user the
DriverManager in Oracle's ojdbc14.jar.

/Robert
Edson Alves Pereira wrote:
Hello again, servlet_.getDbCon( ).getCon( ) returns just a
java.sql.Connection, with every DBCP i setup properly cause the connection
works fine and CLOB is a oracle.sql.CLOB from oracle´s ojdbc14.jar. I tried
once to store CLOBs in Oracle with jdbc standard and it didn´t workout, i
just followed the Oracle´s recomendations, again this error only happens
with DBCP.
 

-Mensagem original-
De: 	Edson Alves Pereira  
Enviada em:	sexta-feira, 27 de agosto de 2004 14:44
Para:	Tomcat-User List (E-mail)
Assunto:	another DBCP problem with tomcat 4.1.30, tomcat-5.0.27 and
OracleApplicationServer-9.0.4

Hello dudes, i´m trying to store a value to a CLOB in my databse,
everything is fine with a simple Connection created with DriverManager,
but when i use DBCP from one of these servlet-engines i got the same
error:
ava.sql.SQLException: invalid arguments in call
04/08/27 11:56:44 	at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189) 
04/08/27 11:56:44 	at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231) 
04/08/27 11:56:44
atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:294) 
04/08/27 11:56:44 	at oracle.sql.CLOB.createTemporary(CLOB.java:527) 
04/08/27 11:56:44 	at appi.util.JUtils.getClob(JUtils.java:166)

Here´s my code:
 //create a new temporary CLOB
 tempClob = CLOB.createTemporary(
   servlet_.getDbCon( ).getCon( ),
   true,
   CLOB.DURATION_SESSION );
How can i fix it?
Regards,
Edson

 



Re: Errors Page Personalize

2004-08-25 Thread Robert F. Hall
Howdy,
Your question is pretty vague, but here's something that might be of use.
You can add error-page/ elements to your web.xml.  For example, to
display a custom page for a 400 error code:
 error-page
   error-code400/error-code
   location/error400.jsp/location
 /error-page
Robert
Alessandra Santos wrote:
How to show personalize pages jsp for errors generate tomcat errors?
Thanks
Alessandra Santos
Fortaleza-CE-Brazil

-
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: Access JBoss from Tomcat

2004-08-25 Thread Robert F. Hall
Howdy,
You could access your JBoss hosted EJBs as web services.  It's been 
awhile since I did it,
but as I recall it was pretty straight forward to present an EJB as a 
web service using JBoss/Axis.
You won't need to secure your web services since the host is on your 
internal network and
can be prottected from external access.

You'll need WSDL definitions and then can use 
org.apache.axis.wsdl.WSDL2Java to generate
Java client code.  JBoss provides some assistance for presenting an EJB 
as a web service,
see org.jboss.net.axis.server.EJBProvider.

Direct access to the EJBs would also be possible, with the client code 
residing in your
perimeter Tomcat server.

HTH,
Robert
Darryl L. Pierce wrote:
I have a Tomcat server running on the perimeter of my network. I am trying to 
add some EJBs to the architecture to handle some authentication tasks for 
users. I need this work to be done within the network, so don't want to put 
JBoss on the perimeter. I want to access my JBoss server from my Tomcat 
server.

How do I configure Tomcat to talk to JBoss? All links I find online talk about 
JBoss with Tomcat within it, and I've not found any information on 
configuring a standalone Tomcat to talk to JBoss. My Tomcat server is 4.1.30 
and my JBoss server is 3.2.5.

Any help is appreciated.
 


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


Re: Access JBoss from Tomcat

2004-08-25 Thread Robert F. Hall
What, you don't like web services ;-)
Robert
Filip Hanik (lists) wrote:
just access the EJBs the same way its been done since the spec started.
Lookup the EJB through JNDI, then invoke its method.
Filip
-Original Message-
From: Robert F. Hall [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004 5:50 PM
To: Tomcat Users List
Subject: Re: Access JBoss from Tomcat
Howdy,
You could access your JBoss hosted EJBs as web services.  It's been
awhile since I did it,
but as I recall it was pretty straight forward to present an EJB as a
web service using JBoss/Axis.
You won't need to secure your web services since the host is on your
internal network and
can be prottected from external access.
You'll need WSDL definitions and then can use
org.apache.axis.wsdl.WSDL2Java to generate
Java client code.  JBoss provides some assistance for presenting an EJB
as a web service,
see org.jboss.net.axis.server.EJBProvider.
Direct access to the EJBs would also be possible, with the client code
residing in your
perimeter Tomcat server.
HTH,
Robert
Darryl L. Pierce wrote:
 

I have a Tomcat server running on the perimeter of my network. I am trying
   

to
 

add some EJBs to the architecture to handle some authentication tasks for
users. I need this work to be done within the network, so don't want to put
JBoss on the perimeter. I want to access my JBoss server from my Tomcat
server.
How do I configure Tomcat to talk to JBoss? All links I find online talk
   

about
 

JBoss with Tomcat within it, and I've not found any information on
configuring a standalone Tomcat to talk to JBoss. My Tomcat server is
   

4.1.30
 

and my JBoss server is 3.2.5.
Any help is appreciated.
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.740 / Virus Database: 494 - Release Date: 8/16/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.740 / Virus Database: 494 - Release Date: 8/16/2004
-
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: ClassNotFoundException: OracleDriver

2004-08-12 Thread Robert F. Hall
Howdy,
You need ojdbc14.jar in your CLASSPATH.
-Robert
Java Techie wrote:
Hi,
in my struts-config:
im using
data-sources
data-source
type=org.apache.commons.dbcp.BasicDataSource
key=UserDB
set-property property=driverClassName
value=oracle.jdbc.driver.OracleDriver/
set-property property=url
value=jdbc:oracle:thin:@myPC:1521:newDB/
set-property property=username value=user1/
set-property property=password value=pass1/
/data-source
/data-sources
--
The following error occurs:
27:57[ERROR]
27:57org.apache.commons.dbcp.SQLNestedException:
Cannot load JDBC
driver class 'oracle.jdbc.driver.OracleDriver', cause:
java.lang.ClassNotFoundException:
oracle.jdbc.driver.OracleDriver
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1340)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1189)
 at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:140)
--
I have added the zip
file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the
classpath; what else do i need to give.
Thanks.

__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
-
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: installing tomcat 4.1.27 on linux

2004-08-12 Thread Robert F. Hall
Howdy,
Tomcat is written in Java and is OS independent, you don't need a linux 
specific install.
We have the same Tomcat install running on Solaris, Linux, and Windoze.

-Robert
Stephen Charles Huey wrote:
We're moving Tomcat over to a Linux box, and we're under pressure to get
it done as quickly as possible and put it into production right away
even though none of us knows Linux all that well beyond me using Solaris
back in my school days!  So, I'm looking for Tomcat 4.1.27 for Linux,
and I don't see that available here:
http://jakarta.apache.org/site/binindex.cgi
However, in searching around, I found this, and I'm wondering if this is
the right thing for me to be using:
http://rpmfind.net/linux/RPM/suse/9.0/i386/suse/i586/jakarta-tomcat-4.1.27-63.i586.html
I've heard about RPM only in the last day or so when looking around for
utilities for Linux.  I'll probably want the RPM version for Tomcat,
right?  This page talks about RPM:
http://www.rpm.org/
But I'm wondering if it comes with Red Hat 8 (I can't tell yet--my boss
is installing Red Hat across town and I'm just doing my homework so I'm
ready to roll when he's done with all the things he has to do on his
end).  

Thanks,
Stephen
-
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: Container managed security

2004-07-09 Thread Robert F. Hall
Have you tried adding http-method/ elements to  
web-resource-collection ?

   web-resource-collection
 http-methodHEAD/http-method
 http-methodGET/http-method
 http-methodPOST/http-method
 http-methodPUT/http-method
 http-methodDELETE/http-method
   /web-resource-collection
Steve Luzynski wrote:
On Jul 9, 2004, at 8:11 AM, QM wrote:
On Thu, Jul 08, 2004 at 11:19:39PM -0500, Steve Luzynski wrote:
: Using Tomcat 5.0.25 on Mac OS X (10.3.4 specifically). Trying to
: implement container managed security.
:
:  [snip: deployment descriptor]
:
: When I try to hit a url like
: http://localhost:9006/IPBoss/add/add_network.html, which as near as I
: can tell should trigger authentication, I just get the page I'm asking
: for - no login.
Humor me -- is there an Apache server in front of Tomcat that's
intercepting the .html?

Nope, Tomcat is running an http connector directly on port 9006.
(I hate to ask this) but did you restart Tomcat after making the web.xml
changes?

Repeatedly. :)
Otherwise, web.xml looks spec-compliant as far as I can tell.

I thought so. Any other ideas? I'm stumped.
Thanks much,
Steve
-
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: Tomcat works for localhost, but won't work for the local intranet..

2004-07-09 Thread Robert F. Hall
Ivan, do you have a firewall in place on the linux box? If so, is port 
80 open?

-Robert
Ivan Jouikov wrote:
I am running tomcat 5.0.27 on Linux RH 9.0, and I have a little problem.
 

I am using jsvc to launch Tomcat standalone as Tomcat5 user.  
Everything seems to work fine, when I connect to localhost or 
127.0.0.1 from that same computer.

 

However, if I try to connect to Tomcat from my local intranet, I get 
Page Cannot be Displayed after a long wait.

 

If I try to ping that computer, everything works just fine:  ping 
192.168.0.33..  If I try to run MySQL client for that computer, 
everything works fine  But if I type in my browser

 

http://192.168.0.33/
 

I get page not found.  Oh yeah, my Tomcat is set up to work 
standalone, and the only connector that it has is an HTTP connector on 
port 80.

 

Does anyone know what could be wrong?
 

 


Best Regards,
Ivan V. Jouikov
(206) 228-6670
http://www.ablogic.net/
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004


Re: Tomcat works for localhost, but won't work for the local intranet..

2004-07-09 Thread Robert F. Hall
Have you run lokkit to see how it displays this info?
# Firewall configuration written by lokkit
# Manual customization of this file is not recommended.
Ivan Jouikov wrote:
Here are the contents of my /etc/sysconfig/iptables:
# Firewall configuration written by lokkit
# Manual customization of this file is not recommended.
# Note: ifup-post will punch the current nameservers through the 
# firewall; such entries will *not* be listed here.
*filter 
:INPUT ACCEPT [0:0] 
:FORWARD ACCEPT [0:0] 
:OUTPUT ACCEPT [0:0] 
:RH-Lokkit-0-50-INPUT - [0:0]
-A INPUT -j RH-Lokkit-0-50-INPUT 
-A FORWARD -j RH-Lokkit-0-50-INPUT 
-A RH-Lokkit-0-50-INPUT -i lo -j ACCEPT 
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 0:1023 --syn -j REJECT 
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 2049 --syn -j REJECT 
-A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 0:1023 -j REJECT 
-A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 2049 -j REJECT 
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 6000:6009 --syn -j REJECT 
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 7100 --syn -j REJECT 
COMMIT

I am not that good with iptables, but it seems to me that the line 

-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 0:1023 --syn -j REJECT
Blocks all ports from 0 to 1023 for TCP/IP...  I don't recall putting that there, but 
is that what it really does?  And if it is, how can I make it so that port 80 is 
available?
 

-Original Message-
From: Dennis Dai [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 5:24 PM
To: Tomcat Users List
Subject: Re: Tomcat works for localhost, but won't work for the local
intranet..
RedHat's defualt firewall rules?
On 7/9/2004 5:18 PM, Ivan Jouikov wrote:
   

I am running tomcat 5.0.27 on Linux RH 9.0, and I have a little problem.

I am using jsvc to launch Tomcat standalone as Tomcat5 user.  Everything
seems to work fine, when I connect to localhost or 127.0.0.1 from that
same computer.

However, if I try to connect to Tomcat from my local intranet, I get
Page Cannot be Displayed after a long wait.

If I try to ping that computer, everything works just fine:  ping
192.168.0.33..  If I try to run MySQL client for that computer,
everything works fine  But if I type in my browser

http://192.168.0.33/

I get page not found.  Oh yeah, my Tomcat is set up to work standalone,
and the only connector that it has is an HTTP connector on port 80.

Does anyone know what could be wrong?



Best Regards,
Ivan V. Jouikov
(206) 228-6670
http://www.ablogic.net/

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
   

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004

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



Re: Limit time for Database connection

2004-07-08 Thread Robert F. Hall
Elisabeth,
Nobody has responded to your question (that I've seen), so I'll take a 
shot.

This sounds like a network issue, and network connection failures have 
to time out
before they fail.  Using a timed separate thread to obtain the 
connections for the pool
occurs to me; if the connection thread doesn't return in a certain 
amount of time the
parent thread could throw an Exception.

Has anybody tired something along these lines?  Is this suggestion way 
off base?

Regards,
Robert
Bachler, Elisabeth (Elisabeth) wrote:
Hello,
I defined a database connection that uses a pool connection. Everything is
working well.
Now I had a routing problem that prevented any database connection (with a
SQPNestedException fired). The exception fired after a long time is
there a way of setting the connection limit, so it does not take so long
before firing the exception?
Thanks
Elisabeth
-
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: Limit time for Database connection

2004-07-08 Thread Robert F. Hall
Could be, anyone know for sure?
Eric Noel wrote:
I thought it would be just as simple as setting the parameter in the 
DBCP???

parameter
  namemaxWait/name
  value1/value
/parameter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 7/9/2004 8:11 AM, Robert F. Hall wrote:
Elisabeth,
Nobody has responded to your question (that I've seen), so I'll take 
a shot.

This sounds like a network issue, and network connection failures 
have to time out
before they fail.  Using a timed separate thread to obtain the 
connections for the pool
occurs to me; if the connection thread doesn't return in a certain 
amount of time the
parent thread could throw an Exception.

Has anybody tired something along these lines?  Is this suggestion 
way off base?

Regards,
Robert
Bachler, Elisabeth (Elisabeth) wrote:
Hello,
I defined a database connection that uses a pool connection. 
Everything is
working well.
Now I had a routing problem that prevented any database connection 
(with a
SQPNestedException fired). The exception fired after a long time is
there a way of setting the connection limit, so it does not take so 
long
before firing the exception?

Thanks
Elisabeth
-
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: how to check if a String is empty?

2004-06-24 Thread Robert F. Hall
Howdy,
Instead of comparing to a zero length string, test.trim().equala(),
try test.trim().length() == 0
/Robert
Carl Olivier wrote:
There is a trim() funtion in java.lang.String
?
-Original Message-
From: Marten Lehmann [mailto:[EMAIL PROTECTED] 
Sent: 24 June 2004 06:20 PM
To: 'Tomcat Users List'
Subject: how to check if a String is empty?

Hello,
maybe this is not the perfect group for my question, but as my problem 
appears at the development of JSPs and tomcat is concerned with that, I 
hope you can answer it.

I often see the condition
String test = req.getParameter(test);
if (test == null) {
/* string is empty */
} else {
/* string contains something */
}
But if test contains just blanks and other whitespaces, it's not null, 
but doesn't contain usable data anyhow. How can I check if a string 
contains whitespaces only? I though of something like

if (test == null || test.trim().equals()) {
}
but there's no trim()-function, right? How do you solve this problem? 
With whitespaces I mean blanks, tabs and newlines.

Regards
Marten
-
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: how to check if a String is empty?

2004-06-24 Thread Robert F. Hall
Howdy,
if (test == null || test.trim().length() == 0 ) { }  is simpler.
/Robert
Frank Zammetti wrote:
I've always done
if (test == null || test.trim().equalsIgnoreCase()) { }
(I'm anal about always using equalsIgnoreCase unless I know for sure 
that case sensitivity is required).  No need to do anything more 
complex than that in my experience. Always do the simplest thing that 
will work.

Frank

From: Robert Bateman [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: how to check if a String is empty?
Date: Fri, 18 Jun 2004 12:58:30 -0400
Wouldn't   test.trim().length() be a better test?  length() after trm 
would
tell you if non white-space was left.

Bob
On Thursday 24 June 2004 12:30 pm, Peter Guyatt wrote:
 Hi There,

 You could do the check test.length()  0

 Pete

 -Original Message-
 From: Carl Olivier [mailto:[EMAIL PROTECTED]
 Sent: 24 June 2004 17:18
 To: 'Tomcat Users List'
 Subject: RE: how to check if a String is empty?


 There is a trim() funtion in java.lang.String

 ?

 -Original Message-
 From: Marten Lehmann [mailto:[EMAIL PROTECTED]
 Sent: 24 June 2004 06:20 PM
 To: 'Tomcat Users List'
 Subject: how to check if a String is empty?


 Hello,

 maybe this is not the perfect group for my question, but as my problem
 appears at the development of JSPs and tomcat is concerned with 
that, I
 hope you can answer it.

 I often see the condition

 String test = req.getParameter(test);

 if (test == null) {
 /* string is empty */
 } else {
 /* string contains something */
 }

 But if test contains just blanks and other whitespaces, it's not null,
 but doesn't contain usable data anyhow. How can I check if a string
 contains whitespaces only? I though of something like

 if (test == null || test.trim().equals()) {
 }

 but there's no trim()-function, right? How do you solve this problem?
 With whitespaces I mean blanks, tabs and newlines.

 Regards
 Marten


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Make the most of your family vacation with tips from the MSN Family 
Travel Guide! http://dollar.msn.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: Design question ..

2004-06-21 Thread Robert F. Hall
Mufaddal,
You might want to add a wait list.
A wait list would allow someone to enroll in a course should a seat 
become available.
The time allowed for a wait list response should be greater than that 
allowed for the
shopping cart timeout.

-Robert
Mufaddal Khumri wrote:
Yes, I could not said it better. I am not using clusters, but I 
certainly do want to stay away from the singleton and synchronization 
approach. It does have to be done at the database or with an extra 
table called Enrollment_Temp or something. Basically, when a user 
adds the course to his cart, an entry would be made in the 
Enrollment_Temp table and the current timestamp would be written to 
one column in this table. The current number of enrollments would thus 
be the sum of such entries in the Enrollment_temp and Enrollment 
table. If the user completes his transaction this entry from the 
enrollment_temp table can be moved to the enrollment table. This 
raises the question that there would be certain users who would not 
complete their transaction. Such users would cause entries in the 
Enrollment_temp table. We can have a timeout on the life of such 
entries in the enrollment_temp table. Have a thread clean the 
Enrollment_temp table if a condition like now  timestamp stored + 
30 minutes.

If a user has a course in his or her shopping cart and does not 
complete his transaction, and if this was the last seat. For the next 
30 minutes from the time he adds that course to his shopping cart, it 
wont be available to anybody.

Q 1. Is this a good approach and is this judicious enough for users to 
use?
Q 2. Can any improvements made to this approach?

On Jun 21, 2004, at 4:07 PM, Frank Zammetti wrote:
If your thinking in terms of singletons and synchronized blocks, it 
seems like you are thinking along the lines of doing this all 
in-memory. You CAN do that, but it's generally not a good idea.

First, I don't know if your dealing with a clustered environment, but 
if you are you'll find that you have synchronization issues to deal 
with.

Second, the obvious: if power goes out, everything is lost. If your 
dealing with a database, there's at least the possibility of 
recovering things.

Third, any time you introduce a synchronized block in a J2EE-based 
application you have to ask yourself if your design isn't flawed 
because you are supposed to let the container handle all threading 
issues and your code should always be thread-safe. I myself have 
broken this rule on occassion, and I believe it to be valid to do 
sometimes, but you need to be sure it's truly the right anwer.

Assuming you decide it is, realize that any synchronized block of 
code means your introducing a bottleneck to the application. You may 
decide it's insignificant, but you are essentially serializing all 
requests that go through that critical section, so you need to really 
make sure it's the right thing to do. In a recent app, I had a 
critical section during logon. This is very different than something 
that's a transaction within the app that might happen a number of 
times for a given user since the logon shouldn't be happening very 
often and you probably won't get too many users doing it 
concurrently, so it's not a big issue as compared to something that 
might be happening a lot for many different users.

This really strikes me as something that should be done in a 
database, whether your letting the database handle the concurrance 
issues or you do so in your code yourself, but either way, that's 
really the way I'd be looking.

Frank
From: Mufaddal Khumri [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Design question ..
Date: Mon, 21 Jun 2004 14:34:51 -0700
Hi,
Yes , first come first is something that I prefer too. But I will 
need a singleton java object with a synchronized method to do the 
transaction. The transaction would involve 1. Check data 2. Register 
3. commit data to database. After the method completes i can send 
them a confirmation.

The downside to this approach is that if lots of users are 
registering for courses online , they might experience a delay.

On Jun 21, 2004, at 12:47 PM, Peter Lin wrote:
There's a couple of different ways to handle this.
1. do not do it in real time. this is the easiest solution, but it
means a human has to be the one who figures who gets what class.

2. use JMS to update each user's session and make it so that once the
class has no more entries, no one else can add it to their cart. Say
user 1 submits before user 2. if user 1 registers before 2, a message
is sent to the java bean in memory to update the cart
3. process the orders on a first come first serve basis, but do not
gaurantee the person is signed up for it. In the response email state,
you will get a confirmation of successful regisration. This is
usually the easiest way to assuming you send confirmation in
reasonable amount of time. This implies the transaction are 

Re: Denial Service Attack Prevention apache-tomcat modjk2

2004-06-10 Thread Robert F. Hall
Howdy,
And you can disable the submit button up fron if the user has JavaScript 
disabled,
displaying a message to indicate that your site requires JavaScript.  
Then there is
also the SynchronizerToken which your app could use to recognize and ignore
duplicate requests.

Robert
UC Berkeley
Shapira, Yoav wrote:
Hi,
You can use JavaScript to disable form elements, thereby graying them
out and preventing the user from clicking again.
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Steve [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 10:52 AM
To: Tomcat Users List
Subject: Denial Service Attack Prevention apache-tomcat modjk2
Looking for a solution to prevent a user from click multiply times on a
function in which the application is still performing from the first
   

click.
 

The user thinkgs the app is not responding where in fact it is, then
causing the app to take a dump from multiply request.
Using cisco css LB into -- Apache, mod_jk2 into tomcat 4.1.29
any tips or pointers greatly appr
-s

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



Re: Use of SNMP to monitor Tomcat

2004-05-24 Thread Robert F. Hall
Try Googling Java SNMP open source.
Which returned, among other hits:
http://netsnmpj.sourceforge.net/
http://edge.mcs.drexel.edu/GICL/people/sevy/snmp/snmp_package.html
Robert
Hut Carspecken wrote:
Good Morning Everyone,
I need to incorporate Tomcat as the presentation layer of a larger system and in doing 
so, I want
to monitor it using SNMP.  I understand that Tomcat can incorporate JMX to monitor 
some of its
functions; however, my project calls for the use of SNMP.
Has anyone monitored Tomcat with SNMP or have any knowlege how to do so?
Thanks!
Hut
-
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: Conversion of String value to Double...

2004-05-20 Thread Robert F. Hall
Not the right forum for this question, but here you go:
String s = 0.1234;
double d = Double.valueOf(s).doubleValue();
Robert
soh_mah wrote:
Hi all
I have a basic problems in JSP.
How can I convert a String value into double, Like
String a=0.2345;
double b=0;
I need to assign the value of variable a into varuble
b, How can I do that.
Thanks in advance for ur help!!

=
Regards
Sohail Mahmood
(416) 636-2553
	
		
__
Do you Yahoo!?
Yahoo! Domains  Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer 

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