SAML Integration

0
Getting Below error when imported new SAML Module into application.  Deleted old SAML Module  Added New Module from Appstore    Buildfile: C:\Users\Lenovo\Documents\Mendix\SearchPortal-main_SSO\deployment\build_core.xml compile: [javac] Compiling 146 source files to C:\Users\Lenovo\Documents\Mendix\SearchPortal-main_SSO\deployment\run\bin [javac] C:\Users\Lenovo\Documents\Mendix\SearchPortal-main_SSO\javasource\saml20\implementation\DelegatedAuthenticationHandler.java:308: error: cannot find symbol [javac] httpPost.setEntity(new ByteArrayEntity(authnState.getModifiedSOAPRequest().getBytes(), ContentType.APPLICATION_SOAP_XML)); [javac] ^ [javac] symbol: variable APPLICATION_SOAP_XML [javac] location: class ContentType [javac] C:\Users\Lenovo\Documents\Mendix\SearchPortal-main_SSO\javasource\saml20\implementation\DelegatedAuthenticationHandler.java:486: error: cannot find symbol [javac] ByteArrayEntity postData = new ByteArrayEntity(authnState.getModifiedSOAPResponse().getBytes(), ContentType.APPLICATION_SOAP_XML); [javac] ^ [javac] symbol: variable APPLICATION_SOAP_XML [javac] location: class ContentType [javac] C:\Users\Lenovo\Documents\Mendix\SearchPortal-main_SSO\javasource\saml20\implementation\DelegatedAuthenticationHandler.java:506: error: cannot find symbol [javac] ByteArrayEntity postData = new ByteArrayEntity(authnState.getModifiedSOAPResponse().getBytes(), ContentType.APPLICATION_SOAP_XML); [javac] ^ [javac] symbol: variable APPLICATION_SOAP_XML [javac] location: class ContentType [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 3 errors BUILD FAILED C:\Users\Lenovo\Documents\Mendix\SearchPortal-main_SSO\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 5 seconds Edit: Clean up for the UserLib using tortoise svn
asked
3 answers
1

You need to clean your userlib. There are a lot of new Jar files and a lot of obsolete Jar files that needs to be removed before you can run again.

Regards,

Ronald

 

answered
0

Hi There,

It is not about cleaning the userlib.
SAML 2.0.0 greater versions having compile issue due to, the constant  “APPLICATION_SOAP_XML“  used in “DelegatedAuthenticationHandler.java” is not defined in the class “ContentType” (org.apache.httpcomponents.httpcore_4.4.1.jar).

 

answered
0

Hi

I guess you have still this old one in your lib.

 

Remove them and it should work.

answered