Problem using Tomcat 6.x under windows 64-bit

2007-05-20 Thread Lluis Gifre
Hi,

I'm trying to install Tomcat 6.x in a Windows XP x64 system.

I need to know if there is any problem with the 64-bit systems and tomcat...

I have the 64-bit version of JRE version 1.6.0 and the jvm.dll file version
is: 6.0.10.6.

The problem is that when i start the service it doesn't start. I attach the
log-files generated by tomcat.

Please give me an answer.

Thanks in advance,

Lluis


   
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

tomcat redirect, configuration problem?

2007-05-20 Thread kky
Hi, i've tried to install tomcat on linux gentoo and windows,
  same problem with both os:

going at  http://127.0.0.1:8080/hcf_coge/index.html or
http://127.0.0.1:8080/hcf_coge/ i'm redirected to :


  HTTP Status 404 - /hcf_coge/html/index.html



*type* Status report

*message* _/hcf_coge/html/index.html_

*description* _The requested resource (/hcf_coge/html/index.html) is not
available._

i'm new to tomcat and also this application (that i should work on),
could it be a configuration of the server ?
thanks a lot,
kky


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning

2007-05-20 Thread gbarnas

Sean:

I've recently struggled through the same 404 issues on my test server, where
I'm preparing to move an app from an old Win2K/Apache/Tomcat environment to
W2K3/IIS6/Tomcat6 system.

I now have .jsp files being served up from within my IIS web structure as
well as the Tomcat /examples, all from the IIS port 80 interface. This
required creating a Virtual Directory in IIS for the /examples folder in
Tomcat, and a Context definition in Tomcat to reference the .JSPs in the
IIS folder.

The entire process is documented, with sample config files and screenshots,
and available on my web server at  
http://gw.innotechcg.com:2080/downloads/IntegrateTomcatIIS.zip 
http://gw.innotechcg.com:2080/downloads/IntegrateTomcatIIS.zip  . This is
the first draft of the document, and it covers everything from installing
Java to configuring the server.xml file. Presentation is generic, and geared
toward working examples, so the concepts can be grasped and applied to other
configurations. I'd love feedback on whether it helped, accuracy, and even
additional concepts to add to it.

Regards,

Glenn


That's one I haven't heard before.  I'll have to keep an eye out
for that in the future, but it isn't the case here.  I also did not
download any of the versions I'm using directly on the server,
so I should have been safe from that.

Thanks for the suggestion.

Sean McKellips
Systems Administrator
Associated Grocers
206-767-8725 phone
206-764-7879 fax
[EMAIL PROTECTED]
-- 
View this message in context: 
http://www.nabble.com/Tomcat-6.0-on-Windows-Server-2003-IIS-6.0-connector-not-functioning-tf3718810.html#a10705958
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat redirect, configuration problem?

2007-05-20 Thread David Smith
Redirection is up to the application.  The *only* redirection I know of 
in tomcat is the redirect for logins, but this doesn't appear to be that.


--David

kky wrote:

Hi, i've tried to install tomcat on linux gentoo and windows,
  same problem with both os:

going at  http://127.0.0.1:8080/hcf_coge/index.html or
http://127.0.0.1:8080/hcf_coge/ i'm redirected to :


  HTTP Status 404 - /hcf_coge/html/index.html



*type* Status report

*message* _/hcf_coge/html/index.html_

*description* _The requested resource (/hcf_coge/html/index.html) is not
available._

i'm new to tomcat and also this application (that i should work on),
could it be a configuration of the server ?
thanks a lot,
kky


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem using Tomcat 6.x under windows 64-bit

2007-05-20 Thread Rashmi Rubdi

On 5/20/07, Lluis Gifre [EMAIL PROTECTED] wrote:




Hi,

I'm trying to install Tomcat 6.x in a Windows XP x64 system.

I need to know if there is any problem with the 64-bit systems and tomcat...


The only problem I've faced is with the Windows Installer (I don't
remember exactly what the problem was - the mistake could be that I
mis configured Tomcat) , but I un-installed Windows Installed Tomcat ,
and downloaded the zip version and unzipped it to a folder that
doesn't contain white spaces.

In your case you would set environment variables JRE_HOME to the root
folder of your JRE's and CATALINA_HOME to the root folder of Tomcat.

With the above configuration I haven't had any problems with Tomcat on
Windows XP.

 I have the 64-bit version of JRE version 1.6.0 and the jvm.dll file version

is: 6.0.10.6.

The problem is that when i start the service it doesn't start. I attach the
log-files generated by tomcat.


Attachments are filtered out, please paste the relevant contents of
the log file.


Please give me an answer.

Thanks in advance,

Lluis



-Regards
Rashmi

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Reloadable attribute not working

2007-05-20 Thread Caldarale, Charles R
 From: lightbulb432 [mailto:[EMAIL PROTECTED] 
 Subject: RE: Reloadable attribute not working
 
 There's no folders under CATALINA_BASE/conf

Not having run an embedded Tomcat, I don't know if that's normal or not.

 I'm using the invoker servlet - could that be a reason, or 
 does it have nothing to do with this? 

Don't know - the invoker servlet should never be used.  It's only there
for compatiblity.

 Also, could it be why no .java and .class files are generated 
 in my work directory?

They're only generated for .jsp files; do you have any in your webapps?

 What other effects might one expect using the invoker servlet?

Security holes all over the place.  It's really a bad idea.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Running Tomcat Source In Netbeans... webapps and conf everywhere?

2007-05-20 Thread Johnny Kewl
Hi guys...

I'm trying to set up a way to debug directly from a web-app into tomcat... 
I've managed to get the 6.0.13-src running in the netbeans IDE... which is very 
cool, but I got some questions


1) I have to put webapps and conf under... the Project folder, the 
Project/build folder, and the Project/catalina.base folder... otherwise it 
doesnt work.
Why is that?

2) And this is related (I think)... where are these folders controlled from... 
ie is there a way to tell Tomcat to pick up only on webapps in the build 
folder... that would mean one can debug from webapp into tomcat... thats what 
I'm trying to get to.


3) Incidently I had to fix code in org.apache.tomcat.util.net.puretls... and 
struggled to get that integrated with cryptix, which I've never heard mention 
of in the mailing list... is it correct to assume thats under development?

Thx... 




Johnny Kewl 
  eMail: JohnNo Spamkewlstuff.co.za  -- replace No Spam with @ --
  Cell: +027-72- 473-9331
Java Developer (Tomcat Aficionado)
  Free Tomcat software at  http://coolese.100free.com/


Question about jar file name.

2007-05-20 Thread Rodrigo Pimenta Carvalho
Hi.

 

I have a TomCat project and its Java source code can't compile. The problem
is due to an import clause.

This is trying to import Connector class. But I didn't put the respectively
jar file in my classpath.

 

What is the correct jar file (containing
org.apache.catalina.connector.Connector) to solve this problem?

 

Thanks a lot.

 

Rodrigo Pimenta Carvalho.

Brazil.

 



Re: Question about jar file name.

2007-05-20 Thread domenico di leo

I'm not expert, but you should out your Jar file into lib directory
(WEB-INF/lib) of your application.
When Tomcat compiles your class automatically look into lib to find the class.
Bye

On 20/05/07, Rodrigo Pimenta Carvalho [EMAIL PROTECTED] wrote:

Hi.



I have a TomCat project and its Java source code can't compile. The problem
is due to an import clause.

This is trying to import Connector class. But I didn't put the respectively
jar file in my classpath.



What is the correct jar file (containing
org.apache.catalina.connector.Connector) to solve this problem?



Thanks a lot.



Rodrigo Pimenta Carvalho.

Brazil.






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question about jar file name.

2007-05-20 Thread Edoardo Panfili

Rodrigo Pimenta Carvalho ha scritto:

Hi.

 


I have a TomCat project and its Java source code can't compile. The problem
is due to an import clause.

This is trying to import Connector class. But I didn't put the respectively
jar file in my classpath.

 


What is the correct jar file (containing
org.apache.catalina.connector.Connector) to solve this problem?


In my Tomcat installation (Tomcat 5.5.23) in folder server/lib there is 
a file catalina.jar that contains 
org.apache.catalina.connector.Connector.class


If you are using Unix you can find usefull
jar -tf catalina.jar  | grep Connector

Edoardo

