Re: tomcat and IIS 5.0 exe files create problems

2002-11-03 Thread Bill Barker
Way back in the yet-to-be-released 3.3.2. ;-)

Having just checked, 3.3.1 (unchanged in 3.3.2-dev), Tomcat will assign the
content-type of "application/octet-stream" to an ".exe" file by default.  I
don't use the "isapi_redirector.dll" myself, but I'll need more details to
be able to determine if this is a Tomcat bug or not.

"Prashanth Pushpagiri" <[EMAIL PROTECTED]> wrote in message
news:20021103011916.90693.qmail@;web20807.mail.yahoo.com...
> Hello everyone:
>
> I am running tomcat 4.1.12 on windows 2000 advanced
> server (IIS 5.0) and have been facing problems with
> exe files. note that this problem has been persistent
> ever since I started using tomcat(way back in version
> 3.3.2).
>
> When I have a website without tomcat working
> along-side IIS, I can serve exe files without any
> problem. But once I plug the ISAPI filter for tomcat
> into IIS, any request for exe files just hangs(no exe
> file is served). Has anyone else faced such a problem
> and resolved it previously? Does anyone have any
> specific instructions/suggestions to resolve this? I
> am in a bind as I am expected to serve .exe files.
>
> Any suggestions will be very helpful
>
> thanks
> Prashanth
>
> __
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/





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




Re: J2EE, JSP, SERVLETS

2002-11-03 Thread Wally Masterson
Quite right. As I'm involved in both development,
deployment and
maintenance,
portability and security are key issues. Apache does
support ASP, I
think, but I
don't quite trust that if I can help it. What about
Perl? I still
like to use it
for small, quick jobs.

[EMAIL PROTECTED]

- Original Message -
From: "August Detlefsen" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
<[EMAIL PROTECTED]>
Sent: Wednesday, 27 February, 2002 4:06 AM
Subject: Re: J2EE, JSP, SERVLETS


There are a couple of reasons to pick JSP. I usually
tell bosses
that
we use java because it is easy to replicate across
multiple hardware
as
the demand for the app grows (They love thinking about
growing
demand).


Security is an issue too, especially with M$ products
(not sure
about
PHP). How many viruses have we seen in the past few
years effecting
IIS, Exchange and NT?

There are some good whitepapers comparing JSP to other
technologies
on
the JavaSoft site. here's one:

Comparing Methods For Server-Side Dynamic Content
White Paper
http://java.sun.com/products/jsp/jspservlet.html

Decisions, Decisions: J2EETM vs. .NET
http://www.theserverside.com/resources/article.jsp?l=J2EE-vs-DOTNET


--- hanasaki <[EMAIL PROTECTED]> wrote:
> What are your boss' looking for?  What motivates
them?
>
> Keith Ng wrote:
> > nono
> > dun get me wrong
> > im currently doing a J2EE project based on
> > servlets/jsp/javamail/jdbc/possibly EJB(low
possibility)
> > there are 2 things i need to do.
> >
> > 1)i need to noe if i ve been missing out on some
of the
> capabilities, which
> > i did not implement
> > 2) i need to write in my report the major
advantages my
web
> application has
> > over the others. I noe jsp/servlets are the best
around
but i cant
> quite
> > explain.
> >
> > However, some kind souls have emailed me and
explained to
me and
> help clear
> > some of my doubts.
> >
> > -Original Message-
> > From: Rick K [mailto:xiaoli_wang@;isoftel.com]
> > Sent: Tuesday, February 26, 2002 3:41 PM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: Re: J2EE, JSP, SERVLETS
> >
> >
> > --- Keith Ng <[EMAIL PROTECTED]> wrote:
> >
> >>Hi guys
> >>
> >>There has been a question thats bugging me for
qute
> >>some time. I noticed
> >>many bank sites, or big companies use JSP/SERVLETS
> >>for their websites. Is
> >>there a particular reason why jsp/servlets are
> >>preferred over
> >>asp/php/coldfusion? I even realise a site
> >>(dbs.com.sg)using applet textfield
> >>as their forms ... isit supposed to be more secure
> >>this way? Can someone
> >>clear my doubts? thanks
> >>
> >
> > Why does it bug you that big companies use
servlets
> > and JSP? Why do you have doubts about Java?
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Sports - Coverage of the 2002 Olympic Games
> > http://sports.yahoo.com
> >
> > --
> > To unsubscribe:
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> >
> >
> >
> >
> >
_
> >
> > Do You Yahoo!?
> >
> > Get your free @yahoo.com address at
http://mail.yahoo.com
> >
> >
> >
> >
> > --
> > To unsubscribe:
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> >
> >
>
>
> --
>
=
> = [EMAIL PROTECTED]
=
> = Spam : Unhealthy and High in Sodium and
Cholesterol
=
>
=
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every
occasion!
http://greetings.yahoo.com

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


