You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by mukesh <mu...@hungama.com> on 2005/12/26 12:59:26 UTC

Method returning null

Hi all,

 

            I have deployed a web service on my tomcat 5.5.12 running on
linux7.0.  I am using axis 1.3.

 

            I am trying to call a function which returns an integer but I am
getting "null" always.

 

            Why so? Please advice what could be the problem?

 

Regards,

Mukesh Kumar

 


Tomcat avoid some headers

Posted by Borja Bravo Alférez <bo...@dat.etsit.upm.es>.
Dear list,

 	I have just discovered an unusual behaviour in Tomcat4. In a JSP 
like:

<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Coche-Control","no-coche"); 
%>

The second header will be sent but no the fisrt. I seems to be a feature, 
not a bug. There is an option called "disableProxyCaching" but I can't 
find the way to change it's value in the config files. May be it is too 
obvious but could you please show me how can I set it to false. On the 
other hand, may be there is a convenient way of reloading a page every 
time a user press the back button.

Thanks in advance and reggards,

 	Borja Bravo




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Connection refused

Posted by Dakota Jack <da...@gmail.com>.
You need to give the details of your code.  The issues are not related to
Tomcat.



On 12/27/05, mukesh <mu...@hungama.com> wrote:
>
> Hi pulkit,
>         1)      Well I can access http://<server>/axis/   page
>         2)      well I am connection using stubs generated by AXIS
> (WSDL2Java)
>         3)       ??
>
>         4) I am getting "nested exception is: java.net.ConnectException:
> Connection refused"
>
> Regards,
> Mukesh
>
>
>
> -----Original Message-----
> From: Pulkit Singhal [mailto:pulkitsinghal@gmail.com]
> Sent: Tuesday, December 27, 2005 2:52 AM
> To: Tomcat Users List
> Subject: Re: Connection refused
>
> Hi Mukesh,
>
> 1) Do you have any way of making sure that whatever it is that you are
> trying to connect to is actually up and running and accepting connections?
> 2) If so, then are you sure that the details you use to make the actual
> connection...are correct?
> 3) After your second post, I feel that maybe, this is more of a
> development
> related question and not really a Tomcat question. Am I right? Or am I
> missing your issue with Tomcat here?
> 4) Also, keep the details coming :)
>
> Cheers,
> - Pulkit
>
> On 12/26/05, mukesh <mu...@hungama.com> wrote:
> >
> > Hi friends,
> >         I have found the cause of the error, in fact function is never
> > gets
> > called. Its throwing an error "nested exception is:
> > java.net.ConnectException: Connection refused"
> >
> >
> > Code is like this
> >
> > Try
> > {
> >         //calling function here
> > }catch(Exception e)
> > {
> >         out.println(e.getMessage());
> > }
> >
> > In fact I have connected tomcat 5.5.12 to apache2.0 via mod_jk.
> >
> > Outpus is "nested exception is: java.net.ConnectException: Connection
> > refused"
> >
> > Please suugest the solution.
> >
> > Kind regards
> > Mukesh Kumar
> >
> >
> > -----Original Message-----
> > From: mukesh [mailto:mukesh@hungama.com]
> > Sent: Monday, December 26, 2005 5:29 PM
> > To: 'Tomcat Users List'
> > Subject: Method returning null
> >
> > Hi all,
> >
> >
> >
> >             I have deployed a web service on my tomcat 5.5.12 running on
> > linux7.0.  I am using axis 1.3.
> >
> >
> >
> >             I am trying to call a function which returns an integer but
> I
> > am
> > getting "null" always.
> >
> >
> >
> >             Why so? Please advice what could be the problem?
> >
> >
> >
> > Regards,
> >
> > Mukesh Kumar
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


--
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

RE: Connection refused

Posted by mukesh <mu...@hungama.com>.
Hi pulkit,
	1)	Well I can access http://<server>/axis/   page
	2)	well I am connection using stubs generated by AXIS
(WSDL2Java)
	3) 	 ??

	4) I am getting "nested exception is: java.net.ConnectException:
Connection refused"

Regards,
Mukesh



-----Original Message-----
From: Pulkit Singhal [mailto:pulkitsinghal@gmail.com] 
Sent: Tuesday, December 27, 2005 2:52 AM
To: Tomcat Users List
Subject: Re: Connection refused

Hi Mukesh,

1) Do you have any way of making sure that whatever it is that you are
trying to connect to is actually up and running and accepting connections?
2) If so, then are you sure that the details you use to make the actual
connection...are correct?
3) After your second post, I feel that maybe, this is more of a development
related question and not really a Tomcat question. Am I right? Or am I
missing your issue with Tomcat here?
4) Also, keep the details coming :)

Cheers,
- Pulkit

On 12/26/05, mukesh <mu...@hungama.com> wrote:
>
> Hi friends,
>         I have found the cause of the error, in fact function is never
> gets
> called. Its throwing an error "nested exception is:
> java.net.ConnectException: Connection refused"
>
>
> Code is like this
>
> Try
> {
>         //calling function here
> }catch(Exception e)
> {
>         out.println(e.getMessage());
> }
>
> In fact I have connected tomcat 5.5.12 to apache2.0 via mod_jk.
>
> Outpus is "nested exception is: java.net.ConnectException: Connection
> refused"
>
> Please suugest the solution.
>
> Kind regards
> Mukesh Kumar
>
>
> -----Original Message-----
> From: mukesh [mailto:mukesh@hungama.com]
> Sent: Monday, December 26, 2005 5:29 PM
> To: 'Tomcat Users List'
> Subject: Method returning null
>
> Hi all,
>
>
>
>             I have deployed a web service on my tomcat 5.5.12 running on
> linux7.0.  I am using axis 1.3.
>
>
>
>             I am trying to call a function which returns an integer but I
> am
> getting "null" always.
>
>
>
>             Why so? Please advice what could be the problem?
>
>
>
> Regards,
>
> Mukesh Kumar
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Connection refused

Posted by Pulkit Singhal <pu...@gmail.com>.
Hi Mukesh,

1) Do you have any way of making sure that whatever it is that you are
trying to connect to is actually up and running and accepting connections?
2) If so, then are you sure that the details you use to make the actual
connection...are correct?
3) After your second post, I feel that maybe, this is more of a development
related question and not really a Tomcat question. Am I right? Or am I
missing your issue with Tomcat here?
4) Also, keep the details coming :)

Cheers,
- Pulkit

On 12/26/05, mukesh <mu...@hungama.com> wrote:
>
> Hi friends,
>         I have found the cause of the error, in fact function is never
> gets
> called. Its throwing an error "nested exception is:
> java.net.ConnectException: Connection refused"
>
>
> Code is like this
>
> Try
> {
>         //calling function here
> }catch(Exception e)
> {
>         out.println(e.getMessage());
> }
>
> In fact I have connected tomcat 5.5.12 to apache2.0 via mod_jk.
>
> Outpus is "nested exception is: java.net.ConnectException: Connection
> refused"
>
> Please suugest the solution.
>
> Kind regards
> Mukesh Kumar
>
>
> -----Original Message-----
> From: mukesh [mailto:mukesh@hungama.com]
> Sent: Monday, December 26, 2005 5:29 PM
> To: 'Tomcat Users List'
> Subject: Method returning null
>
> Hi all,
>
>
>
>             I have deployed a web service on my tomcat 5.5.12 running on
> linux7.0.  I am using axis 1.3.
>
>
>
>             I am trying to call a function which returns an integer but I
> am
> getting "null" always.
>
>
>
>             Why so? Please advice what could be the problem?
>
>
>
> Regards,
>
> Mukesh Kumar
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Connection refused

Posted by mukesh <mu...@hungama.com>.
Hi friends,
	I have found the cause of the error, in fact function is never gets
called. Its throwing an error "nested exception is:
java.net.ConnectException: Connection refused"


Code is like this

Try
{
	//calling function here
}catch(Exception e)
{
	out.println(e.getMessage());
}

In fact I have connected tomcat 5.5.12 to apache2.0 via mod_jk.

Outpus is "nested exception is: java.net.ConnectException: Connection
refused"

Please suugest the solution.

Kind regards
Mukesh Kumar


-----Original Message-----
From: mukesh [mailto:mukesh@hungama.com] 
Sent: Monday, December 26, 2005 5:29 PM
To: 'Tomcat Users List'
Subject: Method returning null

Hi all,

 

            I have deployed a web service on my tomcat 5.5.12 running on
linux7.0.  I am using axis 1.3.

 

            I am trying to call a function which returns an integer but I am
getting "null" always.

 

            Why so? Please advice what could be the problem?

 

Regards,

Mukesh Kumar

 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org