RE: Macintosh and Java

2001-02-25 Thread Stefán F. Stefánsson

can you give the exact string you're typing in your browser?

here's what you should type:
http://localhost:8080/

the :8080 tells the browser to communicate on port 8080 instead of the
default http port (which is 80).  You can also open the server.xml file
in the tomcat_root/config directory and edit the Connector tag.  It
should have a parameter name=port value=8080.  You would have to change
that to 80 so that the address http://localhost/ would work.

Hope this helps you.

-Original Message-
From: S Lafredo [mailto:[EMAIL PROTECTED]]
Sent: 25. febrar 2001 17:47
To: [EMAIL PROTECTED]
Subject: Macintosh and Java


Hi,

Has anyone set-up a Macintosh to run Apache and/or Tomcat?

I think I have found several ways to do this but I was hoping someone
could confirm them for me.

1. I am running MacOS 9.x, MRJ 2.2.4 and downloaded jakarta-tomcat-3.2.1
I clicked on the Tomcat Start and a Java console opens and displays

2001-02-25 12:40:00 - ContextManager: Adding context Ctx( /examples )
2001-02-25 12:40:00 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages 
2001-02-25 12:40:01 - ContextManager: Adding context Ctx(  )
2001-02-25 12:40:01 - ContextManager: Adding context Ctx( /test )
2001-02-25 12:40:09 - PoolTcpConnector: Starting HttpConnectionHandler
on 8080
2001-02-25 12:40:10 - PoolTcpConnector: Starting Ajp12ConnectionHandler
on 8007

So it looks like it is running correctly?

I then run IE 5 (Netscape does not support MRJ?) and type localhost.
Nada?

I also tried copying on of the example.html pages into the browser but
when I try to run the JSP the Finder displays and error message stating
that the foo.jsp application could not be found.

Anyone know what I am doing wrong?

Or do I have to take on of the following routes...


2. Download Darwin, Apache for Darwin and Tomcat.sit or Tomcat.sit.hqx?
While waiting for MacOS X.

3. Purchase SuSE 7.0 for PPC?

4. Something else?

Thanks!

Stephen

-
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: Macintosh and Java

2001-02-25 Thread S Lafredo

I tried that and it did not work? I was getting very strange error
messages from IE.

Not wanting to give up I quit Tomcat and started it up again while IE
was running (shouldn't make a difference :) and now I get the Tomcat
page.

When I run the sample JSPs I am throwing exceptions all over the place
but at least I am running.

Thanks!

Stephen

On 2/25/01 at 5:55 PM, Stefn F. Stefnsson [EMAIL PROTECTED]
wrote:

: can you give the exact string you're typing in your browser?
: 
: here's what you should type: http://localhost:8080/
: 
: the :8080 tells the browser to communicate on port 8080 instead of the
: default http port (which is 80).  You can also open the server.xml
: file in the tomcat_root/config directory and edit the Connector
: tag.  It should have a parameter name=port value=8080.  You would have
: to change that to 80 so that the address http://localhost/ would work.
: 
: Hope this helps you.

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




Re: Macintosh and Java

2001-02-25 Thread Mel Martinez


--- S Lafredo [EMAIL PROTECTED] wrote:
 1. I am running MacOS 9.x, MRJ 2.2.4 and downloaded
 jakarta-tomcat-3.2.1
 I clicked on the Tomcat Start and a Java console
 opens and displays
 
 2001-02-25 12:40:09 - PoolTcpConnector: Starting
 HttpConnectionHandler
 on 8080

 So it looks like it is running correctly?
 
 I then run IE 5 (Netscape does not support MRJ?) and
 type localhost.
 Nada?

By default, standalone Tomcat listens to port 8080. 
Try:  http://localhost:8080/ instead.  Alternatively,
edit the ..:tomcat:conf:server.xml file to change the
port.

Tomcat ishould/i be able to run fine with MacOS 9
and MRJ 2.2.4, but may occasionally encounter a glitch
with file separator.  I've spotted more than one case
in the code already where folks have improperly
assumed they can use "/" as the file separator.  So
watch out for possible problems in that area (mac OS 9
uses ':', mac OS X can use either ':' or '/').

Rule of thumb:  When building file paths, be sure to
either use either the system property
System.getProperty("file.separator") or the public
field java.io.File.separator as the separator. 
Alternatively, you should just let the File object
build paths for you:

String base = "/some/path"; // arbitrary '/' here
String dname = "mydir";
String fname = "myFile.txt";
File f = new File(base);
f = new File(f,dname);
f = new File(f,fname);

The above would build "/some/path/mydir/myFile.txt" on
unix.  On a mac (assuming base=":some:path", the
result would be ":some:path:mydir:myFile.txt"

 
 2. Download Darwin, Apache for Darwin and Tomcat.sit
 or Tomcat.sit.hqx?
 While waiting for MacOS X.
 

If you want to run Apache, you will need to use Darwin
or Mac OS X public beta while waiting for Mac Os X. 
If you don't need Apache, then tomcat itself should
run fine on Mac OS 9.  MRJ 2.2.4 has many 'Java 2'
apis added on top of the offic 1.1.8 spec.

 3. Purchase SuSE 7.0 for PPC?
 

Drastic, but should work great.

 4. Something else?
 

If you have at least a 500MHz G3 box, running Apache
on Linux or WinNT inside Virtual PC v4 should be
actually viable unless you expect a lot of traffic
(i.e. it should be fine for development).

Cheers,

Mel

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




Re: Macintosh and Java

2001-02-25 Thread Steve Ruby



You should be able to use IE or netscape, this is server side java
so it doesn't matter if your browser supports it or not.

Did you try the servlet examples?  if MRJ is just a runtime then there
is no compiler in it and your computer won't compile the JSP pages, try
the servlets. they are already compiled. You may need to compile the JSP
pages elsewhere. or find a compiler (JDK).

S Lafredo wrote:
 
 I tried that and it did not work? I was getting very strange error
 messages from IE.
 
 Not wanting to give up I quit Tomcat and started it up again while IE
 was running (shouldn't make a difference :) and now I get the Tomcat
 page.
 
 When I run the sample JSPs I am throwing exceptions all over the place
 but at least I am running.
 
 Thanks!
 
 Stephen
 
 On 2/25/01 at 5:55 PM, Stefn F. Stefnsson [EMAIL PROTECTED]
 wrote:
 
 : can you give the exact string you're typing in your browser?
 :
 : here's what you should type: http://localhost:8080/
 :
 : the :8080 tells the browser to communicate on port 8080 instead of the
 : default http port (which is 80).  You can also open the server.xml
 : file in the tomcat_root/config directory and edit the Connector
 : tag.  It should have a parameter name=port value=8080.  You would have
 : to change that to 80 so that the address http://localhost/ would work.
 :
 : Hope this helps you.
 
 -
 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: Macintosh and Java

2001-02-25 Thread Angelique Gulermovich Epstein

Stephen,

I haven't succeeded in getting the JSP examples that come with Tomcat
working on the Mac, but you will probably find
http://www.rainwatersoft.com/java4u/tomcat_on_macintosh/ helpful.

Good luck!  (And please keep us posted.)

Angel

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