_
Do You Yahoo!?
Get your free @yahoo.com address at
http://mail.yahoo.com


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


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

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




Re: Tomcat Oracle timeout? oracle.jdbc.dbaccess.DBError.throwSqlE

2002-11-03 Thread Wally Masterson
Looks to me like your oracle connections in the pool
have timed out
due
to inactivity you might check your oracle
configuration to confirm
this.

[EMAIL PROTECTED]


Hi,

I have a connection pool and use Oracle in a test
environment.
Normally all is OK however, if left alone for many
hours the
following
happens when the attempt
is made to connect.
Can anyone help please?

Entered article.display
POOL get connection numconnections = 2
1
Oracle Error in article.display
java.sql.SQLException: Io exception: Connection reset
by peer:
socket
write error
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at
oracle.jdbc.driver.OracleStatement.(OracleStatement.java:292)
at
oracle.jdbc.driver.OracleStatement.(OracleStatement.java:307)
at
oracle.jdbc.driver.OraclePreparedStatement.(OraclePreparedStatement.java:189)
at
oracle.jdbc.driver.OraclePreparedStatement.(OraclePreparedStatement.java:172)
at
oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java:339)
at control.Article.display(Article.java:245)
at
jsp.control.homecont_3._jspService(homecont_3.java:251)
at
org.apache.jasper.runtime.HttpJspBase.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(Unknown
Source)
at
org.apache.tomcat.core.Handler.invoke(Unknown Source)
at
org.apache.tomcat.core.Handler.service(Unknown Source)
at
org.apache.tomcat.facade.ServletHandler.service(Unknown
Source)
at
org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at
org.apache.tomcat.core.ContextManager.service(Unknown
Source)
at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown
Source)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown
Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)
setting instacr null in article test
POOL free connection numconnections = 1
In connMgr.release
POOL new instance getInstance numpools = 2
POOL getInstance clients = 406
POOL getInstance numconnections = 1
hello from 2 Cat2SideBean
hello from 2 Cat3SideBean
POOL getInstance clients = 407

John


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

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




Re: 4.1.12 rpms

2002-11-03 Thread David Kavanagh
The LE-1.4 version also excludes several jars with additional features. 
I think JMS was one of them. I use the LE-1.4 version with 1.3.1, but 
add the jaxp, crimson and xalan jars.

David

Niaz Habib wrote:

I believe the LE version is for jdk1.4. As jdk1.4 includes some of the
XML parsers necessary to run tomcat, the LE version does not include
them.



-Original Message-
From: Charles Baker [mailto:rascharles@;yahoo.com] 
Sent: Sunday, November 03, 2002 6:23 PM
To: tomcat
Subject: 4.1.12 rpms


What is the difference between the full and le
versions of the 4.1.12 rpms?

=
[EMAIL PROTECTED]
http://www.charleshbaker.com/~chb/
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
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: 




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




RE: 4.1.12 rpms

2002-11-03 Thread Niaz Habib
I believe the LE version is for jdk1.4. As jdk1.4 includes some of the
XML parsers necessary to run tomcat, the LE version does not include
them.



