[Beginners Corner] - Re: JBoss failed JNDI lookup without any error
by horunkoya
after following your suggestion, the below is the exception that was thrown:
| null
| java.lang.ClassCastException
| at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
| at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
| at com.janes.jf.action.LoginAction.process(LoginAction.java:52)
| at com.janes.jf.action.RequestAction.execute(RequestAction.java:21)
| at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
| at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
| at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
| at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at com.janes.jf.filter.LoginFilter.doFilter(LoginFilter.java:24)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.ClassCastException: $Proxy57
| at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993473#3993473
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993473
19 years, 7 months
[EJB 3.0] - The problem of
by bairaulinter
I have 3 entity beans, followings are the codes:
public class Product implements Serializable {
........
@ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "categoryID")
public Category getCategory() {
return category;
}
public void setCategory(Category cate) {
this.category = cate;
}
@ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "productOwner")
public User getUser() {
return user;
}
public void setUser(User u) {
this.user = u;
}
.......
}
=============================================
public class User implements Serializable{
.........
@OneToMany(mappedBy = "user", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
public Collection getProducts() {
return products;
}
public void setProducts(Collection pro) {
this.products = pro;
}
}
=============================================
public class Category implements Serializable {
..........
@OneToMany(mappedBy = "category", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@OrderBy(value = "productID ASC")
public Collection getProducts() {
return products;
}
public void setProducts(Collection pro) {
this.products = pro;
}
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Then, I want to insert a record into the database. First, the categoryID and userID have been in the database! categoryID and userID are the foreign key of table: Product!
I don't know how to do it! Can you help me?
Thank you!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993469#3993469
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993469
19 years, 7 months
[Security & JAAS/JBoss] - Cant get processManualLoginNotification() and getUserPrincip
by njw
I'm still struggling to figure out how to get SSO working and need some help please :-)
In a nutshell, I've written two web apps, one of which acts as a logon app and the other as a true application but the user from the logon app is not being propagated to the other app.
The logon app captures user and password details, then makes a call to processManualLoginNotification() as defined in the instructions on the WARConfiguration page in the Wiki (http://labs.jboss.com/wiki/WARConfiguration), in the section titled 'Instructions for web applications using their own authentication mechanism'.
After the call to processManualLoginNotification() it does a call to getUserPrincipal() and gets back the same user as was used to log on so that part appears to be working.
However, when I go into my second app and do a getUserPrincipal() call it returns null, so my user details are not being passed between sessions and this is what I need help with.
I've looked inthe FAQ but havent really found anything I can use. I know nothing about JAAS but as we need to implement our own specific logon system (as per my earlier post http://www.jboss.com/index.html?module=bb&op=viewtopic&t=96617) I'm not sure how it would help us.
I've previously implemented a LogonProvider object as per the instructions on the IdentityManagement page in the wiki (http://labs.jboss.com/wiki/IdentityManagement ). It's being called on server startup (it writes to the logs), but it doesnt appear to do anything after that.
Both apps have a context.xml file in their WEB-INF folder which mirrors that of the one on the WARConfiguration page, and uses the same provider id as used in my sso.cfg.xml file
context.xml example
| <?xml version="1.0"?>
| <Context>
| <!--
| logoutURL - URL for performing logout/signout function in your application
| -->
| <Valve className="org.jboss.security.valve.PlainSSOAutoLogout"
| logoutURL="/nicklogoff/nicklogoff.htm"/>
|
| <!--
| assertingParty - this is the partnerId of this application as a part of a federation of multiple partner sites
| -->
| <Valve className="org.jboss.security.valve.PlainSSOTokenManager"
| assertingParty="nicktestapp"/>
|
| <!--
| tomcat built-in AuthenticationTypes: FORM,BASIC,DIGEST,CLIENT-CERT
| -->
| <Valve className="org.jboss.security.valve.PlainSSOAutoLogin"
| authType="FORM"
| provider="si:njw-sso:njw:login"
| />
| </Context>
|
sso.cfg.xml
| <?xml version='1.0' encoding='ISO-8859-1'?>
|
| <jboss-sso>
| <!--
| identity management related configuration, this is the LDAP based module
| Technically, this can be a provider that can integrate with thirdparty identity systems like SiteMinder etc
| -->
| <identity-management>
| <login>
| <provider id="si:njw-sso:njw:login" class="com.njw.NWLoginProvider">
| </provider>
| </login>
| <provisioning>
| </provisioning>
| </identity-management>
|
|
| <!-- sso processor for SingleSignOn, the default JBossSingleSignOn processor uses OpenSAML-1.0,
| the next version of this processor will use the latest SAML specification
| -->
| <sso-processor>
| <processor class="org.jboss.security.saml.JBossSingleSignOn">
| <property name="trustServer">http://a05300.vmoney.local:8080/federate/trust</property>
| </processor>
| </sso-processor>
| </jboss-sso>
|
I've also tried changing NWLoginProvider to extend ProvisioningProvider and added<provider id="si:njw-sso:njw:provisioning" class="com.njw.NWLoginProvider"> to the "provider" section of sso.cfg.xml but with no success, other than a few extra entries in the log file at startup.
The rest of this posting consists of examples from log files
My LoginProvider is being invoked when the server starts (I've also added some extra log.debug calls to SSOManager and PlainSSOAutoLogin to help me understand whats going on)
| 2006-12-13 15:34:34,471 DEBUG [org.jboss.system.ServiceCreator] About to create xmbean object: jboss.sso:service=SSOManager with code: org.jboss.security.saml.SSOManager with embedded descriptor
| 2006-12-13 15:34:34,627 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.sso:service=SSOManager
| 2006-12-13 15:34:34,627 DEBUG [org.jboss.system.ServiceConfigurator] conf set to conf/sso.cfg.xml in jboss.sso:service=SSOManager
| 2006-12-13 15:34:34,627 DEBUG [org.jboss.system.ServiceController] Creating service jboss.sso:service=IdentityManager
| 2006-12-13 15:34:34,627 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.sso:service=IdentityManager dependents are: []
| 2006-12-13 15:34:34,627 DEBUG [org.jboss.system.ServiceController] Creating service jboss.sso:service=SSOManager
| 2006-12-13 15:34:34,627 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.sso:service=SSOManager dependents are: []
| 2006-12-13 15:34:34,627 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying jboss-sso.sar
| 2006-12-13 15:34:34,627 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/jboss-4.0.5.GA/server/default/deploy/jboss-sso.sar/
| 2006-12-13 15:34:34,627 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/jboss-4.0.5.GA/server/default/deploy/jboss-sso.sar/NWFedSSO.jar
| 2006-12-13 15:34:34,627 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: NWFedSSO.jar
| (lots of begin and end deployment logs for the various jar files removed for clarity)
| 2006-12-13 15:34:34,643 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/C:/jboss-4.0.5.GA/server/default/deploy/jboss-sso.sar/
| 2006-12-13 15:34:34,643 DEBUG [org.jboss.system.ServiceController] starting service jboss.sso:service=IdentityManager
| 2006-12-13 15:34:34,721 DEBUG [com.njw.NWLoginProvider] Constructor 1 called
| 2006-12-13 15:34:34,721 DEBUG [com.njw.NWLoginProvider] setId() id=si:njw-sso:njw:login
| 2006-12-13 15:34:34,721 DEBUG [com.njw.NWLoginProvider] setProperties() properties={}
| [2006-12-13 15:34:34,721 DEBUG [com.njw.NWLoginProvider] getId() started - returning id="si:njw-sso:njw:login"
| 2006-12-13 15:34:34,721 DEBUG [com.njw.NWLoginProvider] getId() started - returning id="si:njw-sso:njw:login"
| 2006-12-13 15:34:34,721 DEBUG [com.njw.NWLoginProvider] getId() started - returning id="si:njw-sso:njw:login"
| 2006-12-13 15:34:34,721 INFO [org.jboss.security.idm.IdentityManager] Configuration successfully loaded for the IdentityManager...........
| 2006-12-13 15:34:34,721 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.sso:service=IdentityManager dependent components: []
| 2006-12-13 15:34:34,721 DEBUG [org.jboss.system.ServiceController] starting service jboss.sso:service=SSOManager
| 2006-12-13 15:34:34,783 INFO [org.jboss.security.saml.SSOManager] SSOProcessor org.jboss.security.saml.JBossSingleSignOn@be49e0 was successfully registered.....
| 2006-12-13 15:34:34,783 INFO [org.jboss.security.saml.SSOManager] SSOManager service successfully started...........
| 2006-12-13 15:34:34,783 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.sso:service=SSOManager dependent components: []
|
server log from my logon app
server started
| 2006-12-13 15:35:13,424 INFO [org.apache.jk.common.ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
| 2006-12-13 15:35:13,471 INFO [org.apache.jk.server.JkMain] Jk running ID=0 time=0/156 config=null
| 2006-12-13 15:35:13,518 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 47s:594ms
| open http://localhost:8080/njwsecurity
| 2006-12-13 15:41:33,507 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() started
| 2006-12-13 15:41:33,507 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() activeSession.getTurnOff()=null
| 2006-12-13 15:41:33,507 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() performSSO=true
| 2006-12-13 15:41:33,507 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] performSSO() started
| 2006-12-13 15:41:33,507 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] performSSO() ssoCookieFound=false
| 2006-12-13 15:41:33,507 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] performSSO() returning wasSSOPerformed=false
| 2006-12-13 15:41:33,507 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() wasSSOPerformed=false
| 2006-12-13 15:41:33,507 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] calling this.getNext().invoke(request,response)
| 2006-12-13 15:41:33,507 DEBUG [com.njw.onlinesecurity.filters.UserInputFilter] doFilter request /njwsecurity/
| 2006-12-13 15:41:33,523 DEBUG [com.njw.onlinesecurity.filters.CleanServletRequestWrapper] CleanServletRequestWrapper() finished
| 2006-12-13 15:41:33,804 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() called this.getNext().invoke(request,response)
| 2006-12-13 15:41:33,804 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() !wasSSOPerformed
| 2006-12-13 15:41:33,804 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() finished
| key in user and password, submit
| 2006-12-13 15:42:19,274 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() started
| 2006-12-13 15:42:19,274 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() activeSession.getTurnOff()=null
| 2006-12-13 15:42:19,274 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() performSSO=true
| 2006-12-13 15:42:19,274 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] performSSO() started
| 2006-12-13 15:42:19,274 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] performSSO() ssoCookieFound=false
| 2006-12-13 15:42:19,274 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] performSSO() returning wasSSOPerformed=false
| 2006-12-13 15:42:19,274 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() wasSSOPerformed=false
| 2006-12-13 15:42:19,274 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] calling this.getNext().invoke(request,response)
| 2006-12-13 15:42:19,274 DEBUG [com.njw.onlinesecurity.filters.UserInputFilter] doFilter request /njwsecurity/logon.do
| 2006-12-13 15:42:19,274 DEBUG [com.njw.onlinesecurity.filters.CleanServletRequestWrapper] CleanServletRequestWrapper() finished
| 2006-12-13 15:42:19,321 DEBUG [com.njw.onlinesecurity.filters.CleanServletRequestWrapper] getParameter org.apache.struts.taglib.html.CANCEL = null
| 2006-12-13 15:42:19,321 DEBUG [com.njw.onlinesecurity.filters.CleanServletRequestWrapper] getParameter org.apache.struts.taglib.html.CANCEL.x = null
| 2006-12-13 15:42:19,321 DEBUG [com.njw.onlinesecurity.presentation.forms.LogonForm] checking for errors
| 2006-12-13 15:42:19,352 DEBUG [com.njw.onlinesecurity.presentation.actions.LogonAction] ActionForward started
| 2006-12-13 15:42:19,352 DEBUG [com.njw.onlinesecurity.beans.LogonDetails] Created logon user=aaaaaaaaa
| 2006-12-13 15:42:19,352 DEBUG [com.njw.onlinesecurity.presentation.actions.LogonAction] ActionForward logonDetails=user=aaaaaaaaa
| 2006-12-13 15:42:19,367 DEBUG [com.njw.onlinesecurity.delegates.CustomerDelegate] CustomerDelegate() dao=com.njw.onlinesecurity.data.rdbms.RdbmsCustomerDAO@1590164
| 2006-12-13 15:42:19,367 DEBUG [com.njw.onlinesecurity.presentation.actions.LogonAction] ActionForward delegate=com.njw.onlinesecurity.delegates.CustomerDelegate@6a6484
| 2006-12-13 15:42:19,367 DEBUG [com.njw.onlinesecurity.data.rdbms.RdbmsCustomerDAO] Logon FUDGED - user=aaaaaaaaa
| 2006-12-13 15:42:19,383 DEBUG [com.njw.onlinesecurity.beans.Customer] Created customer user=aaaaaaaaa
| 2006-12-13 15:42:19,383 DEBUG [com.njw.onlinesecurity.presentation.actions.LogonAction] Customer details - user=aaaaaaaaa
| 2006-12-13 15:42:19,383 DEBUG [com.njw.onlinesecurity.presentation.actions.LogonAction] Saving as bean "customer"
| note call to processManualLoginNotification() and subsequent retrieval
| 2006-12-13 15:42:19,383 DEBUG [com.njw.onlinesecurity.presentation.actions.LogonAction] ActionForward calling org.jboss.security.saml.SSOManager.processManualLoginNotification
| 2006-12-13 15:42:19,383 DEBUG [org.jboss.security.saml.SSOManager] processManualLoginNotification() created ssoUser =org.jboss.security.saml.SSOUser@8edd79
| 2006-12-13 15:42:19,383 DEBUG [com.njw.onlinesecurity.presentation.actions.LogonAction] ActionForward called org.jboss.security.saml.SSOManager.processManualLoginNotification
| 2006-12-13 15:42:19,383 DEBUG [org.jboss.security.saml.SSOManager] getUserPrincipal() =org.jboss.security.saml.SSOUser@8edd79
| 2006-12-13 15:42:19,383 DEBUG [com.njw.onlinesecurity.presentation.actions.LogonAction] Principal (after logon) =aaaaaaaaa
| 2006-12-13 15:42:19,383 DEBUG [com.njw.onlinesecurity.presentation.actions.LogonAction] ssoUser = org.jboss.security.saml.SSOUser@8edd79
| 2006-12-13 15:42:19,602 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() called this.getNext().invoke(request,response)
| 2006-12-13 15:42:19,602 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() !wasSSOPerformed
| 2006-12-13 15:42:19,602 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() principal=aaaaaaaaa
| 2006-12-13 15:42:19,602 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() finished
|
server log from my second app
open http://localhost:8080/njwtest - note that PlainSSOAutoLogin is being invoked
| 2006-12-13 15:43:35,759 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() started
| 2006-12-13 15:43:35,759 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() activeSession.getTurnOff()=null
| 2006-12-13 15:43:35,759 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() performSSO=true
| 2006-12-13 15:43:35,759 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] performSSO() started
| 2006-12-13 15:43:35,759 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] performSSO() ssoCookieFound=false
| 2006-12-13 15:43:35,759 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] performSSO() returning wasSSOPerformed=false
| 2006-12-13 15:43:35,759 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() wasSSOPerformed=false
| 2006-12-13 15:43:35,759 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] calling this.getNext().invoke(request,response)
|
note that there is no Principal
2006-12-13 15:43:35,775 DEBUG [org.jboss.security.saml.SSOManager] getUserPrincipal() =null
| 2006-12-13 15:43:35,759 DEBUG [com.njw.nicktest.filters.UserInputFilter] doFilter request /nicktest/
| 2006-12-13 15:43:35,775 DEBUG [com.njw.nicktest.filters.UserInputFilter] Principal (filter) =null
| 2006-12-13 15:43:35,775 DEBUG [com.njw.nicktest.filters.UserInputFilter] ssoUser = null
| 2006-12-13 15:43:35,775 DEBUG [com.njw.nicktest.filters.UserInputFilter] NOT LOGGED ON
| 2006-12-13 15:43:35,775 DEBUG [com.njw.nicktest.filters.UserInputFilter] URI=/nicktest/
| 2006-12-13 15:43:35,775 DEBUG [com.njw.nicktest.filters.UserInputFilter] path=/nicktest
| 2006-12-13 15:43:35,775 DEBUG [com.njw.nicktest.filters.UserInputFilter] page=/not_logged_on.htm
| 2006-12-13 15:43:35,790 DEBUG [com.njw.nicktest.filters.CleanServletRequestWrapper] CleanServletRequestWrapper() finished
| 2006-12-13 15:43:36,025 DEBUG [org.jboss.web.tomcat.tc5.jasper.TagLibCache] Scanning for tlds
| in: file:/C:/jboss-4.0.5.GA/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/myfaces-impl.jar
| 2006-12-13 15:43:41,275 DEBUG [com.njw.nicktest.presentation.forms.CustomerDetailsForm] products=[, Motor, Travel, Pet]
| 2006-12-13 15:43:41,275 DEBUG [com.njw.nicktest.presentation.forms.CustomerDetailsForm] products=[, Motor, Travel, Pet]
| 2006-12-13 15:43:41,290 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() called this.getNext().invoke(request,response)
| 2006-12-13 15:43:41,290 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() !wasSSOPerformed
| 2006-12-13 15:43:41,290 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() finished
| 2006-12-13 15:44:23,353 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() started
| 2006-12-13 15:44:23,353 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() activeSession.getTurnOff()=null
| 2006-12-13 15:44:23,353 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() performSSO=true
| 2006-12-13 15:44:23,353 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] performSSO() started
| 2006-12-13 15:44:23,353 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] performSSO() ssoCookieFound=false
| 2006-12-13 15:44:23,353 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] performSSO() returning wasSSOPerformed=false
| 2006-12-13 15:44:23,353 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() wasSSOPerformed=false
| 2006-12-13 15:44:23,353 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] calling this.getNext().invoke(request,response)
| 2006-12-13 15:44:23,353 DEBUG [com.njw.nicktest.filters.UserInputFilter] doFilter request /nicktest/customerdetails.do
| 2006-12-13 15:44:23,353 DEBUG [org.jboss.security.saml.SSOManager] getUserPrincipal() =null
| 2006-12-13 15:44:23,353 DEBUG [com.njw.nicktest.filters.UserInputFilter] Principal (filter) =null
| 2006-12-13 15:44:23,353 DEBUG [com.njw.nicktest.filters.UserInputFilter] ssoUser = null
| 2006-12-13 15:44:23,353 DEBUG [com.njw.nicktest.filters.UserInputFilter] NOT LOGGED ON
| 2006-12-13 15:44:23,353 DEBUG [com.njw.nicktest.filters.UserInputFilter] URI=/nicktest/customerdetails.do
| 2006-12-13 15:44:23,353 DEBUG [com.njw.nicktest.filters.UserInputFilter] path=/nicktest
| 2006-12-13 15:44:23,353 DEBUG [com.njw.nicktest.filters.UserInputFilter] page=/not_logged_on.htm
| 2006-12-13 15:44:23,353 DEBUG [com.njw.nicktest.filters.CleanServletRequestWrapper] CleanServletRequestWrapper() finished
| 2006-12-13 15:44:23,385 DEBUG [com.njw.nicktest.filters.CleanServletRequestWrapper] getParameter org.apache.struts.taglib.html.CANCEL = null
| 2006-12-13 15:44:23,385 DEBUG [com.njw.nicktest.filters.CleanServletRequestWrapper] getParameter org.apache.struts.taglib.html.CANCEL.x = null
| 2006-12-13 15:44:23,400 DEBUG [com.njw.nicktest.presentation.forms.CustomerDetailsForm] checking for errors
| 2006-12-13 15:44:23,400 DEBUG [com.njw.nicktest.presentation.forms.CustomerDetailsForm] parsing dob string"11/12/1986"
| 2006-12-13 15:44:23,400 DEBUG [com.njw.nicktest.presentation.forms.CustomerDetailsForm] Forename="qwerty"
| Surname="uiop" Postcode="aa11aa" DOB="Thu Dec 11 00:00:00 GMT 1986" Product="Motor"
| 2006-12-13 15:44:23,400 DEBUG [com.njw.nicktest.presentation.forms.CustomerDetailsForm] errors={}
| 2006-12-13 15:44:23,416 DEBUG [com.njw.nicktest.presentation.actions.CustomerDetailsAction] ActionForward started
| 2006-12-13 15:44:23,416 DEBUG [org.jboss.security.saml.SSOManager] getUserPrincipal() =null
| 2006-12-13 15:44:23,416 DEBUG [com.njw.nicktest.presentation.actions.CustomerDetailsAction] Principal CustomerDetailsAction.execute() =null
| 2006-12-13 15:44:23,416 DEBUG [com.njw.nicktest.presentation.actions.CustomerDetailsAction] NOT LOGGED ON
| 2006-12-13 15:44:23,572 DEBUG [org.jboss.security.plugins.JaasSecurityManager.other] CallbackHandler: org.jboss.security.auth.callback.SecurityAssociationHandler@16b340a
| 2006-12-13 15:44:23,572 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager@125bbd3
| 2006-12-13 15:44:23,572 DEBUG [org.jboss.security.plugins.JaasSecurityManager.other] CachePolicy set to: org.jboss.util.TimedCachePolicy@4e37fb
| 2006-12-13 15:44:23,572 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy@4e37fb
| 2006-12-13 15:44:23,572 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Added other, org.jboss.security.plugins.SecurityDomainContext@13d556f to map
| 2006-12-13 15:44:23,572 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() called this.getNext().invoke(request,response)
| 2006-12-13 15:44:23,572 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() !wasSSOPerformed
| 2006-12-13 15:44:23,572 DEBUG [org.jboss.security.valve.PlainSSOAutoLogin] invoke() finished
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993468#3993468
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993468
19 years, 7 months
[Persistence, JBoss/CMP, Hibernate, Database] - Wrong behavior in my application, after setting transaction
by yair.zaslavsky
Hi all,
This is my datasources definition:
- <local-tx-datasource>
<jndi-name>AmsDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/ams_db</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>jboss</user-name>
password
<transaction-isolation>TRANSACTION_READ_UNCOMMITTED</transaction-isolation>
<min-pool-size>1</min-pool-size>
<max-pool-size>200</max-pool-size>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
-
<type-mapping>mySQL</type-mapping>
</local-tx-datasource>
As you can see, I set the transaction isolation level to READ_UNCOMMITED.
However, when I restart jboss, when I try to persist an entry from transaction A, and then , inside the transaction code to select the persisted entry, I get that the entry does not exist. Both insertion and selection are done using EntityManager.
I thought that using READ_UNCOMITTED means that I can read any uncommited changes made by any transaction.
Can anyone explain me what I'm doing wrong?
Thanks
Yair Zaslavsky
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993466#3993466
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993466
19 years, 7 months
[Remoting] - JBoss & Java 1.6 class loading issue?
by mouserSVK
Hello, I am using JBoss AS 4.0.4 / JBoss AS 4.0.5 and this problem occures on both while using JRE/JDK 1.6 on the client side.
I've got simple EJB3 and invoking its method like this:
// get the initial context
| Context ctx = new InitialContext();
| // find context of our interface
| Locator test = (Locator) ctx.lookup("LocatorBean/remote");
|
| // perform 'invoke()' method on bean itself
| GetCitiesRequest req = new GetCitiesRequest("Slovakia", "Bratislava");
| System.out.println(test.invoke(req));
Object that has 'String' class inside is returned. Logic of bean is performed successfully, but while the result is being returned back to client, following exception is thrown (there is only cause, real:
| java.lang.reflect.UndeclaredThrowableException
| at $Proxy0.invoke(Unknown Source)
| ..
| Caused by: java.lang.ClassNotFoundException: [Ljava.lang.String;
| at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50)
| at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:139)
| at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
| at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
| at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1624)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
| at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
| at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
| at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:107)
| at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
| at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
| at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
| at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
| at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
| at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
| at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
| at org.jboss.remoting.Client.invoke(Client.java:525)
| at org.jboss.remoting.Client.invoke(Client.java:488)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:41)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
| at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:40)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
| at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
| ... 2 more
|
Everything is fine when using Java 1.5 on client side. I've tried running the server both on Java 1.5 and 1.6. Results were the same.
Maybe there is problem in loading of class because of Java 1.6 runtime regression, as it is described here ?:
http://forums.java.net/jive/thread.jspa?threadID=15823
https://glassfish.dev.java.net/issues/show_bug.cgi?id=714
Similar problem is described here (I think it is the same one):
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988513[/url]
Anyone else experiencing this? Or can someone tell if this is bug in JBoss?
Thanks,
Mouser.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993457#3993457
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993457
19 years, 7 months
[Beginners Corner] - Re: JBoss failed JNDI lookup without any error
by horunkoya
Ok. I've managed to extract the error message and it is as follows:
$Proxy82
java.lang.ClassCastException: $Proxy82
at com.janes.jf.action.LoginAction.process(LoginAction.java:50)
at com.janes.jf.action.RequestAction.execute(RequestAction.java:21)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.janes.jf.filter.LoginFilter.doFilter(LoginFilter.java:24)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
The below is the code I am using to do the lookup
| InitialContext ic = new InitialContext();
| MAPDelegateHome mapHome = (MAPDelegateHome)ic.lookup("java:comp/env/ejb/MAPDelegate");
|
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993456#3993456
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993456
19 years, 7 months
[Security & JAAS/JBoss] - login module (sometimes) not called
by yararaca
I have got 4.0.4GA, using login form and a login module where I set certain attributes to session.
When I login for first time a login form is presented and my login module is called and everything is ok (note the [STDOUT] which comes from my login module code):
| 15:48:40,968 DEBUG [AuthenticatorBase] Security checking request POST /DemoWeb/j_security_check
| 15:48:40,968 DEBUG [FormAuthenticator] Authenticating username 'S941'
| 15:48:40,968 INFO [STDOUT] SetSessionDBLoginModule Setting attributes
| 15:48:41,077 DEBUG [FormAuthenticator] Authentication of 'S941' was successful
| 15:48:41,077 DEBUG [FormAuthenticator] Redirecting to original '/DemoWeb/home.jsf'
|
However, when I try to login for second time from another window or machine the login form is presented (ok), but my login module is not called (note no the [STDOUT] from my login module code):
| 15:51:06,931 DEBUG [AuthenticatorBase] Security checking request POST /DemoWeb/j_security_check
| 15:51:06,931 DEBUG [FormAuthenticator] Authenticating username 'S941'
| 15:51:06,947 DEBUG [FormAuthenticator] Authentication of 'S941' was successful
| 15:51:06,947 DEBUG [FormAuthenticator] Redirecting to original '/DemoWeb/home.jsf'
|
It looks like the authentication data is cached somewhere and the server thinks it doesn't need to authenticate the same user again. Which is wrong, because i need to set the attributes. Anybody has a clue why this happens?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993452#3993452
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993452
19 years, 7 months
[JBoss Seam] - Problem with DataModelSelection?
by jkrupka
I've run across a problem which I haven't been able to figure out thus far - I have a form displaying a record for updating, and underneath that form I have a datatable with the children records, which you can click on a button next to and bring them up in a form of their own. It all seems to work ok, but if there are multiple children in the list, no matter which one you click on it always injects the first one into the variable I have annotated with DataModelSelection. I know the backing List is correct, I have looked at it in debug, but I can't figure out why the wrong entity is being injected =/ I'm letting the List be populated by the entityManager, I have my associations set up and I just get the List that is the entityManager fetches.
The function which takes the selected entity and sets up the next form begins a nested conversation - this shouldn't matter right?
Has anyone seen anything like this before? Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993451#3993451
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993451
19 years, 7 months
[Tomcat, HTTPD, Servlets & JSP] - Re: Tomcat Clustering/JBossCacheService webapp path uniquene
by laurensvh
Hi brain,
Thanks for the quick reply!
Perhaps I was not clear enough with the context path, but the 'aaaa' is
part of the context path and not the hostname as you already figured.
(The real name is 'hypotheek', d.i. dutch for mortgage ;-))
I've tried both FIELD and ATTRIBUTE granularity (w/ and without the flags
you mentioned), but with the same results. Looking at the code, the type of
granularity does not really affects the handling of the context path I think(?)
At the moment I've added a line with:
webAppPath_ = webAppPath_.replace("/","_");
and everythings works fine, but I consider it more of a hack, than a real solution.
Regards,
Lau
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993450#3993450
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993450
19 years, 7 months
[Beginners Corner] - How to correctly work with Many to One relationships.
by henri_tudor
Hi...
In the scope of a project we're working on, we're sometimes running into trouble with One to Many relationships. We've found two working scenarios but can't realy figure out whether they are "principaly correct" or not.
Scenario 1
----------
Lets assume a table parent and a table child, knowing that many child records may reference a single parent. (BTW we're using Postgres)
CREATE TABLE parent
(
id SERIAL PRIMARY KEY,
name VARCHAR(128)
);
CREATE TABLE child
(
id SERIAL PRIMARY KEY,
parent_id INTEGER,
name VARCHAR(128)
);
ALTER TABLE child ADD CONSTRAINT fk_parent_id FOREIGN KEY (parent_id) REFERENCES parent(id) ON DELETE CASCADE;
In the parent Entity Bean, we have a property children, which is a collection, and which is mapped as follows:
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinColumn(name = "parent_id")
public Collection getChildren ()
{
return children;
}
In the Child Entity Bean, we have a parentId property of type Integer, which is mapped as follows:
@Column(name = "parent_id", updatable=false, insertable=false)
public Integer getParentId()
{
return parentId;
}
This scenario works fine as long as no NOT NULL constraints are being specified for the foreign key parent_id. It also fails as soon as the updatable and insertable attributes are removed from the child mapping.
The advantage of this scheme is:
We only have to add childs to the children collection an to perist the parent in order to store both the parent and the children. No need to previously set the parentId of the children.
Scenario 2
----------
Another scenario we have tried is as follows: Again the two tables (please note the addition NOT NULL constraint.
CREATE TABLE parent
(
id SERIAL PRIMARY KEY,
name VARCHAR(128)
);
CREATE TABLE child
(
id SERIAL PRIMARY KEY,
parent_id INTEGER NOT NULL,
name VARCHAR(128)
);
ALTER TABLE child ADD CONSTRAINT fk_parent_id FOREIGN KEY (parent_id) REFERENCES parent(id) ON DELETE CASCADE;
In the parent Entity Bean, we have a property children, which is a collection, and which is mapped as follows:
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinColumn(name = "parent_id")
public Collection getChildren ()
{
return children;
}
In the Child Entity Bean, we have a parent property of type Parent, which is mapped as follows:
@ManyToOne
@JoinColumn(name="parent_id")
public Parent getParent()
{
return parent;
}
Disadvantage of this solution is that we have to explicitly tell each child who his parent is.
Question
--------
1.) Both solution appear to fail when it comes to deleting children, though. In both cases we have to explicitely determine which children are no longer require and we have to remove them explicitely. Are there other ways of using One to Many relationships ?
2.) My guts tell me that the second scenario appears to be more "as intended by the inventor" or am I wrong ?
Many thanks in advance for your help...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993441#3993441
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993441
19 years, 7 months
[JBoss Seam] - Re: Fileupload
by mvinayam
"robinemig" wrote : Any chance this can be added to one of the demos? I'm still have problems getting it to work correctly.
hi robinemig,
I am facing the same prbolem of "javax.faces.el.EvaluationException: Cannot set value for expression '#{resultRow.uploadedFile}' to a new value of type org.apache.myfaces.custom.
fileupload.UploadedFileDefaultFileImpl" . I have a datatable within which I have the inputFileUpload & the value is binded with the DTO object. Here is my code. Any help is greatly Appreciated. Need this to be done asap.
| JSF
|
| <%@ taglib uri = "http://java.sun.com/jsf/html" prefix="h"%>
| <%@ taglib uri = "http://java.sun.com/jsf/core" prefix="f"%>
| <%@ taglib uri = "http://myfaces.apache.org/tomahawk" prefix = "t"%>
|
| <f:view>
| <f:verbatim>
| <html>
| <head>
| <title>Mailing Upload</title>
| <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/styleSheet/PzStyles.css">
| <script type="text/javascript" src="<%=request.getContextPath()%>/script/PzUtil.js"></script>
| <script type="text/javascript">
| function trim(field){
| field.value = Trim(field.value).toUpperCase();
| }
|
| function validateAndSetCounter(){
| var retValue = true;
| var elements = document.getElementsByTagName("input");
| for(i=0;i<elements.length;i++){
| if(elements.type=="file" && elements.id.indexOf("pdfFile")>=0 && elements.value.length<=0){
| alert("Select a PDF file to Print");
| elements.focus();
| retValue = false;
| break;
| }
| else if(elements.type=="file" && elements.id.indexOf("pdfFile")>=0 && elements.value.length>0 && elements.value.indexOf(".pdf")<0){
| alert("Invalid PDF file");
| retValue = false;
| break;
| }
| else if(elements.id.indexOf("rowCount")>=0){
| document.getElementById("mailingUpload:pdfCounter").value = elements.value;
| }
| }
| return retValue;
| }
| </script>
| </head>
| <body>
| </f:verbatim>
|
| <h:form id="mailingUpload" enctype="multipart/form-data">
| <h:panelGrid align="center" width="100%" columnClasses="c6Middle">
| <h:outputText styleClass="c7" value="Mailing Interface"/>
| </h:panelGrid>
| <f:verbatim>
| <fieldset class="c19" align="center">
| <legend style="c6">Mailing Upload</legend>
| </f:verbatim>
| <h:messages layout="table" globalOnly="true" styleClass="c3r" showSummary="false" showDetail="true"/>
| <h:panelGrid border="0" align="center" columns="2" width="100%" columnClasses="c6rt25, c6lt25">
| <h:outputText styleClass="c4r" value="* "/>
| <h:outputText value="Mandatory Fields"/>
|
| <h:outputText styleClass="c4r" value="** "/>
| <h:outputText value="Mandatory when Address Field is Selected"/>
|
| <h:panelGroup>
| <h:outputText styleClass="c4r" value="* "/>
| <h:outputText value="Description: "/>
| </h:panelGroup>
| <h:panelGroup>
| <h:inputText id="desc" styleClass="c12" value="#{MailingBacking.mailingDesc}" onchange="trim(this)" required="true">
| <f:attribute name="errMsg" value="Description"/>
| </h:inputText>
| <h:message for="desc" styleClass="c3r"/>
| </h:panelGroup>
|
| <h:panelGroup>
| <h:outputText styleClass="c4r" value="* "/>
| <h:outputText value="Total Quantity: "/>
| </h:panelGroup>
| <h:panelGroup>
| <h:inputText id="totQty" styleClass="c12" value="#{MailingBacking.totalQty}" onchange="trim(this)" required="true">
| <f:attribute name="errMsg" value="Total Quantity"/>
| </h:inputText>
| <h:message for="totQty" styleClass="c3r"/>
| </h:panelGroup>
|
| <h:panelGroup>
| <h:outputText styleClass="c4r" value="* "/>
| <h:outputText value="Item Type: "/>
| </h:panelGroup>
|
| <h:panelGroup>
| <h:selectOneMenu id="itemType" value="#{MailingBacking.itemTypeId}" styleClass="c12" required="true">
| <f:selectItem itemValue="" itemLabel="--Select--"/>
| <f:selectItems value="#{MailingBacking.itemTypeList}"/>
| <f:attribute name="errMsg" value="Item Type"/>
| </h:selectOneMenu>
| <h:message for="itemType" styleClass="c3r"/>
| </h:panelGroup>
|
| <h:panelGroup>
| <h:outputText value="Address File: "/>
| </h:panelGroup>
| <h:panelGroup>
| <t:inputFileUpload id="addressFile" styleClass="c12" value="#{MailingBacking.uploadedFile}" onchange="trim(this)" storage="file">
| <f:attribute name="errMsg" value="Address File"/>
| </t:inputFileUpload>
| <h:message for="addressFile" styleClass="c3r"/>
| </h:panelGroup>
|
| <h:panelGroup>
| <h:outputText styleClass="c4r" value="** "/>
| <h:outputText value="Group Number: "/>
| </h:panelGroup>
| <h:panelGroup>
| <h:inputText id="groupRef" styleClass="c12" value="#{MailingBacking.groupRef}" onchange="trim(this)">
| <f:attribute name="errMsg" value="Group Number"/>
| </h:inputText>
| <h:message for="groupRef" styleClass="c3r"/>
| </h:panelGroup>
| </h:panelGrid>
| <h:panelGrid align="center" columnClasses="c6Middle" width="100%">
| <t:dataTable id="pdfFiles" value="#{MailingBacking.pdfFileList}" renderedIfEmpty="false"
| headerClass="tableHeader" styleClass="tableStyle" align="center" var="resultRow" rowCountVar="rowCount">
| <t:column>
| <f:facet name="header">
| <h:outputText styleClass="c3" value=" PDF Print File "/>
| </f:facet>
| <t:inputFileUpload storage="file" id="pdfFile" styleClass="c12" value="#{resultRow.uploadedFile}" onchange="trim(this)" required="true"/>
| <h:inputHidden id="rowCount" value="#{rowCount}"/>
| </t:column>
| </t:dataTable>
| <h:inputHidden id="pdfCounter" value="#{MailingBacking.pdfCounter}"/>
| <h:commandButton id="addPdf" value="Add PDF Supplement" styleClass="c15" onclick="return validateAndSetCounter();" action="#{MailingBacking.addNewPdf}"/>
| </h:panelGrid>
| </h:form>
| <f:verbatim>
| </body>
| </html>
| </f:verbatim>
| </f:view>
|
| BackingBean
|
| package com.cci.pz.web.orderMgmt.mailing;
|
| import java.sql.Timestamp;
| import java.util.ArrayList;
| import java.util.Enumeration;
|
| import javax.faces.context.FacesContext;
| import javax.faces.model.SelectItem;
| import javax.naming.Context;
| import javax.naming.InitialContext;
| import javax.servlet.http.HttpServletRequest;
|
| import org.apache.myfaces.custom.fileupload.UploadedFile;
|
| import com.cci.pz.data.orderMgmt.mailing.PzMailingLineDTO;
| import com.cci.pz.entity.catalogMgmt.PzItemTypes;
| import com.cci.pz.session.catalogMgmt.PzItemTypeFacade;
| import com.cci.pz.web.login.PzUserObject;
|
| public class MailingBackingBean{
|
| private String addrFileNameIn;
| private Timestamp dueDate;
| private String groupRef;
| private String mailingDesc;
| private String fileNameIn;
| private Long itemTypeId;
| private Long totalQty;
| private Long lineQty;
| private Long pdfCounter = 0L;
| private ArrayList<PzMailingLineDTO> pdfFileList;
| private PzUserObject userSessionObj;
| private UploadedFile uploadedFile;
|
| PzItemTypeFacade itemTypeFacade;
|
| HttpServletRequest request = null;
|
| public MailingBackingBean()throws Exception{
| Context ctx = new InitialContext();
| itemTypeFacade = (PzItemTypeFacade)ctx.lookup(PzItemTypeFacade.class.getName());
| request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
| Enumeration ee = request.getParameterNames();
| while(ee.hasMoreElements()){
| String name = (String)ee.nextElement();
| if(name.indexOf("rowCount")>=0){
| String value = request.getParameter(name);
| System.out.println(name+":"+value);
| if(value!=null && value.length()>0){
| this.pdfCounter = Long.parseLong(value);
| }
| }
| }
|
| }
|
| public String getAddrFileNameIn() {
| return addrFileNameIn;
| }
|
| public void setAddrFileNameIn(String addrFileNameIn) {
| this.addrFileNameIn = addrFileNameIn;
| }
|
|
| public Timestamp getDueDate() {
| return dueDate;
| }
|
| public void setDueDate(Timestamp dueDate) {
| this.dueDate = dueDate;
| }
|
| public String getFileNameIn() {
| return fileNameIn;
| }
|
| public void setFileNameIn(String fileNameIn) {
| this.fileNameIn = fileNameIn;
| }
|
| public String getGroupRef() {
| return groupRef;
| }
|
| public void setGroupRef(String groupRef) {
| this.groupRef = groupRef;
| }
|
| public Long getItemTypeId() {
| return itemTypeId;
| }
|
| public void setItemTypeId(Long itemTypeId) {
| this.itemTypeId = itemTypeId;
| }
|
| public Long getLineQty() {
| return lineQty;
| }
|
| public void setLineQty(Long lineQty) {
| this.lineQty = lineQty;
| }
|
| public String getMailingDesc() {
| return mailingDesc;
| }
|
| public void setMailingDesc(String mailingDesc) {
| this.mailingDesc = mailingDesc;
| }
|
| public SelectItem[] getItemTypeList(){
| SelectItem[] selectItems = new SelectItem[]{};
| ArrayList<PzItemTypes> itemTypeList = itemTypeFacade.getItemTypes(this.getUserSessionObj().getClientCode(),"A");
| if(itemTypeList!=null && itemTypeList.size()>0){
| selectItems = new SelectItem[itemTypeList.size()];
| for(int i=0;i<itemTypeList.size();i++){
| selectItems = new SelectItem((itemTypeList.get(i)).getItemTypeId(),(itemTypeList.get(i)).getItemTypeDesc());
| }
| }
| return selectItems;
| }
|
| public PzUserObject getUserSessionObj() {
| return userSessionObj;
| }
|
| public void setUserSessionObj(PzUserObject userSessionObj) {
| this.userSessionObj = userSessionObj;
| }
|
| public Long getTotalQty() {
| return totalQty;
| }
|
| public void setTotalQty(Long totalQty) {
| this.totalQty = totalQty;
| }
|
| public ArrayList<PzMailingLineDTO> getPdfFileList() {
| System.out.println("inside getPdfFileList pdfFileCounter : "+this.pdfCounter);
| System.out.println("inside getPdfFileList pdfFileList : "+this.pdfFileList);
| if(this.pdfCounter!=null && this.pdfCounter.longValue()==0){
| this.pdfFileList = new ArrayList<PzMailingLineDTO>();
| this.pdfFileList.add(new PzMailingLineDTO());
| }
| else if(this.pdfFileList==null){
| this.pdfFileList = new ArrayList<PzMailingLineDTO>();
| }
| if(this.pdfFileList.size()<this.pdfCounter.intValue()){
| int i = this.pdfFileList.size();
| for(;i<this.pdfCounter.intValue();i++){
| this.pdfFileList.add(new PzMailingLineDTO());
| }
| }
| System.out.println("PdfList Size frm getPdfFileList: "+this.pdfFileList.size());
| return pdfFileList;
| }
|
| public void addNewPdf(){
| System.out.println("inside addNewPdf");
| if(this.getPdfFileList()!=null){
| System.out.println("PdfList Size: "+this.pdfFileList.size());
| for(PzMailingLineDTO lineDTO:this.pdfFileList){
| System.out.println(lineDTO.getUploadedFile().getName()+":"+lineDTO.getUploadedFile().getContentType());
| }
| this.pdfFileList.add(new PzMailingLineDTO());
| }
| }
|
| public void setPdfFileList(ArrayList<PzMailingLineDTO> pdfFileList) {
| this.pdfFileList = pdfFileList;
| }
|
| public Long getPdfCounter() {
| return pdfCounter;
| }
|
| public void setPdfCounter(Long pdfCounter) {
| this.pdfCounter = pdfCounter;
| }
|
| public void upload(){
| UploadedFile uploadedFile = this.getUploadedFile();
| String uploadedFileName = uploadedFile.getName();
| System.out.println("File Name : "+uploadedFileName);
| }
|
| public UploadedFile getUploadedFile() {
| return uploadedFile;
| }
|
| public void setUploadedFile(UploadedFile uploadedFile) {
| this.uploadedFile = uploadedFile;
| }
| }
|
| DTO
| package com.cci.pz.data.orderMgmt.mailing;
|
|
| import org.apache.myfaces.custom.fileupload.UploadedFile;
|
| import com.cci.pz.data.util.GlobalDbDataHolder;
|
| public class PzMailingLineDTO implements GlobalDbDataHolder {
| private String fileNameIn;
|
| private String fileNameProc;
|
| private String itemNum;
|
| private Long itemTypeId;
|
| private Long lineNumber;
|
| private Long lineQty;
|
| private Long mailingLineId;
|
| private Long pageCount;
|
| private Long mailingId;
|
| private UploadedFile uploadedFile;
|
| public PzMailingLineDTO() {
| }
|
| public String getFileNameIn() {
| return fileNameIn;
| }
|
| public void setFileNameIn(String fileNameIn) {
| this.fileNameIn = fileNameIn;
| }
|
| public String getFileNameProc() {
| return fileNameProc;
| }
|
| public void setFileNameProc(String fileNameProc) {
| this.fileNameProc = fileNameProc;
| }
|
| public String getItemNum() {
| return itemNum;
| }
|
| public void setItemNum(String itemNum) {
| this.itemNum = itemNum;
| }
|
| public Long getItemTypeId() {
| return itemTypeId;
| }
|
| public void setItemTypeId(Long itemTypeId) {
| this.itemTypeId = itemTypeId;
| }
|
| public Long getLineNumber() {
| return lineNumber;
| }
|
| public void setLineNumber(Long lineNumber) {
| this.lineNumber = lineNumber;
| }
|
| public Long getLineQty() {
| return lineQty;
| }
|
| public void setLineQty(Long lineQty) {
| this.lineQty = lineQty;
| }
|
| public Long getMailingLineId() {
| return mailingLineId;
| }
|
| public void setMailingLineId(Long mailingLineId) {
| this.mailingLineId = mailingLineId;
| }
|
| public Long getPageCount() {
| return pageCount;
| }
|
| public void setPageCount(Long pageCount) {
| this.pageCount = pageCount;
| }
|
| public Long getMailingId() {
| return mailingId;
| }
|
| public void setMailingId(Long mailingId) {
| this.mailingId = mailingId;
| }
|
| public UploadedFile getUploadedFile() {
| return uploadedFile;
| }
|
| public void setUploadedFile(UploadedFile pdfPrintFile) {
| this.uploadedFile = pdfPrintFile;
| }
|
| }
|
| web.xml
| <?xml version="1.0" ?>
| <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
| version="2.4">
| <distributable />
|
| <listener>
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
| </listener>
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.faces</url-pattern>
| </servlet-mapping>
|
| <servlet>
| <servlet-name>Login Servlet</servlet-name>
| <servlet-class>com.cci.pz.web.login.LoginServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Login Servlet</servlet-name>
| <url-pattern>/LoginServlet</url-pattern>
| </servlet-mapping>
|
| <servlet>
| <servlet-name>PlaceOrder Servlet</servlet-name>
| <servlet-class>com.cci.pz.web.PlaceOrder</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>PlaceOrder Servlet</servlet-name>
| <url-pattern>/PlaceOrder</url-pattern>
| </servlet-mapping>
|
| <servlet>
| <servlet-name>Komatsu Servlet</servlet-name>
| <servlet-class>com.cci.pz.web.xmlProcess.Komatsu</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Komatsu Servlet</servlet-name>
| <url-pattern>/Komatsu</url-pattern>
| </servlet-mapping>
|
| <filter>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
| <init-param>
| <param-name>maxFileSize</param-name>
| <param-value>20m</param-value>
| </init-param>
| </filter>
|
| <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
|
| <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
| </filter-mapping>
|
| <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <url-pattern>*.jsf</url-pattern>
| </filter-mapping>
|
| <filter>
| <filter-name>extensionsFilter</filter-name>
| <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
| <init-param>
| <param-name>uploadMaxFileSize</param-name>
| <param-value>100m</param-value>
| </init-param>
| <init-param>
| <param-name>uploadThresholdSize</param-name>
| <param-value>100k</param-value>
| </init-param>
|
| <init-param>
| <param-name>uploadRepositoryPath</param-name>
| <param-value>C:\jboss-4.0.3SP1\server\default\deploy\jbossweb-tomcat55.sar\ROOT.war\mailUpload\</param-value>
| </init-param>
| </filter>
|
| <filter-mapping>
| <filter-name>extensionsFilter</filter-name>
| <url-pattern>*.jsf</url-pattern>
| </filter-mapping>
|
| <context-param>
| <param-name>pz3FilePath</param-name>
| <param-value>c:\jboss-4.0.3SP1\server\default\</param-value>
| </context-param>
|
| <context-param>
| <param-name>pz3ViewableLocation</param-name>
| <param-value>C:\jboss-4.0.3SP1\server\default\deploy\jbossweb-tomcat55.sar\ROOT.war\pz3Viewable\</param-value>
| </context-param>
|
| <context-param>
| <param-name>pz3Viewables</param-name>
| <param-value>http://hq00416:8080/pz3Viewable/</param-value>
| </context-param>
| </web-app>
|
| Thanks & Regds
| Viji
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993438#3993438
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993438
19 years, 7 months
[JBoss Messaging] - Re: LeasePinger error
by clebert.suconic@jboss.com
I meant to ask if you have seen the exception listed on JBREM-649.
On my tests I got some other exceptions.. and the main one was this:
ava.lang.reflect.InvocationTargetException
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
| at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
| at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
| at org.jboss.serial.persister.ObjectOutputStreamProxy.writeObjectOverride(ObjectOutputStreamProxy.java:60)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:274)
| at java.util.HashMap.writeObject(HashMap.java:986)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
| at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
| at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
| at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
| at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
| at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
| at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:274)
| at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.sendObject(JavaSerializationManager.java:86)
| at org.jboss.remoting.marshal.serializable.SerializableMarshaller.write(SerializableMarshaller.java:84)
| at org.jboss.jms.server.remoting.JMSWireFormat.write(JMSWireFormat.java:310)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:518)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:340)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:125)
| at org.jboss.remoting.LeasePinger.sendClientPing(LeasePinger.java:97)
| at org.jboss.remoting.LeasePinger$LeaseTimerTask.run(LeasePinger.java:216)
| at java.util.TimerThread.mainLoop(Timer.java:432)
| at java.util.TimerThread.run(Timer.java:382)
| Caused by: java.util.ConcurrentModificationException
| at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
| at java.util.HashMap$EntryIterator.next(HashMap.java:824)
| at java.util.HashMap.writeObject(HashMap.java:984)
| ... 36 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993436#3993436
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993436
19 years, 7 months
[JBossWS] - Re: SOAP Error- DefaultNamespace doesnot contain operation m
by pshankar
I have the log file showing the following information
UnifiedMetaData:
| securityDomain: null
|
|
| ServiceMetaData:
| name={http://DefaultNamespace}MySpringServiceService
| wsdName=MySpringService
| wsdlFile=WEB-INF/wsdl/myspringservice.wsdl
| jaxrpcFile=WEB-INF/jaxrpc-mapping.xml
| publishLocation=null
| properties=null
|
| TypesMetaData:
|
|
| ServerEndpointMetaData:
| name={http://DefaultNamespace}MySpringService
| id=jboss.ws:context=MySpringService,endpoint=MySpringServiceServlet
| address=http://MSN17089C:8080/MySpringService/
| linkName=MySpringServiceServlet
| implName=MySpringServiceImplementation
| seiName=MySpringService
| annotated=false
| portComponentName=MySpringService
| contextRoot=/MySpringService
| urlPattern=/
| configFile=null
| configName=null
| authMethod=null
| transportGuarantee=null
| properties=null
|
| OperationMetaData:
| xmlName={http://DefaultNamespace}getName
| javaName=getName
| style=rpc/literal
| oneWay=false
| soapAction=
| ReturnMetaData:
| xmlName=getNameReturn
| xmlType={http://www.w3.org/2001/XMLSchema}string
| javaType=java.lang.String
| mode=OUT
| inHeader=false
|
| OperationMetaData:
| xmlName={http://DefaultNamespace}setName
| javaName=setName
| style=rpc/literal
| oneWay=false
| soapAction=
| ParameterMetaData:
| xmlName=in0
| xmlType={http://www.w3.org/2001/XMLSchema}string
| javaType=java.lang.String
| mode=IN
| inHeader=false
My Client use the following
private static String endpoint = "http://localhost:8080/MySpringService/";
|
| private static String qnameService = "MySpringService";
|
| private static String qnamePort = "MySpringService";
|
| private static String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
|
| private static String NS_XSD = "http://www.w3.org/2001/XMLSchema";
|
| private static String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
|
| public static void main(String[] args) {
|
| System.out.println("Endpoint address = " + endpoint);
|
| try {
| ServiceFactory factory = ServiceFactory.newInstance();
| Service service = factory.createService(new QName(qnameService));
|
| QName port = new QName(qnamePort);
|
| Call call = service.createCall(port);
| call.setTargetEndpointAddress(endpoint);
| call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
| call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
| call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
| QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
| call.setReturnType(QNAME_TYPE_STRING);
Can you suggest what need to be changed?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993435#3993435
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993435
19 years, 7 months