users@glassfish.java.net

Re: how to read init-param in Web Services

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Tue, 05 Sep 2006 18:03:28 -0700

Patel, Ronak (US SSA) wrote:

>What about reading initialization parameters from the web.xml file?
>
>
See if the following helps:

http://forums.java.net/jive/thread.jspa?forumID=46&threadID=13382&messageID=85825#85825

Jitu

>>From what I can see in the API, they deprecated some interface related
>to it with no replacements.
>
>Does this mean that I need to code up my own infrastructure to read in a
>configuration file in my Web Services until JAX-WS is updated with this
>feature?
>
>
>-----Original Message-----
>From: Jitendra.Kotamraju_at_Sun.COM [mailto:Jitendra.Kotamraju_at_Sun.COM]
>Sent: Thursday, August 31, 2006 1:20 PM
>To: users_at_glassfish.dev.java.net
>Subject: Re: how to read init-param in Web Services
>
>
>
>
>>Does the constructor of the Web Service have to be a no-arg default
>>constructor as well?
>>
>>
>>
>>
>Yes.
>
>Jitu
>
>
>
>>Ronak Patel
>>Software Engineer
>>BAE Systems CNIR
>>450 Pulaski Road
>>Greenlawn, NY 11740
>>(631) 262 - 8230
>>ronak.patel_at_baesystems.com
>>
>>-----Original Message-----
>>From: Jason Lee [mailto:lee_at_iecokc.com]
>>Sent: Wednesday, August 30, 2006 9:25 AM
>>To: users_at_glassfish.dev.java.net
>>Subject: RE: Re: Log4j is not logging
>>
>>Jan, I can try that, though I'm not relishing giving up XML. :) I have
>>run into problems with log4j's XML and validating parsers (for example,
>>I can't run my unit tests at the moment for that very reason), but if
>>the .properties solves that problem, then I'm all for it. I've
>>
>>
>attached
>
>
>>my (cmoplete, but very simple) log4j config. Thanks for the tip.
>>
>>-----
>>Jason Lee
>>Programmer/Analyst
>>http://www.iecokc.com
>>
>>
>>
>>
>>
>>
>>>-----Original Message-----
>>>From: Jan.Luehe_at_Sun.COM [mailto:Jan.Luehe_at_Sun.COM]
>>>Sent: Tuesday, August 29, 2006 9:17 PM
>>>To: users_at_glassfish.dev.java.net
>>>Subject: Re: Log4j is not logging
>>>
>>>Hi Jason,
>>>Can you send me your complete log4j.xml, including its
>>>DOCTYPE declaration?
>>>Do you see any errors in the server.log?
>>>
>>>When I tried using a log4j.xml config file, I saw this error
>>>in server.log:
>>>
>>> log4j:ERROR DOM element is - not a <log4j:configuration> element.
>>>
>>>I'll need to investigate.
>>>
>>>Using a log4j.properties works for me, though.
>>>
>>>Can you switch from using log4j.xml to using log4j.properties
>>>for the time being?
>>>
>>>Thanks,
>>>
>>>
>>>Jan
>>>
>>>
>>>
>>>
>>>
>>>
>>>>-----
>>>>Jason Lee
>>>>Programmer/Analyst
>>>>http://www.iecokc.com <http://www.iecokc.com/>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>>
>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>