-Original Message-
From: Charles Baker [mailto:rascharles@;yahoo.com] 
Sent: Sunday, November 03, 2002 6:23 PM
To: tomcat
Subject: 4.1.12 rpms


What is the difference between the full and le
versions of the 4.1.12 rpms?

=
[EMAIL PROTECTED]
http://www.charleshbaker.com/~chb/
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
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: 




4.1.12 rpms

2002-11-03 Thread Charles Baker
What is the difference between the full and le
versions of the 4.1.12 rpms?

=
[EMAIL PROTECTED]
http://www.charleshbaker.com/~chb/
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
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: 




Tomcat 4.0.6 and manager application problem

2002-11-03 Thread jjnfg
Sorry my previous posting didn't have the accurate title.

When I tried to logon to Tomcat's manager application with
the user name(dba) & password(dba) defined in
/conf/tomact-users.xml
I get the following message. And my browser displayed :
"HTTP 500 - Internal server error"

What are the possible causes of the problem ?

2002-11-03 16:25:27 HttpProcessor[1284][4] process.invoke
java.lang.ArrayIndexOutOfBoundsException
at org.apache.catalina.util.Base64.decode(Base64.java:288)
at
org.apache.catalina.authenticator.BasicAuthenticator.parseUsername(BasicAuthenticator.java:201)
at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:159)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)

.etc


my /conf/tomact-users.xml :

  
  
  
  



Joseph


__
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute

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




Tomcat 4.0.6

2002-11-03 Thread jjnfg
When I tried to logon to Tomcat's manager application with
the user name(dba) & password(dba) defined in
/conf/tomact-users.xml
I get the following message. And my browser displayed :
"HTTP 500 - Internal server error"

What are the possible causes of the problem ?

2002-11-03 16:25:27 HttpProcessor[1284][4] process.invoke
java.lang.ArrayIndexOutOfBoundsException
at org.apache.catalina.util.Base64.decode(Base64.java:288)
at
org.apache.catalina.authenticator.BasicAuthenticator.parseUsername(BasicAuthenticator.java:201)
at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:159)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)

.etc


my /conf/tomact-users.xml :

  
  
  
  


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

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