--
[EMAIL PROTECTED]
AIM: edoardopn
Jabber: [EMAIL PROTECTED]
tel:075 9142766

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Reloadable attribute not working

2007-05-20 Thread lightbulb432

I know the cause of the problem - my use of embedded tomcat. When I tried it
with the standalone Tomcat, it works fine. What I'm confused about, then, is
how to fix the following code to make it work like standalone Tomcat. I'm
using Tomcat 6.

I'd be very surprised if this I'm not doing something wrong and this is a
limitation of embedded Tomcat.


public static void main(String[] args) {

Bootstrap bootstrap = new Bootstrap();
bootstrap.setCatalinaHome(path1);
bootstrap.setCatalinaBase(path2);
try {
bootstrap.init(new String[] {-config,conf/server.xml});
bootstrap.start();
Thread.sleep(1000);
}
catch (Exception e) {
e.printStackTrace();
}
}


Also, nothing is appearing underneath
CATALINA_BASE/work/Catalina/localhost/myapp, regardless of the number of
servlets or JSPs I've deployed and accessed, and regardless of whether it's
with standalone or embedded Tomcat.




Caldarale, Charles R wrote:
 
 From: lightbulb432 [mailto:[EMAIL PROTECTED] 
 Subject: RE: Reloadable attribute not working
 
 There's no folders under CATALINA_BASE/conf
 
 Not having run an embedded Tomcat, I don't know if that's normal or not.
 
 I'm using the invoker servlet - could that be a reason, or 
 does it have nothing to do with this? 
 
 Don't know - the invoker servlet should never be used.  It's only there
 for compatiblity.
 
 Also, could it be why no .java and .class files are generated 
 in my work directory?
 
 They're only generated for .jsp files; do you have any in your webapps?
 
 What other effects might one expect using the invoker servlet?
 
 Security holes all over the place.  It's really a bad idea.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Reloadable-attribute-not-working-tf3781575.html#a10710782
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Connection:close request returns a response without any content-length or Transfer-Encoding: chunked

2007-05-20 Thread Eric Deshayes

Hi Johnny,
thanks for your help.
By dichotomy, I've managed that the bug has been fixed in Tomcat 5.5.16.
However, I could not find any bug even by having a look at the tomcat
5.5changelog.
Eric

On 5/18/07, Johnny Kewl [EMAIL PROTECTED] wrote:


Just a footnote coz i suddenly realized wot may be happening
Because a browser may only support http 1.0... and or the content lengths
are not been set in the server... if you have progress scripts in your
page... you always have to check for divide by zero... which I imagine is
your problem.
In a good browser you will sometime see it downloading by the the length
is
?
The programmer forgot to set the length ;) or youre in a http 1.0server
(IIS... no just kidding ;)


- Original Message -
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, May 18, 2007 9:46 PM
Subject: Re: Connection:close request returns a response without any
content-length or Transfer-Encoding: chunked



 I havnt kept up http standards so this is a guess as usual ;)

 In http 1.0   thats how the server told the browser that the
transmission
 was over it closed the connection.
 So if its defaulting to the old way slamming down the
telephone...
 context length doesnt mean anything... so the server wont bother... its
 the 1.0 spec.

 Then they got smart with keep alives... server reaction time is
 improved greatly... no http connection to reestablish... but then they
had
 to include
 a context length otherwise the browser wont know when its got it.

 So just from that if your servlet program does not set the context
 length header... the server has no choice but to go back to the old 1.0
 spec and slam down the phone.

 Sometimes u dont know the length like possibly when streaming an
encrypted
 stream in that case I imagine tomcat will choose (I need help here
 people!) so if its short server will go... user didnt tell me
