Where is catalina-ant.jar file?

2002-05-17 Thread Alex Colic

Hi,

I am going through the build instructions online and they refer to
catalina-ant.jar. I checked my install of tomcat 4.03 and I do not have that
file.

Any idea where I can get it?

Thanks

Alex



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




[Ajp13] bad read: -103 ?What's this

2002-04-12 Thread Alex Colic

Hi,

I was having a look at my catalina.out log file and I notice that I have a
lot of the following lines:

[Ajp13] bad read: -103

Any idea what they mean?

Thanks

Alex


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: is their a way to run tomcat as a service

2002-04-04 Thread Alex Colic

Hi,

the latest version 4.03 has an option to run Tomcat as a service. That's how
I do it. Works fine.

Alex

-Original Message-
From: Lalit Nagpal [mailto:[EMAIL PROTECTED]]
Sent: April 4, 2002 6:55 AM
To: [EMAIL PROTECTED]
Subject: is their a way to run tomcat as a service





is their a way to run tomcat as a service

plz help if you know

Thanks

Lalit



-
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Getting error with IIS and Tomcat

2002-04-02 Thread Alex Colic

I have somewhat successfully installed tomcat and IIS 5. Periodically I when
viewing a page I get the following error:

Apache/Tomcat 4.0.3 HTTP Status 404
/pwC.jsp

Type status report
message /pwC.jsp
description The requested resource pwC.jsp is not available.

I do prefix my web pages with 'pw' and I do have a lot of pages that start
with 'pwC' but I do not have a page called 'pwC.jsp'. I also noticed that
this problem seems to only occur on reboot and I can clear it by hitting F5
a couple of times with IE.

Any ideas? Any help is appreciated.

Alex


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AJP13 bad read -113?

2001-10-31 Thread Alex Colic


Hi I am getting the following error in my dos window. I have used Andrew
Bruno's instructions for setting up Tomcat 4.0.1 to work with IIS 4 on NT
svr 4.

Any idea what it means?

[AJP13] bad read -103


Thanks

Alex


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




RE: Can't get precompiled JSP to be welcome page?

2001-10-26 Thread Alex Colic

Ah,

Thanks for the info. I will try that.

Alex

8
Date: Thu, 25 Oct 2001 06:59:13 -0400
To: [EMAIL PROTECTED]
From: Randy Layman [EMAIL PROTECTED]
Subject: RE: Can't get precompiled JSP to be welcome page?
Message-ID: A1C69E9A4D29D311AFE000A024CA0B0B1F6870@SNAX

The problem seems to be that Tomcat is scanning the file system for
the welcome pages, not including the servlet mappings.  What I do is create
a zero length file of the file name.  Tomcat will see this and redirect the
/ request to /whatever.jsp (the welcome file), which is then intercepted.
This fix only adds a few bytes (one file entry in the contents) to the
application and doesn't reveal anything about the internals that people
couldn't already easily figure out.

Randy


Can precompiled jsp's be used with any web server?

2001-10-26 Thread Alex Colic

Hi,

If I create a war file which holds precompiled jsp's will they work with any
web server? I am wondering about how to develop a generic war file that is
not tied to the web server.



Regards

Alex




RE: Precompiled jsp's

2001-10-25 Thread Alex Colic

Hi,

I am figuring this out myself. I used the -webxml flag to create a new
web.xml file. It takes the jsp files and creates servlet and servlet mapping
entries. I then copied these entries over to my original web.xml file. I
then started my app. It worked fine.

Although in the servlet mappings, the JSPC creates:

 servlet-mapping
  url-pattern\pwUnexpectedErrorPage.jsp/url-pattern
  servlet-namepwUnexpectedErrorPage/servlet-name
  /servlet-mapping

When I think they should be:

servlet-mapping
  servlet-namepwUnexpectedErrorPage/servlet-name
  url-pattern/pwUnexpectedErrorPage.jsp/url-pattern
  /servlet-mapping

I am saying this because when I start Tomcat 3.2.3 with the original
mappings I get xml errors. When I modify the mappings to the below, the app
runs fine.