Problem accessing data source (I've read docs ;) )

2002-11-03 Thread Michal Kochanowicz
Hi

In the first place I'd like to admit that I've read docs and it seems
I've done everything correctly.

I've defined data source as follows (inside ):


  
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  
  
driverClassName
org.postgresql.Driver
  
  
url
jdbc:postgresql://some.address:5432/baza
  
  
username
someusername
  
  
password
somepassword
  
  
maxActive
20
  
  
maxIdle
10
  
  
maxWait
-1
  


web.xml contains:

  postgreSQL Datasource
  jdbc/DistributedComputingDatabase
  javax.sql.DataSource
  Container


And I'm getting:
java.sql.SQLException: Cannot load JDBC driver class 'null'
exception when calling getConnection() on datasource object.

What is most surprising, if I cast data source object to BasicDataSource
and call setDriverClassName(), setUrl(), setUsername() and setPassword()
on it, getConnection() works, so I do have all required libraries.

It appears, that for some reason Tomcat doesn't set up this data source
instance. I'm bit desperate about this, so I decompiled BasicDataSource
and added generation of stack traces to constructor and
setDriverClassName() methods. Conclusion is that Tomcat creates and
initializes one instance of data source when it starts, but when I'm
taking data source from JNDI it creates another instance and does NOT
initialize it.

Do you have any suggestions or ideas what could I correct or try? TIA
for any help.

Regards

PS. If you would like to take a look at complete source code (it's very
small yet) it's available via Web CVS at
http://cvs.michal.waw.pl/index.cgi/projekt_zespolowy/distributed/
-- 
--= Michal Kochanowicz =--==--==BOFH==--==--= [EMAIL PROTECTED] =--
--= PGP key: www.ee(...)/~mkochano/PGP/ or finger me @tmp.iem.pw... =--
--==--==--==--==--==--=Vodka. Connecting people.=--==--==--==--==--==--
A chodzenie po górach SSIE!!!

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




[TC v4.1.12] Anything abnormal in the Context Path

2002-11-03 Thread Pae Choi
Have you tried the following?

ServletContext sctx = getServletContext();
String contextBugPath = sctx.getRealPath(reqRef.getContextPath());

What do you get? Anything abnormal?


Pae




Re: tomcat and IIS 5.0 exe files create problems

2002-11-03 Thread Darren Rose - text4texts.com
Hi,

I am trying to configure tomcat 4 with windows 2000 advanced server, but am
failing
miserably. Can anyone please help. I have configure tomcat with windows 2k,
but am
now trying to configure with w2k advanced server that will servce site to
the Internet.

thanks

Darren

- Original Message -
From: "Prashanth Pushpagiri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 03, 2002 1:19 AM
Subject: tomcat and IIS 5.0 exe files create problems


> Hello everyone:
>
> I am running tomcat 4.1.12 on windows 2000 advanced
> server (IIS 5.0) and have been facing problems with
> exe files. note that this problem has been persistent
> ever since I started using tomcat(way back in version
> 3.3.2).
>
> When I have a website without tomcat working
> along-side IIS, I can serve exe files without any
> problem. But once I plug the ISAPI filter for tomcat
> into IIS, any request for exe files just hangs(no exe
> file is served). Has anyone else faced such a problem
> and resolved it previously? Does anyone have any
> specific instructions/suggestions to resolve this? I
> am in a bind as I am expected to serve .exe files.
>
> Any suggestions will be very helpful
>
> thanks
> Prashanth
>
> __
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




cann't compile tomcat-webapp.jar

2002-11-03 Thread Kirill S. Tarashev
Hi everybody

I have one problem with integration Tomcat to Apache
I cant find tomcat-webapp.jar file
Probably there is some error but i don't know where to search it.
I installed J2SDK1.4.1
I installed Tomcat 4.1.12 form binares - it works witout porblems
I installed ant-1.5.1
I installed apr 0.9.1 - as I understand this module isn't nessesary for
compiling of tomcat-webapp.jar.
I've done all task that described in readme.txt for webapp
but didn't recieve the results
javac: some input files use or override a deprecated API - what does it
mean?

I've done the same with Tomcat 4.0.6,
I didn't received that last message but I also didn't find tomcat-webapp.jar

Where is my problem?




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




Unable to build mod_webapp on freebsd...

2002-11-03 Thread BoD
Hi,

I'm trying to build mod_webapp on my freebsd server.
I did what is sais on the README.txt :

- downloaded the last version of APR
- ./support/buildconf.sh
- ./configure --with-apxs

It gives me this error :

Apache 1.3 module compilation (APXS checks)
+ checking for apxs CC variable... cc
+ checking for compiler coherency... error
compiler discovered by apr: gcc
compiler used by apache apxs: cc
configure: error: the apache apxs and apr compilers must be the same

Now I don't really understand what it's talking about.

I know 'apxs -q CC' gives me 'cc' and that's why "+ checking for apxs CC
variable... cc"
But why do I have "compiler discovered by apr: gcc", and how to fix it?

Thank you very much for your help.

/|
BoD/õ|   < "Take on the world!"
  < O >
  (_O|   [EMAIL PROTECTED]


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




can't find image after upload

2002-11-03 Thread arachus
Hi,
i have a smal webapplication with dynamic images, the images are uploaded
via http.
they are stored in a image folder beneath the context root, where i can see
them. but if i make a reference from a html/jsp page to the image (img
src="path/picture.gif") the image will not be found.
any ideas?
thanks



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




Running Tomcat + IIS on different servers

2002-11-03 Thread Ashish Ravi
Hi,
 I'm trying to configure IIS (on server 1) to redirect requests to Tomcat
(on server 2) . I've seen the help for configuring Tomcat with IIS, but i
assume it works when both are on the same server. One way out is to map the
directory where the .properties files are and use that mapping in the
registry entry. What option do i have if the servers are not on the same
LAN?

- Ashish


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