RE: Install issue on Mac OS 9.0.4

2001-03-15 Thread Rodriguez Victor A.

Hi Andy,

> When I am not connected to the internet through my ISP I get 
> the following
> start-up exceptions:
>  
> 2001-03-08 09:40:09 - ContextManager: Adding context Ctx( /examples )
> Starting tomcat. Check logs/tomcat.log for error messages
> 2001-03-08 09:40:09 - ContextManager: Adding context Ctx( /admin )
> 2001-03-08 09:40:09 - ContextManager: Adding context Ctx( /jdbc )
> 2001-03-08 09:40:09 - ContextManager: Adding context Ctx(  )
> 2001-03-08 09:40:09 - ContextManager: Adding context Ctx( /test )
> FATAL:java.net.UnknownHostException: OpenTransport error -3205; Can't
> initialize OpenTransport's internet services

This happens because you have no IP address assigned until you connect to
the ISP.
I solved this creating a new TCP/IP profile with a fixed IP address (let's
say 10.1.1.1) and changing to my ISP configuration in the TCP/IP control
panel when connecting to nternet (you must restart tomcat after this).

If anyone has a better solution I'll be glad to hear it.

Cheers
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680



RE: Upcoming Tomcat book...

2001-03-09 Thread Rodriguez Victor A.

Hi Rob, Adam et al.

I think that its a good point that Adam could point us in the direction
intended for the book. I know that the "book's target audience is web
developers who will be using Tomcat", but if a more specific one could be
pointed out would be very helpful.
In case that the intended direction should be suggested by us (the future
readers a.k.a. the target audience) I agree completely with Rob :

> I think either kind of book would be an excellent book.  What 
> I would hate to see is a book that's something of a mishmash 
> in between -- not really about Tomcat, and not really about 
> advanced issues of servlet/jsp development and deployment 
> focused on Tomcat.  Such a book might sell because a lot of 
> people who buy technical books really have no idea what 
> they're buying, but it would still not be a good book.

In my particular position, I can allocate some time for a chapter
review/reading or something in the style. I must admit that I'm not the best
reviewer in the world, but as much eyes take a look the better. 

Cheers.
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 

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




RE: Include files in Tomcat and Apache

2001-03-09 Thread Rodriguez Victor A.

Abdullah,

> I  have apache  1.3.14 ( with Jserv) and Tomcat  3.2.1 
> running in the same machne
> on linux.
> All the html and images are in apache,
> All the Jsp and Servlets  are in tomcat
> Here i have one problem .
> I have a jsp  called login.jsp which has an include statement  like
> 
> <%@ include file="http://127.0.0.1/static/msFoot1.html" %>
>  or
> <%@ include file="http://abdullah/static/msFoot1.html" %>
> 
> when i call this login.jsp , i am getting the following exception
> 
> Internal Servlet Error:
> 
> org.apache.jasper.compiler.CompileException:
> /usr/local/jakarta-tomcat-3.2.1/webapps/Oilgrains/jsp/ 
> login.jsp(9,0) Bad file
> argument to include

You only can include files trough the local filesystem :

<%@ include file="/usr/local/html_files/static/msFoot1.html" %>

If you need to include files via a URL, you can use the next code snippet :

  <%
//
// URL inclusion
//

String url = "http://server/path/to/file/here");  // Can be any URL
(ftp, http, etc)


try {
URL urlConn = new URL ( url ); // Creates an
object,
URLConnection connURL = urlConn.openConnection();  // then opens the
connection
InputStream inURL = connURL.getInputStream();  // and converts
it to
   // an InptuStream
while ( (x = inURL.read()) != -1 ) {
 out.print( (char) x );
};
 
inURL.close();

} catch (MalformedURLException e) {
out.println("" + e + "" );
} catch (IOException e) {
out.println("" + e + "" );
}
}
  %>