The only problem I have is that I can't seem to get a precompiled JSP to
work as a welcome file.

Regards

Alex




Can't get precompiled JSP to be welcome page?

2001-10-24 Thread Alex Colic

Hi,

I have a JSP file, pwLogin.jsp that I precompiled. I then added the
following to my web.xml file:

servlet
servlet-namepwLogin/servlet-name
servlet-classpwLogin/servlet-class
/servlet

...

servlet-mapping
servlet-namepwLogin/servlet-name
url-pattern/pwLogin.jsp/url-pattern
/servlet-mapping

...

!-- The Welcome File List --
welcome-file-list
welcome-file/pwLogin.jsp/welcome-file
  welcome-filepwLogin.jsp/welcome-file
/welcome-file-list

When I access my web app without specifiying a JSP I get a page of web apps
root directory. If I specify webapp/pwLogin.jsp I get the page.

Any help, ideas is appreciated.


Alex




How to use jspc

2001-10-01 Thread Alex Colic

Hi,

thanks for all the help regarding using the jre with tomcat.

In my development environment I have been placing all my jsp files into the
webapps/myproject/ directory. Now I can see that I need to use the jspc to
compile the jsp's so that I can distribute them with Tomcat and the JRE. Can
someone point out how I should be using the jspc to compile the jsp's and
then where I should be placing them.

Thanks for the info.

Alex




Help, anyone have a set-up up for Tomcat

2001-10-01 Thread Alex Colic

Hi,

I distribute Tomcat with my apps. I am trying to create a set-up for Tomcat.
I need something better than the zip file. Anyone have a set-up that
installs the jdk/jre and Tomcat, adds the environment variables etc.

Thanks for any help.

Alex Colic




Why won't tomcat run with jre

2001-09-25 Thread Alex Colic

Hi,

I tried running tomcat with the jre and it failed. It will work aqainst a
full install of the jdk. If this is the case then why?

Does this mean that every machine I install tomcat on needs the full jdk? If
I write a web app and I want to demo it for a customer my setup must include
the jdk and not the jre but according to the license I am not allowed to
include the jdk with my apps.

As anyone figure out how to create a setup for Tomcat.

Alex




RE: Why won't tomcat run with jre

2001-09-25 Thread Alex Colic

Hi,

what I mean is that servlets will work but JSP's will not. As for the JSPC I
did not think about that but..lets say you want to make changes to the jsp
page. Do you have to make the change, recompile the page and then replace
it? If so does that not make it more difficult to manage the pages?

Alex


What do you mean by failing?  Tomcat only needs the JDK if you are
using JSPs.  What we do is use JSPs in development and then use JSPC to
convert the JSPs to servlets for testing and production.

Randy




Re: Getting a Verisign certificate

2001-09-19 Thread Alex Colic

Hi,

we need an official certificate. Any idea where I can get one for Tomcat?


Alex


---

Wednesday, September 19, 2001, 3:42:33 PM, Alex Colic
[EMAIL PROTECTED] wrote:
 Hi, I am trying to get a verisign certificate for tomcat.
 The wizard is asking for a (CSR) Certificate Signing Request. Do you know
 where I can get one of those for tomcat?

I'm guessing those generate by openssl are just as good, unless you
really need an oficial cert. See http://www.openssl.org/ .

--Ciprian



Re: Getting a Verisign certificate

2001-09-19 Thread Alex Colic

I am trying to get a certificate from Verisign. I am trying to get a demo
certificate and it is asking me for a (CSR) Certificate Signing Request.

Alex




web.xml and reloading

2001-09-13 Thread Alex Colic


Hi where are these tags set?

In the web.xml or servlet.xml files:

  Context ... reloadable=true ...
Loader checkInterval=5/
  /Context

Thanks

Alex




How can I have a class run on start-up?

2001-09-07 Thread Alex Colic

Hi,

hopefully someone can help me with this. I need some type of a class to
start when the web server starts. This class is going to bind itself to a
port and listen to commands from a VB app. Other classes in other web apps
will register themselves with this class to receive these commands.