how
 long this is... slam down phone... OR... its going to go is this guy
 nuts... the thing is 10 megs and I dont know when its going to end
 and it will start chunking... (I think).

 Anyway I think wot you seeing is normal if you setting the
 Content-Length... and not getting it... that doesnt make sense... but if
 not... tomcat is just trying to do the best it can




 - Original Message -
 From: Eric Deshayes [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Friday, May 18, 2007 6:23 PM
 Subject: Connection:close request returns a response without any
 content-length or Transfer-Encoding: chunked


 Can anyone help me about that?
 Regards,
 Eric


 Sorry, i forgot to mention I was working with JBoss 4.0.3 SP1, so I
 assume
 Tomcat 5.5.9.

 Here are some example to illustrate my case.
 The first one i my problem.
 Is that a fix bug? if so, In which version of TOmcat has it been
fixed?
 It
 seems to work in the latest tomcat 5.5 version (5.5.23)
 If not, am I missing something from the Http specs?
 Regards,
 Eric


 Example with Tomcat 5.5.9 (connection : close and NO content-length or
 Transfer-Encoding provided):

 GET / HTTP/1.1
 Host: 127.0.0.1:18080
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3
)
 Gecko/20070309 Firefox/2.0.0.3
 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=
0.9
 ,text/plain;q=0.8,image/png,*/*;q=0.5
 Connection: close


 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build:
CVSTag=JBoss_4_0_3_SP1
 date=200510231751)/Tomcat-5.5
 Set-Cookie: JSESSIONID=7B90F594FCF9AB6A6AF690352724A94F; Path=/
 Content-Type: text/html;charset=ISO-8859-1
 Date: Thu, 17 May 2007 00:19:04 GMT
 Connection: close

 Second example with Tomcat 5.5.9 (connection : close and
 Transfer-Encoding
 provided)
 GET / HTTP/1.1
 Host: 127.0.0.1:18080
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3
)
 Gecko/20070309 Firefox/2.0.0.3
 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=
0.9
 ,text/plain;q=0.8,image/png,*/*;q=0.5

 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build:
