[Security & JAAS/JBoss] - Cannot Deploy SSO Federation EAR
by edgoquist
I'm trying to deploy jboss-federation-server.ear
I get this:
| 12:00:25,395 ERROR [ProfileServiceBootstrap] Failed to load profile:
| org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(jboss-federation-server.ear)
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:853)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:303)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:260)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:303)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
| at org.jboss.Main.boot(Main.java:209)
| at org.jboss.Main$1.run(Main.java:547)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.RuntimeException: Error determining structure: jboss-federation-server.ear
| at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:293)
| at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
| at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
| at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
| at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
| ... 9 more
| Caused by: java.lang.ClassCastException: org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData cannot be cast to org.jboss.metadata.ear.spec.EarMetaData
| at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:160)
| ... 13 more
|
I'm particularly interested in the part:
Caused by: java.lang.ClassCastException: org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData cannot be cast to org.jboss.metadata.ear.spec.EarMetaData
I took a look at
EARStructure.java and took a somewhat wild guess and changed the name of application.xml to jboss-app.xml. No luck. Here's application.xml btw:
| <?xml version="1.0" encoding="UTF-8"?>
| <jboss-app>
| <module>
| <service>jboss-federation-server.sar</service>
| </module>
| <module>
| <web>
| <web-uri>jboss-federation-server.war</web-uri>
| </web>
| </module>
| <module>
| <java>jboss-federation-server.jar</java>
| </module>
| <module>
| <java>jboss-saml.jar</java>
| </module>
| <module>
| <java>jboss-security-common.jar</java>
| </module>
| </jboss-app>
|
Any hints would be appreciated. thanks. -e.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214974#4214974
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214974
15 years, 10 months
[JBossWS] - Re: WSDL - convert to MTOM
by Ian Ashley
To provide a bit more information we are used complex types containing base64Binary encoded data, for example
<s:element name="StoreAsset">
| <s:complexType>
| <s:sequence>
| <s:element minOccurs="1" maxOccurs="1" name="sessionId" type="s:string"/>
| <s:element minOccurs="0" maxOccurs="1" name="assetRef" type="s:string"/>
| <s:element minOccurs="0" maxOccurs="1" name="nodeRef" type="s:string"/>
| <s:element minOccurs="0" maxOccurs="1" name="leafName" type="s:string"/>
| <s:element minOccurs="0" maxOccurs="unbounded" name="values" type="tns:NameTypeValue"/>
| <s:element minOccurs="1" maxOccurs="1" name="asset" type="s:base64Binary"/>
| </s:sequence>
| </s:complexType>
| </s:element>
|
The generated interface is
/**
| *
| * @param asset
| * @param values
| * @param assetRef
| * @param leafName
| * @param sessionId
| * @param nodeRef
| * @throws SessionExpiredException
| * @throws NsteinDPSErrorException
| */
| @WebMethod(operationName = "StoreAsset", action = "StoreAsset")
| @RequestWrapper(localName = "StoreAsset", targetNamespace = "http://services.nstein.com/NsteinDPS", className = "com.nstein.services.nsteindps.StoreAsset")
| @ResponseWrapper(localName = "StoreAssetResponse", targetNamespace = "http://services.nstein.com/NsteinDPS", className = "com.nstein.services.nsteindps.StoreAssetResponse")
| public void storeAsset(
| @WebParam(name = "sessionId", targetNamespace = "http://services.nstein.com/NsteinDPS")
| String sessionId,
| @WebParam(name = "assetRef", targetNamespace = "http://services.nstein.com/NsteinDPS", mode = WebParam.Mode.INOUT)
| Holder<String> assetRef,
| @WebParam(name = "nodeRef", targetNamespace = "http://services.nstein.com/NsteinDPS")
| String nodeRef,
| @WebParam(name = "leafName", targetNamespace = "http://services.nstein.com/NsteinDPS")
| String leafName,
| @WebParam(name = "values", targetNamespace = "http://services.nstein.com/NsteinDPS")
| List<NameTypeValue> values,
| @WebParam(name = "asset", targetNamespace = "http://services.nstein.com/NsteinDPS")
| byte[] asset)
| throws NsteinDPSErrorException, SessionExpiredException
| ;
|
I believe that byte[] asset needs to be changed to DataHandler asset but doing this alone doesn't seem to work.
Any pointers as to what else is required or link to an example would be very helpful.
Thanks in advance,
Ian
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214966#4214966
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214966
15 years, 10 months