My questions are:

1: how can you have a class start when the web server starts? This needs to
work with all web servers.
2: how can you have a class in a web app register itself with the class
listening on the port?

Any suggestions are appreciated.

Regards

Alex Colic




Re: How can I have a class run on start-up?

2001-09-07 Thread Alex Colic



Hmm. I don't know about that. For the user that would just be another app he
has to start. I was trying to automate things. I was wondering about
creating a servlet and forcing it to run when Tomcat starts.

What do you thing?

Alex


-
I don't know the answer to your question, but, I'm wondering if the
application actually has to run in Tomcat. It sounds like you might want to
just create a standalone application that listens on a port.

Jon




Need icon

2001-08-03 Thread Alex Colic

Hi, I am creating an install script for tomcat and I need an icon for the
windows shortcut. Anyone out there have one for tomcat that they could send
to me?

Thanks

Alex




JRE

2001-08-03 Thread Alex Colic

Hi,

I am creating a set-up file for Tomcat. Can it run with the JRE 1.3 or does
it need the full JDK?

Thanks

Alex

 Alex Colic.vcf


ref: JRE

2001-08-02 Thread Alex Colic

Sorry about the v card. It gets attached automatically to my e-mails.

Let me elaborate about my requirements. I have created a set-up that uses
the jre 1.3 but when I start tomcat I get errors about class files not being
instantiated. If I install tomcat using the jdk then I do not get those
errors. This lead me to believe that you need the full jdk to install and
run Tomcat.

Is this correct?

Regards

Alex




Is this a bug in tomcat or me?

2001-04-19 Thread Alex Colic

Hi,

I am having major problems with the servletContext.

In my main class I do the following:

  ServletContext context=getServletContext();
  context.setAttribute("Key", Boolean.TRUE);

Then in one of my jsp tags if want to check the value of "Key" I do the
following:

Boolean active =
(Boolean)pageContext.getServletContext().getAttribute("Key");

If I want to change the value of "Key" I do the following:

  Boolean active=(Boolean)context.getAttribute("Key");
  active=Boolean.TRUE or FALSE;
  context.setAttribute("Key",active);

I have also tried:

context.setAttribute("Key",Boolean.FALSE);

My problem is no matter what value I set, when I pull active out the value
of "Key" out of the context it is always TRUE.

Any ideas what I am doing wrong?

Any help is appreciated

Regards

Alex




Help with refreshing servletContext please.

2001-04-18 Thread Alex Colic

Hi,

I am implementing a method of caching lists that I want available to all my
web users. I place lists in the servletcontext via:

context.setAttribute("storeroomList",storerooms );

When the lists change I recall my cachelist method which gets the new data
and then put the list back into the session using the above line of code. I
thought that would replace the present list with the new one but
that is not occurring.

Is there another way I am supposed to be replacing attributes?

I thought about using removeAttribute followed by setAttribute but I am
worrying that someone might be accessing a page might need a list just as I
removing the list.

To test the problem I opened up a web page populated with my list and then
went to the database and changed some values in the list. My program then
caught these
changes, and repopulated the lists and then placed them in the context
again. I then opened up another window and the page was populated with the
old data.

Any help in this matter is appreciated.

Alex






Re: Still Can't set-up Tomcat for ssl. Please help.

2001-04-04 Thread Alex Colic

Hi,

Thanks for the reply. I changed the port to 443 but there was no change.

Am I correct in assuming that once I have https working I should be able to
access the same page via:

http:\\localhost\index.html
and https:\\localhost\index.html or https:\\localhost:443\index.html

Because I can see the first page but the second page gives me a 404 error
this page can not be found. As for the firewall, I am testing this
implementation on an intranet. At this point I should not have to worry
about firewalls etc., right?

Thanks for any help

