[jboss-user] [JBossWS] - Certification issue when moved web service from war to ejb3

2009-07-15 Thread jaro777
Hello @,

  I have following  scenario:

We have war and ejb3 project deployed within ear. Web layer access .Net web 
service over ssl. Keystore/trustore is defined in 
Ear/War/WB-INF/jboss-wsse-client.xml. It works nice.

I want to move the logic which calls web service into ejb (and call the ejb in 
web layer). I moved jboss-wsse-client.xml into Ear/Ejb/META-INF and also 
corresponding keystore and trustore file + I refactored code.

Unfortunately I get No certificate found error when I try to access web 
service. Even there is no reference to jboss-wsse-client.xml file in server.log 
after refactoring - like it is ignored totally.

Any idea what is wrong?

Jboss: 4.2.3
WS: 
jbossws-3.0.1-native-2.0.4.GA (build=200803312
 044)

Thanks
jaro

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4243756#4243756

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243756
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - How to set response HTTP headers in serverResource

2008-12-03 Thread jaro777
Hello,

  I try to configure response header in service the resource of my portlet (new 
feature in 286). According to the spec ResourceResponse.setProperty should do 
it if invoked before ResourceResponse.setContentType - see example


  | public void serveResource(ResourceRequest request, ResourceResponse 
response) throws PortletException, IOException {
  | 
  |   response.setProperty(Pragma, public);
  |   response.setProperty(Expires, 0);
  |   response.setContentType(text/html);
  |   PrintWriter pw = response.getWriter();
  |   pw.write(Hello);
  | }
  | 

Unfortunately this does not work :(

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4194040#4194040

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4194040
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Portal event and ViewExpiredException

2008-11-24 Thread jaro777
Hello,

  I got following issue.

Environment: 
  jboss-portal-2.7.0.GA (bundled version) - JSF RI 1.2_08 and Jboss portlet 
bridge 1.0.0.B4

I have PortletA and PortletB - both are JSF portlets. PortletA publishes Event 
and PortletB processes it. Sometimes when event is triggered from PortletA, 
ViewExpiredException is thrown during restoring view of PortletB


  | Caused by: javax.faces.application.ViewExpiredException: 
viewId:/scsearch/scsearchdetail.jsp - View /scsearch/scsearchdetail.jsp could 
not be restored.
  | at 
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:186)
  | at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
  | at 
com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104)
  | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
  | at 
org.jboss.portletbridge.AjaxPortletBridge.execute(AjaxPortletBridge.java:587)
  | at 
org.jboss.portletbridge.AjaxPortletBridge.renderResponse(AjaxPortletBridge.java:441)
  | at 
org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:344)

As workaround this partly works (at least stack trace is not displayed though 
event is not processed) - add it to web.xml of PortletB's war

  | context-param
  | param-namecom.sun.faces.enableRestoreView11Compatibility/param-name 
  | param-valuetrue/param-value
  | 

Still not satisfied with solution I debug JSF and came to strange conclusion: 
JSF adds hidden field into form (there is form in both PortletA and PortletB 
underlying jsp page) like 


  | INPUT id=javax.faces.ViewState type=hidden 
name=javax.faces.ViewState value=j_id9 /  w
  | /context-param 
  | 

This values stores version of view stored in session for particular view. 
Problem is that the same version is used for both portlets - in case that 
PortletB does have such a version (e.g. html would like like)



  | INPUT id=javax.faces.ViewState type=hidden 
name=javax.faces.ViewState value=j_id8 /  w
  | /context-param 
  | 

than no view is found and ViewExpiredException is thrown.

Any idea how to solve this properly?

Thanks
Jaro

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4191811#4191811

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4191811
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user