[JBoss Web Services Development] - java.lang.ClassCastException: $Proxy60 while connecting to JAX-WS from Jboss
by Gopi G
Gopi G [http://community.jboss.org/people/gopi_jboss] created the discussion
"java.lang.ClassCastException: $Proxy60 while connecting to JAX-WS from Jboss"
To view the discussion, visit: http://community.jboss.org/message/645590#645590
--------------------------------------------------------------
Hi,
We are getting the below exception while connecting to a JAX-WS webservice from Jboss application server.
JAX-WS Service has been hosted in Websphere (JDK 1.6) by the third party interface.
We are trying to consume the Webservice as client from our application in Business layer.
Our configuration:
Jboss: 4.0.5
JDK : 1.5
Client jar of the service was built in Maven at our end from the wsdl using Jdk 1.5 and JAX-WS (2.2) Jars.
java.lang.ClassCastException: $Proxy60
at sun.reflect.annotation.AnnotationParser.annotationForMap(AnnotationParser.java:239)
at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:229)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
at java.lang.Class.initAnnotationsIfNecessary(Class.java:3031)
at java.lang.Class.getAnnotation(Class.java:2989)
at com.sun.xml.ws.model.RuntimeModeler$1.run(RuntimeModeler.java:179)
at com.sun.xml.ws.model.RuntimeModeler$1.run(RuntimeModeler.java:178)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.ws.model.RuntimeModeler.getPrivClassAnnotation(RuntimeModeler.java:177)
at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:213)
at com.sun.xml.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:661)
at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:649)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:343)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:308)
at javax.xml.ws.Service.getPort(Service.java:99)
at jaxws.yantra.com.MyAccount_Service.get_0020MyAccount(MyAccount_Service.java:72)
Can anyone provide your inputs to fix this?
Thanks,
Gopi.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/645590#645590]
Start a new discussion in JBoss Web Services Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JBoss AS 7 Development] - Logging Id's
by Brian Stansberry
Brian Stansberry [http://community.jboss.org/people/brian.stansberry] modified the document:
"Logging Id's"
To view the document, visit: http://community.jboss.org/docs/DOC-16810
--------------------------------------------------------------
Logging id ranges for JBoss AS7 i18n message interfaces.
|| %1,3% *Status* ||
| C | = | Complete |
| I | = | In Progress |
| P | = | Merged, but not complete |
| W | = | Waiting Merge |
|| *Range* || *Subsystem
* || *Status
* ||
| *10100 - 10199* | *Transaction* | C |
| *10200 - 10399
* | *Clustering**
* | C |
| *10400 - 10499* | *Connector**
* | C |
| *10500 - 10599* | *CLI
* |
|
| *10600 - 10699* | *Controller Client* | C |
| *10700 - 10799* | *CMP* |
|
| *10900 - 10999* | *Host Controller* | C |
| *11000 - 11099* | *EE* | C |
| *11100 - 11199* | *Embedded* | C |
| *11200 - 11299* | *JAXRS* | C |
| *11300 - 11399* | *JMX* | C |
| *11400 - 11499* | *JPA* | C |
| *11500 - 11599* | *Logging* | C |
| *11600 - 11699* | *Messaging* | C |
| *11700 - 11799* | *mod_cluster* | C |
| *11800 - 11899* | *Naming* | C |
| *11900 - 11999* | *OSGi (as plugin 00-10; service 11-99)* | C |
| *12000 - 12099* | *Process Controller* | C |
| *12100 - 12199* | *Protocol* | C |
| *12200 - 12299* | *Management Client Content* | *I* |
| *12300 - 12399* | *Platform MBeans* | *I* |
| *13100 - 13199* | *Security* |
|
| *14100 - 14399* | *Ejb3* | P |
| *14400 - 14499* | *AppClient* | C |
| *14500 - 14599* | *JDR* | C |
| *14600 - 14899* | *Controller* | C |
| *14900 - 14999* | *Deployment Repository* | C |
| *15000 - 15099* | *Deployment Scanner* | C |
| *15100 - 15199* | *Deployment HTTP API* | C |
| *15200 - 15299* | *Deployment Management* | C |
| *15300 - 15399* | *Network* | C |
|
| *EE Deployment* |
|
|
| *Jacorb* |
|
|
| *JAXR* |
|
| *15400-15499* | *Mail* | C |
|
| *POJO* |
|
|
| *Remoting* |
|
|
| *SAR* |
|
|
| *Security* |
|
| *15700-15999* | *Server* |
|
|
| *Threads* |
|
|
| *Web* |
|
| *15500-15699* | *Web Services* | C |
| *1**6000-16099* | *Weld* |
|
|
| *Xts* |
|
| *15800-15899* | *Domain Controller* | C |
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-16810]
Create a new document in JBoss AS 7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
13 years
[JBoss AS 7 Development] - Logging Id's
by Stuart Douglas
Stuart Douglas [http://community.jboss.org/people/swd847] modified the document:
"Logging Id's"
To view the document, visit: http://community.jboss.org/docs/DOC-16810
--------------------------------------------------------------
Logging id ranges for JBoss AS7 i18n message interfaces.
|| %1,3% *Status* ||
| C | = | Complete |
| I | = | In Progress |
| P | = | Merged, but not complete |
| W | = | Waiting Merge |
|| *Range* || *Subsystem
* || *Status
* ||
| *10100 - 10199* | *Transaction* | C |
| *10200 - 10399
* | *Clustering**
* | C |
| *10400 - 10499* | *Connector**
* | C |
| *10500 - 10599* | *CLI
* |
|
| *10600 - 10699* | *Controller Client* | C |
| *10700 - 10799* | *CMP* |
|
| *10900 - 10999* | *Host Controller* | C |
| *11000 - 11099* | *EE* | C |
| *11100 - 11199* | *Embedded* | C |
| *11200 - 11299* | *JAXRS* | C |
| *11300 - 11399* | *JMX* | C |
| *11400 - 11499* | *JPA* | C |
| *11500 - 11599* | *Logging* | C |
| *11600 - 11699* | *Messaging* | C |
| *11700 - 11799* | *mod_cluster* | C |
| *11800 - 11899* | *Naming* | C |
| *11900 - 11999* | *OSGi (as plugin 00-10; service 11-99)* | C |
| *12000 - 12099* | *Process Controller* | C |
| *12100 - 12199* | *Protocol* | C |
| *13100 - 13199* | *Security* |
|
| *14100 - 14399* | *Ejb3* | P |
| *14400 - 14499* | *AppClient* | C |
| *14500 - 14599* | *JDR* | C |
| *14600 - 14899* | *Controller* | C |
| *14900 - 14999* | *Deployment Repository* | C |
| *15000 - 15099* | *Deployment Scanner* | C |
| *15100 - 15199* | *Deployment HTTP API* | C |
| *15200 - 15299* | *Deployment Management* | C |
| *15300 - 15399* | *Network* | C |
|
| *EE Deployment* |
|
|
| *Jacorb* |
|
|
| *JAXR* |
|
| *15400-15499* | *Mail* | C |
|
| *Platform MBean* |
|
|
| *POJO* |
|
|
| *Remoting* |
|
|
| *SAR* |
|
|
| *Security* |
|
| *15700-15999* | *Server* |
|
|
| *Threads* |
|
|
| *Web* |
|
| *15500-15699* | *Web Services* | C |
| *1**6000-16099* | *Weld* |
|
|
| *Xts* |
|
| *15800-15899* | *Domain Controller* | C |
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-16810]
Create a new document in JBoss AS 7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
13 years
[JBoss AS 7 Development] - Server is not starting
by Ashok valan
Ashok valan [http://community.jboss.org/people/avchennai] created the discussion
"Server is not starting"
To view the discussion, visit: http://community.jboss.org/message/645413#645413
--------------------------------------------------------------
Trying to start the application server 7.0.2. But it is not starting while execute standalone.bat/ domain.bat.
Error Trace:
Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider
com.ctc.wstx.stax.WstxInputFactory not found
at javax.xml.stream.XMLInputFactory.newInstance(Unknown Source)
at __redirected.__XMLInputFactory.<clinit>(__XMLInputFactory.java:67)
at __redirected.__JAXPRedirected.initAll(__JAXPRedirected.java:85)
at org.jboss.modules.Module$1.run(Module.java:88)
at org.jboss.modules.Module$1.run(Module.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.modules.Module.<clinit>(Module.java:75)
at org.jboss.modules.Main.main(Main.java:257)
Any one ....help on this?
Regards,
Ashok
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/645413#645413]
Start a new discussion in JBoss AS 7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[jBPM Development] - Re: [jbpm5.1]Can get the current nodeId, correctly??
by Mauricio Salatino
Mauricio Salatino [http://community.jboss.org/people/salaboy21] created the discussion
"Re: [jbpm5.1]Can get the current nodeId,correctly??"
To view the discussion, visit: http://community.jboss.org/message/645403#645403
--------------------------------------------------------------
Ok, so you have tons of questions.. I will start from the bottom..
3.X It works in the way you want out of the box.
2. you never need to fix that table, never touch that table because it contains internal information from the engine, users should never touch that.
1. It depends on what you are doing with the session. If you create one session per process it will work. if you have concurrent threads trying to modify a field in a database one of them will fail and the other will win.. that will happen in any database and not only in jBPM. For that reason you are seeing errors in the console, but the state keeps consistent with the executed code. What you can do is to implement a retry mechanisms if one call fails because another concurrent one was processed at that time. If you want more specific answers on these topics I think that you should contact us for consulting services..
Cheers
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/645403#645403]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JBoss AS 7 Development] - jboss a7 JAAS custom login sso
by abiya
abiya [http://community.jboss.org/people/abiya] created the discussion
"jboss a7 JAAS custom login sso"
To view the discussion, visit: http://community.jboss.org/message/645381#645381
--------------------------------------------------------------
Hi,
I have an exisitng application which has JAAS security enabled and CasssoFilter for SSO working fine in weblogic. I am trying to get it work in jboss as7 and am not very clear on the security configuration to be done. Below is the list of what I have configured so far and I get the Principal value as null when I login.
My configurations:
<jboss-web>
<security-domain flushOnSessionInvalidation="true">metreo</security-domain>
</jboss-web>
standalone.xml
-----------------------
<subsystem xmlns="urn:jboss:domain:security:1.0">
<security-domains>
<security-domain name="other" cache-type="default">
<authentication>
<login-module code="Disabled" flag="required"/>
</authentication>
</security-domain>
<security-domain name="metreo">
<authentication>
<login-module code="com.metreo.platform.security.jboss.jboss600.jaas.jdbc.DatabaseServerLoginModule" flag="required">
<module-option name="dsJndiName" value="java:jboss/datasources/weblogic.jdbc.jts.demopool"/>
<module-option name="principalsQuery" value="select password from m_user where m_user_name=? and m_user_status=1"/>
<module-option name="rolesQuery" value="select userRoles, 'Roles' from UserRoles where username=?"/>
<module-option name="userPrincipalForUserQuery" value="select m_user_id, m_org_id from m_user where m_user_name = ? and m_user_status = ?"/>
<module-option name="metreoRolesQuery" value="select grp.m_group_name, grp.m_group_id, grp.m_group_type from m_group grp,m_user usr, m_user_group usrgrp where usrgrp.m_user_id = ? and usrgrp.m_group_id = grp.m_group_id and usr.m_user_name = ?"/>
<module-option name="hashAlgorithm" value="MD5"/>
<module-option name="hashEncoding" value="base64"/>
<module-option name="unauthenticatedIdentity" value="guest"/>
</login-module>
</authentication>
</security-domain>
</security-domains>
</subsystem>
.DatabaseServerLoginModule.java
------------------------------------------------
****public
***
*
***class** JDBCLoginModule **extends** DatabaseServerLoginModule {
***
16:00:19,638 TRACE [org.jboss.as.web.security.SecurityContextAssociationValve] (http--127.0.0.1-7001-2) Begin invoke, caller=null
16:00:19,648 TRACE [org.jboss.as.web.security.SecurityContextAssociationValve] (http--127.0.0.1-7001-2) End invoke, caller=null
16:00:19,648 TRACE [org.jboss.as.web.security.SecurityContextAssociationValve] (http--127.0.0.1-7001-2) Begin invoke, caller=null
16:00:19,658 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/metreoSSO].[jsp]] (http--127.0.0.1-7001-2) Disabling the response for futher output
16:00:19,658 TRACE [org.jboss.as.web.security.SecurityContextAssociationValve] (http--127.0.0.1-7001-2) End invoke, caller=null
16:00:19,698 TRACE [org.jboss.as.web.security.SecurityContextAssociationValve] (http--127.0.0.1-7001-2) Begin invoke, caller=null
**public** **void** initialize(Subject a_subject,
CallbackHandler a_callbackHandler, Map a_sharedState, Map a_options) {
***super***.initialize(a_subject, a_callbackHandler, a_sharedState, a_options);
**this**.m_subject = a_subject;
**try** {
++m_userPrincipalForUserQuery++ = (String) a_options
.get(++USER_PRINCIPALS_QUERY++);
++m_metreoRolesQuery++ = (String)a_options.get(++METREO_ROLES_QUERY++);
} **catch** (Exception ex) {
ex.printStackTrace();
**throw** **new** RuntimeException(ex);
**public
****boolean** login() **throws**LoginException {
**try**{
m_success = ***super***.login();
// See if shared credentials exist
**if** (m_success == **true**) {
// Setup our view of the user
Object username =sharedState
.get(
"javax.security.auth.login.name");
String name = username.toString();
Object password =sharedState
.get(
"javax.security.auth.login.password");
MetreoJAASUser metreoUser = getUserPncplForUser(name);
m_tempPrincipals.add(metreoUser);
setupUserRoles(m_tempPrincipals, metreoUser);
} **else** {
**throw** **new** LoginException("Authentication failed");
}
**return** (**true**);
} **catch** (LoginException ex) {
**throw** ex;
} **catch** (Exception ex) {
m_success = **false**;
**throw** **new** LoginException(ex.getMessage());
}
}
// My other methods
}
log stacktrace:
-------------------
I enabled trace level debug and got to see the following,
16:00:19,638 TRACE [org.jboss.as.web.security.SecurityContextAssociationValve] (http--127.0.0.1-7001-2) Begin invoke, caller=null
16:00:19,648 TRACE [org.jboss.as.web.security.SecurityContextAssociationValve] (http--127.0.0.1-7001-2) End invoke, caller=null
16:00:19,648 TRACE [org.jboss.as.web.security.SecurityContextAssociationValve] (http--127.0.0.1-7001-2) Begin invoke, caller=null
16:00:19,658 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/metreoSSO].[jsp]] (http--127.0.0.1-7001-2) Disabling the response for futher output
16:00:19,658 TRACE [org.jboss.as.web.security.SecurityContextAssociationValve] (http--127.0.0.1-7001-2) End invoke, caller=null
16:00:19,698 TRACE [org.jboss.as.web.security.SecurityContextAssociationValve] (http--127.0.0.1-7001-2) Begin invoke, caller=null
Please let me know what else should I configure.
Thanks,
Abiya
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/645381#645381]
Start a new discussion in JBoss AS 7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years