Date: Tue, 3 Apr 2001 16:18:52 +0100 (BST)
To: Tomcat-User [EMAIL PROTECTED]
From: Kevin Sangeelee [EMAIL PROTECTED]
Subject: Re: Can't set-up Tomcat for ssl. Please help.
Message-ID: [EMAIL PROTECTED]

If you're running Tomcat standalone, try changing the port value to 443
rather than 8443 (and make sure any firewalls are configured to allow this
protocol) (or of course append :8443 to your https request).

Kevin




Re: How to get around a tricky situation.

2001-04-04 Thread Alex Colic

Just so I understand, to do the below I would have to modify my server.xml
file...correct? This cannot be done in my web.xml file?

Thanks

Alex

Date: Wed, 04 Apr 2001 09:47:56 +0200
To: [EMAIL PROTECTED]
From: =?iso-8859-1?Q?St=E9phane?= BAUDET [EMAIL PROTECTED]
Subject: Re: How to get around a tricky situation.
Message-ID: [EMAIL PROTECTED]

Hello

You could also create a new "empty" context called /images with docbase
properly set to the location of your images. This context will serve
your images.





How to get around a tricky situation.

2001-04-03 Thread Alex Colic

Hi,

I need some advice on how I might fix a problem with one of our web apps. We
farmed out an app that works ok except that the web pages which are created
by servlets are looking for images in the tomcat root images directory. This
presents a problem in that if I create a war of our app I also have to
distribute and copy the images over to the root images directory.

Can I set up my web.xml file so that when a web page looks for an image in
the /images directory it actually pulls them out of my myWebApp/images
directory.

What I am trying to achieve is one war file that I can use to distribute our
app without having the customer copy images over to the root/images
directory.

Thanks for any help.

Regards

Alex Colic-0132




how to access a properties file as a resource.

2001-04-02 Thread Alex Colic

Hi,

I have a properties file in the web-inf directory of my web app. How can I
access that file. It holds my localization settings I have tried.

String pathSeperator =File.separator.

InputStream is=context.getResourceAsStream("Web-inf" + pathSeperator +
"pwWorkRequestProLocalization");

PropertyResourceBundle  res= new PropertyResourceBundle(is);

When the input stream tryes to get the resource I get the following Tomcat
error:

Ctx(  ): Unsafe path C:\JBuilder4\Projects\pwWorkRequest
/Web-inf\pwWorkRequestProLocalization"

And when the PropertyResourceBundle tries to read the input stream I get a
nullpointerexception.

I have tried various strings to pass to context.getResourceAsStream() but I
have not been successful. Any help is appreciated.





FW: RE: how to access a properties file as a resource.

2001-04-02 Thread Alex Colic



But that would mean that the property file is somewhere on the class path. I
want it in the web-inf/ directory.

Do you understand what I mean?


Date: Mon, 2 Apr 2001 06:53:38 -0700
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
From: William Kaufman [EMAIL PROTECTED]
Subject: RE: how to access a properties file as a resource.
Message-ID: 635802DA64D4D31190D500508B9B04108214E1@dcsrv0

Use java.util.ResourceBundle.getBundle().

-- Bill K.




How to change context parameter?

2001-03-26 Thread Alex Colic


Hi,If you have a jsp how can you change the 
context parameter.Eg. in you web.xml file you 
have:context-paramparam-nameApp/param-nameparam-valuewr/param-value 
descriptionThe short name for this application. Do 
NotModify./description/context-paramYou can read 
this viaServletContext 
context=config.getServletContext(); String name="App"; 
String value=(String)context.getInitParameter(name); 
System.out.println("value: " + value);How do you change the value of the 
parameter. E.g.. change the value of APPfrom wr to req.Any help is 
appreciated.Alex



How to set user.dir in web.xml

2001-03-26 Thread Alex Colic



Hi,I have a 
database in the root directory of my web app that I use with myJSP. I want 
to create a war file that does not require any further userintervention in 
configuring the application.I am not using a dsn to connect to my access 
database rather I am using thebelow string.DRIVER={Microsoft Access 
Driver(*.mdb)};DBQ=pwWorkFlow;DefaultDir="c:\tomcat\webapps\myCompany\;The 
above string works as long as I set the DefaultDir manually. I don'twant the 
user to have to do that. I noticed the user.dir pointed to theabove 
directory. Is there a way I can set the DefaultDir in the above 
stringautomatically to point to the root directory of my web app.I 
hope the above made sense.Any help is 
appreciated.Alex