CVSTag=JBoss_4_0_3_SP1
 date=200510231751)/Tomcat-5.5
 Set-Cookie: JSESSIONID=8306B59382F5277A0782B98F9362213A; Path=/
 Content-Type: text/html;charset=ISO-8859-1
 Transfer-Encoding: chunked
 Date: Thu, 17 May 2007 00:19:25 GMT


 Finally, I have tried with the latest Tomcat version 5.5.23 (no
 connection
 : close and content-length provided)

 GET / HTTP/1.1
 Host: 127.0.0.1:18080
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3
)
 Gecko/20070309 Firefox/2.0.0.3
 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9
 ,text/plain;q=0.8,image/png,*/*;q=0.5

 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 Content-Type: text/html;charset=ISO-8859-1
 Content-Length: 8132
 Date: Thu, 17 May 2007 00:19:48 GMT

 Another test with Tomcat 5.5.23 (connection : close and content-length
 provided):

Cannot Access Tomcat Server Using IP Address

2007-05-20 Thread Teh Noranis Mohd Aris
Dear All,
   
  I've tested my applications using http://localhost:8080/login.html in the 
same computer and it works. However, when I tried to acces my applications 
using an IP Address in another computer by typing http://ipaddress/login.html, 
The page cannot be found is displayed. How can I access my applications using 
IP address? Please help me. Thank you.
   
  Yours Sincerely,
  TEH 

   
-
Give spam the boot. Take control with tough spam protection
in the all-new Yahoo! Mail Beta.

Out of Office AutoReply: Cannot Access Tomcat Server Using IP Address

2007-05-20 Thread Rene de Vries


Re: Cannot Access Tomcat Server Using IP Address

2007-05-20 Thread Omar Eljumaily

First of all, you need to access it via http://ipaddress:8080/login.html

If you want port 80, you need to set up the appropriate connector or 
redirect port 8080 to port 80.


Also, you may have a firewall issue.  Which OS are you using?

Teh Noranis Mohd Aris wrote:

Dear All,
   
  I've tested my applications using http://localhost:8080/login.html in the same computer and it works. However, when I tried to acces my applications using an IP Address in another computer by typing http://ipaddress/login.html, The page cannot be found is displayed. How can I access my applications using IP address? Please help me. Thank you.
   
  Yours Sincerely,
  TEH 

   
-

Give spam the boot. Take control with tough spam protection
in the all-new Yahoo! Mail Beta.
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cannot Access Tomcat Server Using IP Address

2007-05-20 Thread David Smith
Include the port number in your request -- ie 
http://ipaddress:8080/login.html


--David

Teh Noranis Mohd Aris wrote:

Dear All,
   
  I've tested my applications using http://localhost:8080/login.html in the same computer and it works. However, when I tried to acces my applications using an IP Address in another computer by typing http://ipaddress/login.html, The page cannot be found is displayed. How can I access my applications using IP address? Please help me. Thank you.
   
  Yours Sincerely,
  TEH 

   
-

Give spam the boot. Take control with tough spam protection
in the all-new Yahoo! Mail Beta.
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk problem

2007-05-20 Thread Yifan (Eric) Jiang
Hi all,

 

Not quite sure if this list is the best place to send this question. But
I can't find anywhere else to send it to...

 

I am trying to install Shibboleth (http://shibboleth.internet2.edu/)
Identity Provider with Cosign protection on a RedHat Linux production
server. 

Well, Shibboleth Identity Provider is a Java Application and is using
Tomcat as a Java container. Therefore for the user conveniences, I have
to load a mod_jk module into Apache in order to build a connection
between Apache and Tomcat. 

 

I am using Apahce2.0.46, mod_jk 1.2.22 and Tomcat 5.5.23. After the
Shibboleth Identity Provider installation, everything is running
perfectly fine until the log rotation has been triggered by the cron job
at mid-night.

 

The cron job has the following configuration:

59  23  *   *   *   /usr/local/etc/rotate.log --move
--after=/usr/local/etc/rotate.log-after.std /var/log

59  23  *   *   *   /usr/local/etc/rotate.log --move
--after=/usr/local/etc/rotate.log-apache /var/log/httpd

 

So after the log rotation, Apache appears to have some problems to
restart. It returns a HTTP 500 error to users, and the ssl_error_log
file has logged a Premature end of script headers: cosign.cgi error.
Therefore it requires the administrator to restart the Apache manually.

 

Before I thought it was caused by Shibboleth and Cosign, so I just
disable the Cosign module for Apache. However, the error still happens
on the next day after the log rotation. Then I realised it may be cause
by the mod_jk, so I disable the mod_jk module and the Apache is back to
normal, even after the log rotation.

 

I have not idea what exactly caused this problem, and the log for
mod_jk, Apache doesn't give me much help. So does anyone know this
issue? 

 

Any information in regards of this would be much appreciated.

 

Thanks

 

Eric

 



Re: Cannot Access Tomcat Server Using IP Address

2007-05-20 Thread Teh Noranis Mohd Aris
Thank you. It's working now, the application can be accessed but when I type a 
file name to access a file in the server, I got an error 
java.security.AccessControlException:access denied (java.net.SocketPermission 
localhost:8080 connect, resolve). How can I solve this problem? For your 
information, I'm now using Windows XP Operating System but I plan to use Linux 
Fedora Operaing System later. Is there a difference in accessing the 
application using different operating system? Thank you.
   
  Yours Sincerely,
  TEH

David Smith [EMAIL PROTECTED] wrote:
  Include the port number in your request -- ie 
http://ipaddress:8080/login.html

--David

Teh Noranis Mohd Aris wrote:
 Dear All,
 
 I've tested my applications using http://localhost:8080/login.html in the 
 same computer and it works. However, when I tried to acces my applications 
 using an IP Address in another computer by typing 
 http://ipaddress/login.html, The page cannot be found is displayed. How can 
 I access my applications using IP address? Please help me. Thank you.
 
 Yours Sincerely,
 TEH 

 
 -
 Give spam the boot. Take control with tough spam protection
 in the all-new Yahoo! Mail Beta.
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 

Re: Cannot Access Tomcat Server Using IP Address

2007-05-20 Thread Omar Eljumaily
I don't understand.  Are you able to access login.html from outside your 
server machine? 

The socketpermerission problem you have sounds like a firewall issue or 
a administrator privileges problem not allowing you to accept incoming 
sockets.  Are you running with administrator privs on XP?


XP and Linux deal with firewalls and permissions differently.  Linux is 
a bit more straight forward in my opinion.  You just accept queries on 
8080 and then redirect port 80 if you want to resolve static pages.  
SELinux can be an issue, but is usually simple to solve by tweaking a 
setting.


Teh Noranis Mohd Aris wrote:

Thank you. It's working now, the application can be accessed but when I type a file name 
to access a file in the server, I got an error 
java.security.AccessControlException:access denied (java.net.SocketPermission 
localhost:8080 connect, resolve). How can I solve this problem? For your 
information, I'm now using Windows XP Operating System but I plan to use Linux Fedora 
Operaing System later. Is there a difference in accessing the application using different 
operating system? Thank you.
   
  Yours Sincerely,

  TEH

David Smith [EMAIL PROTECTED] wrote:
  Include the port number in your request -- ie 
http://ipaddress:8080/login.html


--David

Teh Noranis Mohd Aris wrote:
  

Dear All,

I've tested my applications using http://localhost:8080/login.html in the same computer 
and it works. However, when I tried to acces my applications using an IP Address in 
another computer by typing http://ipaddress/login.html, The page cannot be 
found is displayed. How can I access my applications using IP address? Please help 
me. Thank you.

Yours Sincerely,
TEH 



-
Give spam the boot. Take control with tough spam protection
in the all-new Yahoo! Mail Beta.





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos  more. 
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cannot Access Tomcat Server Using IP Address

2007-05-20 Thread Teh Noranis Mohd Aris
Yes, I can access the login.html interface from a different computer using 
http://IPaddress:8080/login.html but when I tried to access a file, I got the 
mentioned problem displayed in the text area. However, I can access a file if 
I'm using http://localhost:8080/login.html. I'm testing using Windows XP. What 
should I do? Thank you.
   
  TEH 

Omar Eljumaily [EMAIL PROTECTED] wrote:
  I don't understand. Are you able to access login.html from outside your 
server machine? 

The socketpermerission problem you have sounds like a firewall issue or 
a administrator privileges problem not allowing you to accept incoming 
sockets. Are you running with administrator privs on XP?

XP and Linux deal with firewalls and permissions differently. Linux is 
a bit more straight forward in my opinion. You just accept queries on 
8080 and then redirect port 80 if you want to resolve static pages. 
SELinux can be an issue, but is usually simple to solve by tweaking a 
setting.

Teh Noranis Mohd Aris wrote:
 Thank you. It's working now, the application can be accessed but when I type 
 a file name to access a file in the server, I got an error 
 java.security.AccessControlException:access denied 
 (java.net.SocketPermission localhost:8080 connect, resolve). How can I solve 
 this problem? For your information, I'm now using Windows XP Operating System 
 but I plan to use Linux Fedora Operaing System later. Is there a difference 
 in accessing the application using different operating system? Thank you.
 
 Yours Sincerely,
 TEH

 David Smith wrote:
 Include the port number in your request -- ie 
 http://ipaddress:8080/login.html

 --David

 Teh Noranis Mohd Aris wrote:
 
 Dear All,

 I've tested my applications using http://localhost:8080/login.html in the 
 same computer and it works. However, when I tried to acces my applications 
 using an IP Address in another computer by typing 
 http://ipaddress/login.html, The page cannot be found is displayed. How 
 can I access my applications using IP address? Please help me. Thank you.

 Yours Sincerely,
 TEH 


 -
 Give spam the boot. Take control with tough spam protection
 in the all-new Yahoo! Mail Beta.

 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 
 -
 Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, 
 news, photos  more. 
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 
-
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.

hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-20 Thread Peter

hi all,

I have come into a very wired problem.

here it is.
my project using JBuilder 2006 and tomcat 5.5.20.
when i put a 0 into a list and get 1 as a result.
simple code for testing!

List alist =new ArrayList();
alist.add(0);  put 0 into it
alist.get(0);   get 1 as result.

it occurs when i using JBuilder2006 to complie it and run under tomcat
5.5.20.
i choose Jbuilder 2006 builder property: language features ( java 2
SDK V5.0generic enable) ; target VM  java 2 SDK
V5.0 and later

but if i choose target VM   target VM  java 2 SDK V1.4 and later   it works
fine, put 0 get 0.
and if i donot run under the tomcat it still fine

so i create another small  project, in a jsp only doing  List alist =new
ArrayList();
alist.add(0);  alist.get(0);
and it works fine as well under the same tomcat.


i wonder what happens here?
my project using many other jar file , i wonder if there is  something
wrong there.
does anyone has a idea?

thanks in advanced!