Perhaps is not the better code, but take as a starting point (BTW, if anyone
has a better one I'll be happy to hear from it !!)

Cheers.
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 

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




RE: Upcoming Tomcat book...

2001-03-08 Thread Rodriguez Victor A.

Adam,

I am a Technology Consultant (my programming skills are not very high), and
many times the security related task are the less known to the programmers
(how to catch and use a security contexts, safe programming, etc.).

I think that a chapter devoted to security related tasks would be avery good
idea.

Cheers.
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 



> -Mensaje original-
> De: Adam Fowler [mailto:[EMAIL PROTECTED]]
> Enviado el: Saturday, March 03, 2001 05:52
> Para: [EMAIL PROTECTED]
> Asunto: Upcoming Tomcat book...
> 
> 
> Hi all,
> 
> I will shortly be writing a book for Sams Publishing in a 
> similar format to
> the recently released(and well received) book on Python.
> 
> I currently have the task of writing a proposal for content 
> of the book. The
> book's target audience is web developers who will be using 
> Tomcat. It will
> be based on Tomcat 4.0, but will also be useful for Tomcat 3.x.
> 
> I am e-mailing this list to ask for serious suggestions for 
> sections of the
> book. From installation through configuration to deploying custom
> applications.
> 
> Any help would be appreciated and would benefit everyone as 
> this book is
> meant to be for you people.
> 
> If any Tomcat User Group(TUG) members wish to write user 
> documentation for
> Tomcat (The 'paths' that have been discussed) then drop me an 
> e-mail and
> maybe we can help each other.
> 
> Regards,
> Adam.
> 
> 
> Adam Fowler
> Second year Computer Science undergraduate
> University of Wales, Aberystwyth
> Carroll College, WI, USA(2000-2001)
> web: http://gucciboy.dyndns.org/aff9
> e-mail: [EMAIL PROTECTED]
> "Every new beginning comes from some other beginning's end"
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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




RE: tomcat runs on Macintosh

2001-03-08 Thread Rodriguez Victor A.

Tomcat also worked from me inj an Apple Powerbook (Mac OS 9).
I'm also waiting for Mac OS X (I love its Unix and BSD background !!)

Cheers
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 



> -Mensaje original-
> De: Bob & Rachael Flannery [mailto:[EMAIL PROTECTED]]
> Enviado el: Sunday, March 04, 2001 20:58
> Para: [EMAIL PROTECTED]
> Asunto: tomcat runs on Macintosh
> 
> 
> Howdy!
> 
>   I set MacIP to 127.0.0.1, customized server.xml to use 
> virtual host on port 80, made an app, tomcat, with JBindery, and ran 
> it.  It's modeled on tomcat.sh.  Netscape could pick up 
> http://127.0.0.1/jsp/index.html and 
> http://127.0.0.1/examples/index.html OK!  The computer is an iMac SE 
> Graphite.
> 
>   More as events develop.
> -- 
>   mitakuye oyasin
>   Bob
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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




RE: IIS 5.0 and adding contexts (JSPs not being processed)

2001-03-01 Thread Rodriguez Victor A.

Hi,

> One interesting thing to note is that the Javascript is still 
> executed (i.e.
> stuff inside tags)

Please, note that JSP executes in the server side, and JavaScript in the
client side (a.k.a. browser).

Cheers.
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 

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




RE: Can tomcat do ASP in VBScript

2001-02-28 Thread Rodriguez Victor A.

Mike,

> I know this is probably a stupid question to ask
> "can tomcat serve up the competition's ASP pages
> written in VBScript" but I have a good reason to
> ask it. I am trying to repair a damaged IIS server
> on NT4  and it is turning out to be a real pain. I
> have already installed tomcat on the server and it
> works just great. All future CGI stuff on this box
> will be written in JSP.But for the moment there is
> a bunch of ASP scripts that I want to run via
> Tomcat.
> 
> Now I do know that IIS and Tomcat can work
> together but to be honest I just want to dump IIS
> completely and do everything with tomcat.
> 
> So back to my question, can tomcat serve up ASP
> pages written in VBSCript?

At he moment Tomcat only supports JSP. You can put Tomcat as a service, use
the filter in IIS (isapi_redir.dll) and IIS will serve ASP code and Tomcat
the JSP one. Once all you code has been ported to JSP you can thrown IIS and
use just Tomcat.

BTW, I'm using it this way in OpenBSD v2.7 and Mac OS 9 ... it was a no pain
installation, and smooth running (the Mac OS 9 is for my notepad Apple
PowerBook, and OpenBSD for my home server: an Intel Pentium 133 Mhz/80 MB
RAM).

Cheers.
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 

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




RE: IIS and Tomcat

2001-02-27 Thread Rodriguez Victor A.

Have you given /jakarta execute (including scripting) permissions ?? 
 

--
Víctor A. Rodríguez ( http://www.bit-man.com.ar 
)
Telefónica de Argentina - http://www.Telefonica.com.ar
 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680



 

-Mensaje original-
De: Lori Edelen [mailto:[EMAIL PROTECTED]]
Enviado el: Tuesday, February 27, 2001 10:23
Para: [EMAIL PROTECTED]
Asunto: IIS and Tomcat


I am having a lot of problems getting this working!  I am getting this error
in the log file:
#Software: Microsoft Internet Information Server 4.0
#Version: 1.0
#Date: 2001-02-27 13:20:25
#Fields: time c-ip cs-method cs-uri-stem sc-status
13:20:25 127.0.0.1 GET /jakarta/isapi_redirect.dll 401
 
 
Any advice?
Lori Edelen
Web Application Developer
Lattestone.com


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




RE: Isapi_Redirector and 200 Errors

2001-02-15 Thread Rodriguez Victor A.

Hi,

> What I get when I surf to the site I've created is an attempt 
> by the browser
> to download the file. Note, this happens when I set up a 
> context for it
> within the webapps folder and when I point it to an external 
> folder (I deved
> it using JRun which isn't so picky about where things live).
> 
> On the NT/IIS box, the green arrow appears but the browser 
> will load the
> code of the page, not parse it.
> 
> Any thoughts?

Have you said to isapi_redirector that must catch the uri you're working on
??
Basically add the next line to you
%TOMCAT_HOME%\conf\uriworkermap.parameters file:

/my_URI/*.jsp=ajp12 If your application is working on
http://localhost/my_URI/

Hope this helps.
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 

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




RE: uriworkermap

2001-02-13 Thread Rodriguez Victor A.


James,
 
> I'm using the isapi_redirect with IIS on w2k and it's not 
> regocnizing the
> patterns to forward to tomcat server.
> 
> log says this
> [jk_uri_worker_map.c (434)]: 
> jk_uri_worker_map_t::map_uri_to_worker, done
> without a match
> [jk_isapi_plugin.c (452)]: HttpFilterProc 
> [/examples/jsp/dates/date.jsp] is
> not a servlet url
> 
> and uriworkermap.properties says:
> /examples/*.jsp=ajp12
> 
> has anybody worked with this feature?

Please, try to add the next line to your uriworkermap :

/examples/jsp/dates/*.jsp=ajp12

Hope this helps.
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 

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




RE: Problem with installing tomcat as NT service - spaces in path cause crash

2001-01-30 Thread Rodriguez Victor A.

Hi,

have you tried to enclose the whole path with double quotes, quotes or
something in the style ??

wrapper.tomcat_home="C:\Program Files\Application Name\tomcat"

Justa  thought, I never tried to use it that way.

Cheers
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 



-Mensaje original-
De: Brian Radovich [mailto:[EMAIL PROTECTED]]
Enviado el: Monday, January 29, 2001 20:42
Para: [EMAIL PROTECTED]
Asunto: Problem with installing tomcat as NT service - spaces in path
cause crash


Howdy

When I have my install program configure the wrapper.properties file, it can
inset a line like

wrapper.tomcat_home=C:\Program Files\Application Name\tomcat

The service will not work... it only works when the path to tomcat has no
spaces in it... I tried using double quotes and it didn't work.

Is this a known bug or am I doing something wrong?

TIA

Brian


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

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




RE: response.sendRedirect and target

2001-01-29 Thread Rodriguez Victor A.

Hi,

redirection is mainly used for redirecting the actual page to another one (I
mean is a kind of control passing).
What you want to do is commonly written in HTML as a link, which once
clicked on it opens the "page.jsp"in a new browser window:

Go to my page

It also can be made using JavaScript, with the window.open function (this
gives you more control on the new child window, because size and other
attributes can be set).

Cheers.
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 



-Mensaje original-
De: Carlos [mailto:[EMAIL PROTECTED]]
Enviado el: Monday, January 29, 2001 13:29
Para: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Asunto: response.sendRedirect and target


if i have:
response.sendRedirect("page.jsp");
how can i put in a target=_top the redirect?
thanks
Carlos


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

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




RE: Running Tomcat on WindowsNT

2001-01-26 Thread Rodriguez Victor A.

Hi,

> D:\tomcat\tomcat>set TOMCAT_HOME=D:\tomcat\tomcat
> 
> D:\tomcat\tomcat>cd bin
> 
> D:\tomcat\tomcat\bin>startup
> Including all jars in D:\tomcat\tomcat\lib in your CLASSPATH.
> 
> Using CLASSPATH:
> D:\tomcat\tomcat\classes;D:\tomcat\tomcat\lib\ant.jar;D:\tomcat
>
\tomcat\lib\jasper.jar;D:\tomcat\tomcat\lib\jaxp.jar;D:\tomcat\tomcat\lib\pa
> rser
>
.jar;D:\tomcat\tomcat\lib\servlet.jar;D:\tomcat\tomcat\lib\webserver.jar;c:\
> jdk1
>
.3;c:\jdk1.3\bin;c:\jdk1.3\bin\lib;c:\tomcat\tomcat\lib;D:\jdk1.3\lib\tools.
> jar

> Starting Tomcat in new window
> The system cannot find the file -Dtomcat.home=D:\tomcat\tomcat.
> D:\tomcat\tomcat\bin>

In tomcat.bat, the next lines are the ones that begin Tomcat starting :

:startServer
echo Starting Tomcat in new window
echo opts=%_STARTJAVA%
if "%2" == "-security" goto startSecure
%_STARTJAVA% %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%"
-Dorg.omg.CORBA.ORBClass=com.iona.corba.art.artimpl.ORBImpl
-Dorg.omg.CORBA.ORBSingletonClass=com.iona.corba.art.artimpl.ORBSingleton
org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
goto cleanup

There's one strange behaviour in this, and the message 'opts=start "Tomcat
3.2" "c:\jdk1.3\bin\java"' isn't displayed (it should be showing after
message 'Starting Tomcat in new window'.

Please, to get a closer picture try to :

- look if a new windows is generated (with the title Tomcat 3.2)
- add the line 'echo OPTIONS=%TOMCAT_OPTS%' and execute again

I think that %_STARTJAVA% and %TOMCAT_OPTS% are blank (or non-existent for
some reason) and the first parameter passed to CMD.EXE is
'-Dtomcat.home="%TOMCAT_HOME%"', so it tries to execute it and can't find
such filename.

Hope this helps.
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 

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




RE: getParameter in Tomcat on IIS

2001-01-26 Thread Rodriguez Victor A.

Eric,

thanks for your soon answer !!

unfortunately there's no change, even when all text was uppercase.
I also played with upper/lower case when getting the parameters in the JSP,
but unless the case are exactly the same for each file (HTML and JSP) the
obtained result is null (for NetScape, where POST and GET worked).

Perhaps I'll take a look to the sources and make some little debugging to
get a clue about it.

If anyone has the same kind of problem (IIS or not) please let me know.

Cheers.
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680

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




RE: getParameter in Tomcat on IIS

2001-01-26 Thread Rodriguez Victor A.

Eric,

> Hi
> 
> Are you using by any change this option when doing a post :
> enctype="multipart/form-data" ?

Not at all, I'm using the form (and JSP code) attached to this e-mail.

Cheers
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 


Title: Test de Bit-Man

	
	
Formulario con POST
  
	  
	 
	  Login
	   
	
	  
	
	 
	  Password
	   
	
	  
	
	  
	   
	  
	  
	
	

Formulario con GET
  
	  
	 
	  Login
	   
	
	  
	
	 
	  Password
	   
	
	  
	
	  
	   
	  
	  
	
	

 test.jsp

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


getParameter in Tomcat on IIS

2001-01-26 Thread Rodriguez Victor A.

Hi All,

I'm new to the list and I'm setting up Tomcat 3.2 + IIS and we get the
problem stated in  http://znutar.cortexity.com/BugRatViewer/ShowReport/55
and http://w4.metronet.com/~wjm/tomcat/ToFeb11/msg02723.html (getParameter
is null when values from a HTML FORM are sent to a JSP). The getParameter
works well if the method used is GET, but if POST is used the value returned
is null (only detected in MSIE 4.x).

Does anyone have any clue about this problem ?? (actual Tomcat bug, MSIE
bug), Any workarounds ?? 

Thanks for all your help.
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 


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




getParameter in Tomcat on IIS

2001-01-25 Thread Rodriguez Victor A.

Hi All,

this is my first post to the list, and I'm not currently subscribed
tomcat-user.

I'm setting up Tomcat 3.2 + IIS and we get the problem stated in
http://znutar.cortexity.com/BugRatViewer/ShowReport/55 and
http://w4.metronet.com/~wjm/tomcat/ToFeb11/msg02723.html (getParameter is
null when values from a HTML FORM are sent to a jsp). The getParameter works
well if the method used is GET, but if POST is used the value returned is
null (only detected in MSIE 4.x).

Does anyone have any clue about this problem ?? (actual Tomcat bug, MSIE
bug), Any workarrounds ?? 

Thanks for all your help.
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 


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