how to read servletcontext comments?

2001-03-26 Thread Alex Colic


Hi, I am creating an jsp admin screen to allow users to 
modify programsetting found in web.xml. The below code reads the context 
paramters andcreates a simple table. What I can't figure out to read is the 
attributecomments. Any idea how to do this.Any help is 
appreciated.Alex% ServletContext 
context=config.getServletContext(); Enumeration 
enum=context.getInitParameterNames(); String name; String 
value; while(enum.hasMoreElements()) { 
name=(String)enum.nextElement(); 
value=(String)context.getInitParameter(name); 
% 
TRTD%=name%/TDTDINPUT TYPE="text" 
size="40" 
value="%=value%"/TDTD/TD/TR% 
}%



tomcat no longer runs??

2001-03-22 Thread Alex Colic

Hi, all of a sudden I am getting the below error when I try to run tomcat.
Any ideas?

Thanks

Alex

Context log path="" :jsp: init
Context log path="" :default: init
Starting endpoint port="80"
handler="org.apache.tomcat.service.http.HttpConnectionHandler"
Starting endpoint port="81"
handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
Context log: path="" Error in default service() :
javax.servlet.http.NoBodyResponse
 java.lang.ClassCastException: javax.servlet.http.NoBodyResponseat
org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.j
ava:126)at
org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:187)at
javax.servlet.http.HttpServlet.doHead(HttpServlet.java:313) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:757)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)  at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)   at java.lang.Thread.run(Thread.java:484) Context log: path="" bInternal
Servlet Error:/bbr pre java.lang.ClassCastException:
javax.servlet.http.NoBodyResponse   at
org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.j
ava:126)at
org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:187)at
javax.servlet.http.HttpServlet.doHead(HttpServlet.java:313) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:757)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)  at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)   at java.lang.Thread.run(Thread.java:484) /pre
Context log: path="" Socket Exception/




How to reload a web app?

2001-02-25 Thread Alex Colic

Hi,

I am creating an admin servlet that will reload a web app. What command do you send 
Tomcat to do
that? 

Thanks for any help.

Alex

=
Regards

Alex Colic, HBA, B. Ed
PopWare Inc. "Driving down the cost of conversions"
E-Mail: [EMAIL PROTECTED]
Tel: 1-905-777-8171 ext. 104
Fax: 1-905-777-0132

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




Answer three simple questions and I will be thrilled.

2001-02-21 Thread Alex Colic

Hi,

I am trying to get a handle on Log4J and I have three problems/questions I am trying 
to get
around.

First I am trying to use log4j with a web app that is distributed in a standard war 
file. I want
to be able to distribute this file, along with the logging class and not worry about 
configuring
log4j.

In my code I have PropertyConfigurator.configure("path to myLog.properties");

As a result I have to set this path every time I distribute the war file.
Is it possible to set this up so that the class file looks to where it has been 
installed and
looks for myLog.properties there. This way I don't have to worry about setting to
myLog.properties.

Second, I have a rolling file set in myLog.properties via:
log4j.appender.R.File="/myRollingLog.log"

How can I do the same as in step one, have this file default to where the war file was 
installed?

Third, I have the following code in each of my class files:
Category cat=Category.getinstance(myclass.class.getName());
How can I have the above through reflection find its own class name and therefore I 
would have a
default statement? Something like
Category cat=Category.getInstance("Find_What_Class_This_Is).class.getName())?

Thanks for any help.

Alex



=
Regards

Alex Colic, HBA, B. Ed
PopWare Inc. "Driving down the cost of conversions"
E-Mail: [EMAIL PROTECTED]
Tel: 1-905-777-8171 ext. 104
Fax: 1-905-777-0132

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

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