RE: Running into NullPointerException when running Myfaces + tiles on WebSphere 6.0

2008-11-20 Thread Luhtala Santeri
Ah, that might be true.
We don't care about the RI jars so we just use server level custom classloader. 
But in Your case I don't really know what would help..

S

-Original Message-
From: Madhav Bhargava [mailto:[EMAIL PROTECTED]
Sent: 20. marraskuuta 2008 11:05
To: MyFaces Discussion
Subject: RE: Running into NullPointerException when running Myfaces + tiles on 
WebSphere 6.0

>>Have you tried to make a custom classloader and attach the Shared 
>>libraries(that >>contain the MyFafes jars) to that.
>>That was the only way I could make the WAS installation work. (WAS 6.1)

>>S

Even if you make a custom classloader, would it really help because eventually 
the websphere will follow the delegation model of parent first to load the Sun 
RI jars first and then it will hand over the control to the custom application 
class loader.

Unfortunately the parent_last option also does not work at the module level.

Thanks,
M

-Original Message-
From: Madhav Bhargava [mailto:[EMAIL PROTECTED]
Sent: 19. marraskuuta 2008 15:42
To: users@myfaces.apache.org
Subject: Running into NullPointerException when running Myfaces + tiles on 
WebSphere 6.0

Hi All,

I am using Myfaces 1.1.5, tomahawk 1.1.5, struts-tiles, ajax4jsf on Websphere 
6.0 and i am running into an exception (stack trace is attached with this mail)

I have already gone through the link 
http://wiki.apache.org/myfaces/Websphere_Installation and done loads of 
googling but nothing seems to resolve the problem.

Setting PARENT_LAST on Class Loader option at MODULE level does not solve the 
problem. Webshere still picks up the Sun RI jars (jsf-api.jar and ws-jsf.jar) 
that are bundled along with Websphere 6.0.

We cannot remove these jars because we have a shared production environment and 
there are other applications that are using the RI implementation instead of 
myfaces.

Any suggestions would greatly be appreciated. It is too late in the project too 
move to facelets :(.
If this problem cannot be solved then please suggest some alternate templating 
frameworks which will work well with JSF.

Regards,
Madhav


 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are 
not
to copy, disclose, or distribute this e-mail or its contents to any other 
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken
every reasonable precaution to minimize this risk, but is not liable for any 
damage
you may sustain as a result of any virus in this e-mail. You should carry out 
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this 
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


RE: Running into NullPointerException when running Myfaces + tiles on WebSphere 6.0

2008-11-20 Thread Madhav Bhargava
>>Have you tried to make a custom classloader and attach the Shared 
>>libraries(that >>contain the MyFafes jars) to that.
>>That was the only way I could make the WAS installation work. (WAS 6.1)

>>S

Even if you make a custom classloader, would it really help because eventually 
the websphere will follow the delegation model of parent first to load the Sun 
RI jars first and then it will hand over the control to the custom application 
class loader.

Unfortunately the parent_last option also does not work at the module level.

Thanks,
M

-Original Message-
From: Madhav Bhargava [mailto:[EMAIL PROTECTED]
Sent: 19. marraskuuta 2008 15:42
To: users@myfaces.apache.org
Subject: Running into NullPointerException when running Myfaces + tiles on 
WebSphere 6.0

Hi All,

I am using Myfaces 1.1.5, tomahawk 1.1.5, struts-tiles, ajax4jsf on Websphere 
6.0 and i am running into an exception (stack trace is attached with this mail)

I have already gone through the link 
http://wiki.apache.org/myfaces/Websphere_Installation and done loads of 
googling but nothing seems to resolve the problem.

Setting PARENT_LAST on Class Loader option at MODULE level does not solve the 
problem. Webshere still picks up the Sun RI jars (jsf-api.jar and ws-jsf.jar) 
that are bundled along with Websphere 6.0.

We cannot remove these jars because we have a shared production environment and 
there are other applications that are using the RI implementation instead of 
myfaces.

Any suggestions would greatly be appreciated. It is too late in the project too 
move to facelets :(.
If this problem cannot be solved then please suggest some alternate templating 
frameworks which will work well with JSF.

Regards,
Madhav


 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are 
not
to copy, disclose, or distribute this e-mail or its contents to any other 
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken
every reasonable precaution to minimize this risk, but is not liable for any 
damage
you may sustain as a result of any virus in this e-mail. You should carry out 
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this 
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


RE: Running into NullPointerException when running Myfaces + tiles on WebSphere 6.0

2008-11-20 Thread McCrady, Paul (ITTD Retail Stores)
Here is our python setup, it may give you something to go on as it works
for us, maybe you don't have the war classloader as single?

classloaderForApplication = "PARENT_FIRST"
classloaderForWebModules = "PARENT_FIRST"
classloaderForSharedLibrary = "PARENT_FIRST"
classloaderPolicyForWar = "SINGLE"
startingWeightForWebModule = "1" # Default
for all Modules, overridden below
startingWeightForEjbModule = "5000"   # Default
for all Modules, overridden below

webModuleClassloaderURI_1 = "mywebapp.war"
webModuleClassloaderPolicy_1 = "PARENT_LAST"
webModuleStartingWeight_1 = "1"

-Original Message-
From: Luhtala Santeri [mailto:[EMAIL PROTECTED] 
Sent: 20 November 2008 08:33
To: MyFaces Discussion
Subject: RE: Running into NullPointerException when running Myfaces +
tiles on WebSphere 6.0

Have you tried to make a custom classloader and attach the Shared
libraries(that contain the MyFafes jars) to that.
That was the only way I could make the WAS installation work. (WAS 6.1)

S

-Original Message-
From: Madhav Bhargava [mailto:[EMAIL PROTECTED]
Sent: 19. marraskuuta 2008 15:42
To: users@myfaces.apache.org
Subject: Running into NullPointerException when running Myfaces + tiles
on WebSphere 6.0

Hi All,

I am using Myfaces 1.1.5, tomahawk 1.1.5, struts-tiles, ajax4jsf on
Websphere 6.0 and i am running into an exception (stack trace is
attached with this mail)

I have already gone through the link
http://wiki.apache.org/myfaces/Websphere_Installation and done loads of
googling but nothing seems to resolve the problem.

Setting PARENT_LAST on Class Loader option at MODULE level does not
solve the problem. Webshere still picks up the Sun RI jars (jsf-api.jar
and ws-jsf.jar) that are bundled along with Websphere 6.0.

We cannot remove these jars because we have a shared production
environment and there are other applications that are using the RI
implementation instead of myfaces.

Any suggestions would greatly be appreciated. It is too late in the
project too move to facelets :(.
If this problem cannot be solved then please suggest some alternate
templating frameworks which will work well with JSF.

Regards,
Madhav


 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
solely
for the use of the addressee(s). If you are not the intended recipient,
please
notify the sender by e-mail and delete the original message. Further,
you are not
to copy, disclose, or distribute this e-mail or its contents to any
other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys
has taken
every reasonable precaution to minimize this risk, but is not liable for
any damage
you may sustain as a result of any virus in this e-mail. You should
carry out your
own virus checks before opening the e-mail or attachment. Infosys
reserves the
right to monitor and review the content of all messages sent to or from
this e-mail
address. Messages sent to or from this e-mail address may be stored on
the
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


This e-mail is only for the above addressees.  It may contain confidential or 
privileged information.  If you are not an addressee you must not copy, 
distribute, disclose or use any of the information in it or any attachments.  
If you have received it in error please notify the sender and delete it 
immediately.

Lloyds TSB Bank plc.  Registered Office: 25 Gresham Street, London EC2V 7HN.  
Registered in England and Wales, number 2065.  Telephone: 020 7626 1500.
Lloyds TSB Scotland plc.  Registered Office: Henry Duncan House, 120 George 
Street, Edinburgh EH2 4LH.  Registered in Scotland, number 95237.  Telephone: 
0131 225 4555.
Cheltenham & Gloucester plc.  Registered Office: Barnett Way, Gloucester GL4 
3RL.  Registered in England and Wales, number 2299428.  Telephone: 01452 372372.
Cheltenham & Gloucester Savings is a division of Lloyds TSB Bank plc.

Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham & Gloucester plc 
are authorised and regulated by the Financial Services Authority.  

Lloyds TSB Group plc.  Registered Office: Henry Duncan House, 120 George 
Street, Edinburgh EH2 4LH.  Registered in Scotland, number 95000.  Telephone: 
0131 225 4555.
Lloyds TSB Group plc is a signatory to the Banking Codes.

Telephone calls may be monitored or recorded.



RE: Running into NullPointerException when running Myfaces + tiles on WebSphere 6.0

2008-11-20 Thread Luhtala Santeri
Have you tried to make a custom classloader and attach the Shared 
libraries(that contain the MyFafes jars) to that.
That was the only way I could make the WAS installation work. (WAS 6.1)

S

-Original Message-
From: Madhav Bhargava [mailto:[EMAIL PROTECTED]
Sent: 19. marraskuuta 2008 15:42
To: users@myfaces.apache.org
Subject: Running into NullPointerException when running Myfaces + tiles on 
WebSphere 6.0

Hi All,

I am using Myfaces 1.1.5, tomahawk 1.1.5, struts-tiles, ajax4jsf on Websphere 
6.0 and i am running into an exception (stack trace is attached with this mail)

I have already gone through the link 
http://wiki.apache.org/myfaces/Websphere_Installation and done loads of 
googling but nothing seems to resolve the problem.

Setting PARENT_LAST on Class Loader option at MODULE level does not solve the 
problem. Webshere still picks up the Sun RI jars (jsf-api.jar and ws-jsf.jar) 
that are bundled along with Websphere 6.0.

We cannot remove these jars because we have a shared production environment and 
there are other applications that are using the RI implementation instead of 
myfaces.

Any suggestions would greatly be appreciated. It is too late in the project too 
move to facelets :(.
If this problem cannot be solved then please suggest some alternate templating 
frameworks which will work well with JSF.

Regards,
Madhav


 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are 
not
to copy, disclose, or distribute this e-mail or its contents to any other 
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken
every reasonable precaution to minimize this risk, but is not liable for any 
damage
you may sustain as a result of any virus in this e-mail. You should carry out 
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this 
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


Re: Running into NullPointerException when running Myfaces + tiles on WebSphere 6.0

2008-11-19 Thread Madhav Bhargava
Hi Johannes,

If you read the article again you will notice that there are 2 sections -

One section contains the steps for making myfaces work after removing the
Sun RI jar files and using Parent First.
The other section contains the steps for making myfaces work without
removing Sun RI jar files and then using Parent Last.

As i have mentioned earlier on that option of removing the Sun RI jar files
is not an option as we have a shared production environment and therefore we
cannot go for option one.

thanks,
M

On Wed, Nov 19, 2008 at 9:15 PM, jhomuth <[EMAIL PROTECTED]>wrote:

> Hi Madhav,
>
> I don't know if I understand you wrong or you have make a mistake by
> reading the guide.
> There is provided you should use PARENT_FIRST and not PARENT_LAST
> (Websphere 6.0) as you have written. Or did you mean
> you used PARENT_LAST instead of PARENT_FIRST, and that didn't solve the
> problem??? If yes, then forget my mail!!
>
> - J
>
>
> Madhav Bhargava wrote:
>
>> Hi All,
>>
>> I am using Myfaces 1.1.5, tomahawk 1.1.5, struts-tiles, ajax4jsf on
>> Websphere 6.0 and i am running into an exception (stack trace is attached
>> with this mail)
>>
>> I have already gone through the link
>> http://wiki.apache.org/myfaces/Websphere_Installation and done loads of
>> googling but nothing seems to resolve the problem.
>>
>> Setting PARENT_LAST on Class Loader option at MODULE level does not solve
>> the problem. Webshere still picks up the Sun RI jars (jsf-api.jar and
>> ws-jsf.jar) that are bundled along with Websphere 6.0.
>>
>> We cannot remove these jars because we have a shared production
>> environment and there are other applications that are using the RI
>> implementation instead of myfaces.
>>
>> Any suggestions would greatly be appreciated. It is too late in the
>> project too move to facelets :(.
>> If this problem cannot be solved then please suggest some alternate
>> templating frameworks which will work well with JSF.
>>
>> Regards,
>> Madhav
>>
>>
>>  CAUTION - Disclaimer *
>> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
>> solely for the use of the addressee(s). If you are not the intended
>> recipient, please notify the sender by e-mail and delete the original
>> message. Further, you are not to copy, disclose, or distribute this e-mail
>> or its contents to any other person and any such actions are unlawful. This
>> e-mail may contain viruses. Infosys has taken every reasonable precaution to
>> minimize this risk, but is not liable for any damage you may sustain as a
>> result of any virus in this e-mail. You should carry out your own virus
>> checks before opening the e-mail or attachment. Infosys reserves the right
>> to monitor and review the content of all messages sent to or from this
>> e-mail address. Messages sent to or from this e-mail address may be stored
>> on the Infosys e-mail system.
>> ***INFOSYS End of Disclaimer INFOSYS***
>>
>>
>
>
> --
> Johannes Homuth
>
> ---
> SOURCEPARK Gesellschaft
> für Softwareentwicklung mbH
>
> Johannes Homuth
> Helmholtzstr. 2-9 Gebäude M
> 10587 Berlin  Tel:+49 (0)30/398 068 316
> Fax:+49 (0)30/398 068 39
> e-mail: [EMAIL PROTECTED]
> www:www.sourcepark.de
> ---
> Sitz der Gesellschaft: Berlin
> Handelsregister: Amtsgericht Berlin-Charlottenburg, HRB 80254
> Geschäftsführer: Matthias Barmeier, Harald Dürr
> ---
> Diese E-Mail kann vertrauliche und/oder rechtlich geschützte
> Informationen enthalten. Wenn Sie nicht der richtige Adressat
> sind oder diese E-Mail irrtümlich erhalten haben, informieren
> Sie bitte sofort den Absender und vernichten Sie diese E-Mail.
> Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
> E-Mail ist nicht gestattet.
>



-- 
When I tell the truth, it is not for the sake of convincing those who do not
know it, but for the sake of defending those that do


Re: Running into NullPointerException when running Myfaces + tiles on WebSphere 6.0

2008-11-19 Thread jhomuth

Hi Madhav,

I don't know if I understand you wrong or you have make a mistake by 
reading the guide.
There is provided you should use PARENT_FIRST and not PARENT_LAST 
(Websphere 6.0) as you have written. Or did you mean
you used PARENT_LAST instead of PARENT_FIRST, and that didn't solve the 
problem??? If yes, then forget my mail!!


- J

Madhav Bhargava wrote:

Hi All,

I am using Myfaces 1.1.5, tomahawk 1.1.5, struts-tiles, ajax4jsf on Websphere 
6.0 and i am running into an exception (stack trace is attached with this mail)

I have already gone through the link 
http://wiki.apache.org/myfaces/Websphere_Installation and done loads of 
googling but nothing seems to resolve the problem.

Setting PARENT_LAST on Class Loader option at MODULE level does not solve the 
problem. Webshere still picks up the Sun RI jars (jsf-api.jar and ws-jsf.jar) 
that are bundled along with Websphere 6.0.

We cannot remove these jars because we have a shared production environment and 
there are other applications that are using the RI implementation instead of 
myfaces.

Any suggestions would greatly be appreciated. It is too late in the project too 
move to facelets :(.
If this problem cannot be solved then please suggest some alternate templating 
frameworks which will work well with JSF.

Regards,
Madhav


 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.

***INFOSYS End of Disclaimer INFOSYS***
  



--
Johannes Homuth

---
SOURCEPARK Gesellschaft
für Softwareentwicklung mbH

Johannes Homuth
Helmholtzstr. 2-9 Gebäude M
10587 Berlin  
Tel:+49 (0)30/398 068 316

Fax:+49 (0)30/398 068 39
e-mail: [EMAIL PROTECTED]
www:www.sourcepark.de
---
Sitz der Gesellschaft: Berlin
Handelsregister: Amtsgericht Berlin-Charlottenburg, HRB 80254
Geschäftsführer: Matthias Barmeier, Harald Dürr
---
Diese E-Mail kann vertrauliche und/oder rechtlich geschützte
Informationen enthalten. Wenn Sie nicht der richtige Adressat
sind oder diese E-Mail irrtümlich erhalten haben, informieren
Sie bitte sofort den Absender und vernichten Sie diese E-Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
E-Mail ist nicht gestattet. 



Running into NullPointerException when running Myfaces + tiles on WebSphere 6.0

2008-11-19 Thread Madhav Bhargava
Hi All,

I am using Myfaces 1.1.5, tomahawk 1.1.5, struts-tiles, ajax4jsf on Websphere 
6.0 and i am running into an exception (stack trace is attached with this mail)

I have already gone through the link 
http://wiki.apache.org/myfaces/Websphere_Installation and done loads of 
googling but nothing seems to resolve the problem.

Setting PARENT_LAST on Class Loader option at MODULE level does not solve the 
problem. Webshere still picks up the Sun RI jars (jsf-api.jar and ws-jsf.jar) 
that are bundled along with Websphere 6.0.

We cannot remove these jars because we have a shared production environment and 
there are other applications that are using the RI implementation instead of 
myfaces.

Any suggestions would greatly be appreciated. It is too late in the project too 
move to facelets :(.
If this problem cannot be solved then please suggest some alternate templating 
frameworks which will work well with JSF.

Regards,
Madhav


 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***
[11/19/08 16:05:38:214 IST] 005e ServletWrappe E   SRVE0068E: Could not 
invoke the service() method on servlet Faces Servlet. Exception thrown : 
java.lang.NullPointerException
at 
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1032)
at 
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at 
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at 
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at 
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at 
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at 
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at 
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at 
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at 
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at 
org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:200)
at 
org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:270)
at 
org.ajax4jsf.framework.ajax.AjaxStateManager.restoreView(AjaxStateManager.java:83)
at 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:231)
at 
org.ajax4jsf.framework.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116)
at 
org.ajax4jsf.framework.ajax.AjaxViewHandler.restoreView(AjaxViewHandler.java:150)
at 
org.jenia.faces.template.handler.ViewHandler.restoreView(ViewHandler.java:263)
at 
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.restoreView(JspTilesViewHandlerImpl.java:323)
at 
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.restoreView(JspTilesViewHandlerImpl.java:323)
at 
org.ajax4jsf.framework.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116)
at 
org.ajax4jsf.framework.ajax.AjaxViewHandler.restoreView(AjaxViewHandler.java:150)
at 
org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:81)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1173)
at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFil