Oracle ADF Secured App Gives HTTP 401 Error
I am new to Oracle ADF Framework. I develop on JDeveloper 11g R2 with Weblogic 10.3.5.0. I developed an project like described in a Firebox training video on Youtube link: [http://bit.ly/HT1HZ9] . You can download my project from http://db.tt/Y8J3fj3y
The video was about creating a custome login page. You have to create login,error anad the target pages. When you try to open target page login page comes then you enter your credentials. After success yoou should be directed to the target page. I used a backing bean to process credentials but instead of redirected to target page the response page gives:
Error 401--Unauthorized From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.4.2 401 Unauthorized
And the weblogic console this error:
Target URL -- http://127.0.0.1:7101/Deneme-ViewController-context-root/faces/protectedPage.jspx
<ViewHandlerImpl> <_checkTimestamp> Apache Trinidad is running with time-stamp checking enabled. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
<UIXEditableValue> <_isBeanValidationAvailable> A Bean Validation provider is not present, therefore bean validation is disabled
<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
java.lang.IllegalStateException: Cannot forward a response that is already committed
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:122)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)
at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)
at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:167)
at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:363)
at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:154)
at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.buildView(ViewDeclarationLanguageFactoryImpl.java:341)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:982)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:232)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
<Apr 18, 2012 3:21:24 PM EEST> <Error> <HTTP> <BEA-101020> <[ServletContext@28001210[app:Deneme module:Deneme-ViewController-context-root path:/Deneme-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
java.lang.IllegalStateException: Cannot forward a response that is already committed
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:122)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)
at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)
Truncated. see log file for complete stacktrace
>
<Apr 18, 2012 3:21:24 PM EEST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Apr 18, 2012 3:21:24 PM EEST. Notification details:
WatchRuleType: Log
WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
WatchData: DATE = Apr 18, 2012 3:21:24 PM EEST SERVER = DefaultServer MESSAGE = [ServletContext@28001210[app:Deneme module:Deneme-ViewController-context-root path:/Deneme-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
java.lang.IllegalStateException: Cannot forward a response that is already committed
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:122)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)
at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)
at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:167)
at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:363)
at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:154)
at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.buildView(ViewDeclarationLanguageFactoryImpl.java:341)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:982)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:232)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = Metasis-PC TXID = CONTEXTID = 922cea34c05f1394:4758d71c:136c5648195:-8000-0000000000000074 TIMESTAMP = 1334751684128
WatchAlarmType: AutomaticReset
WatchAlarmResetPeriod: 30000
>
<Apr 18, 2012 3:21:26 PM EEST> <Alert> <Diagnostics> <BEA-320016> <Creating diagnostic image in c:\users\metasis\appdata\roaming\jdeveloper\system11.1.2.1.38.60.81\defaultdomain\servers\defaultserver\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_39 with a lockout minute period of 1.>
My backing bean java code:
public String doLogin() {
String un = _username;
byte[] pw = _password.getBytes();
FacesContext ctx = FacesContext.getCurrentInstance();
HttpServletRequest request = (HttpServletRequest)ctx.getExternalContext().getRequest();
Subject mySubject;
try {
mySubject = Authentication.login(new URLCallbackHandler(un, pw));
ServletAuthentication.runAs(mySubject, request);
ServletAuthentication.generateNewSessionID(request);
String loginUrl = "/adfAuthentication?success_url=/faces/protectedPage.jspx";
HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse();
RequestDispatcher dispatcher = request.getRequestDispatcher(loginUrl);
dispatcher.forward(request, response);
//response.sendRedirect(loginUrl);
} catch (FailedLoginException e) {
FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, "Invalid Username or Password", "Invalid Username or Password");
ctx.addMessage(null, msg);
} catch (Exception e) {
e.printStackTrace();
return null;
And before the application start there is an interesting error code:
[03:20:38 PM] Redeploying Application...
<CodebasePolicyHandler> <migrateDeploymentPolicies> Migration of codebase policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
<AppPolicyHandler> <migrateAppPolicies> Migration of application policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
[03:20:55 PM] Application Redeployed Successfully.
Thanx for the help!
Hi
i have created a similar adf project from the same site.
i am facing the same issue.
i deleted the anonymous role but i still get the HTTP 404 error
here is my jazn.data.xml file
Please help out on this
<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
<jazn-data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/jazn-data-11_0.xsd">
<jazn-realm default="jazn.com">
<realm>
<name>jazn.com</name>
<users>
<user>
<name>bob</name>
<credentials>{903}roINL8sMhkkl2tkXbhufyu80sTkEtEBXt79hzI/P3uI=</credentials>
</user>
<user>
<name>julie</name>
<credentials>{903}sS25AaE6ZE1B3sqmsWr0DmNcDbY+id0734qTxK6bam8=</credentials>
</user>
</users>
<roles>
<role>
<name>managerGroup</name>
<members>
<member>
<type>user</type>
<name>bob</name>
</member>
</members>
</role>
</roles>
</realm>
</jazn-realm>
<policy-store>
<applications>
<application>
<name>adf_security</name>
<app-roles>
<app-role>
<name>manager</name>
<class>oracle.security.jps.service.policystore.ApplicationRole</class>
<members>
<member>
<name>managerGroup</name>
<class>oracle.security.jps.internal.core.principals.JpsXmlEnterpriseRoleImpl</class>
</member>
</members>
</app-role>
</app-roles>
<jazn-policy>
<grant>
<grantee>
<principals>
<principal>
<name>manager</name>
<class>oracle.security.jps.service.policystore.ApplicationRole</class>
</principal>
</principals>
</grantee>
</grant>
</jazn-policy>
</application>
</applications>
</policy-store>
</jazn-data>
Thenx
Similar Messages
-
Oracle ADF security integration with Oracle E-Business Suite SDK JAAS
I have an Oracle ADF 11.1.2.2 application that is using ADF security for authentication and authorization.
When we deploy this application to our JDeveloper integrated weblogic server, we utilize the security setting of "Custom" and use weblogic users and roles to map to the ADF application roles. In that environment our security is working properly.
I have a Weblogic 10.3.5 standalone server that has the ADF runtime installed as well as the Oracle E-Business Suite SDK JAAS implementation installed.
When I deploy the Oracle ADF application to the standalone weblogic server, I am directed to the JAAS login page when I attempt to access any JSF page (including those that I have granted View access through the anonymous-role. Does the Oracle ADF anonymous-role work (allow for anonymous page access) when JAAS security is handled by the Oracle E-Business Suite SDK JAAS implementation?
Per the SDK instructions, when we install the Oracle ADF deployment on Weblogic we have selected "DD only" for our security setting. We have defined enterprise roles in the Oracle ADF security setup (jazn-data.xml) that are assigned the appropriate application roles. Those enterprise roles have the same name (i.e. UMX|YOURROLE) as the E-Business Suite roles that are assigned to our test users. When we login with an E-Business Suite user / password we are receiving an error:
Error 401--Unauthorized
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.2 401 Unauthorized
Any thoughts on why that would be?
Thanks
DanThanks Juan.
With the debugging options enabled it appears the issue is not an issue with the user / role credentials - it seems like the resource grants from jazn-data.xml are not being reviewed in my standalone weblogic instance EAR deployment:
[JpsAuth] Check Permission
PolicyContext: [TestApp]
Resource/Target: [untitled1PageDef]
Action: [view]
Permission Class: [oracle.adf.share.security.authorization.RegionPermission]
Result: [FAILED]
Evaluator: [ACC]
Failed ProtectionDomain:ClassLoader=sun.misc.Launcher$AppClassLoader@13f5d07
CodeSource=file:/app/oracle/product/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/adf-share-support.jar
Principals=total 2 of principals(
1. JpsPrincipal: oracle.security.jps.internal.core.principals.JpsAnonymousUserImpl "anonymous" GUID=null DN=null
2. JpsPrincipal: oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl "anonymous-role" GUID=null DN=null)
When I access the same page from my integrated weblogic server I see:
[JpsAuth] Check Permission
PolicyContext: [TestApp]
Resource/Target: [untitled1PageDef]
Action: [view]
Permission Class: [oracle.adf.share.security.authorization.RegionPermission]
Result: [FAILED]
Evaluator: [ACC]
Failed ProtectionDomain:ClassLoader=sun.misc.Launcher$AppClassLoader@13f5d07
CodeSource=file:/app/oracle/product/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/adf-share-support.jar
Principals=total 2 of principals(
1. JpsPrincipal: oracle.security.jps.internal.core.principals.JpsAnonymousUserImpl "anonymous" GUID=null DN=null
2. JpsPrincipal: oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl "anonymous-role" GUID=null DN=null)
When I review my EAR - I do see jazn-data.xml at:
/META-INF/jazn-data.xml
I will review the system-jazn-data.xml to see if the policy information has been migrated properly as part of the EAR deployment.
Thanks.
-Dan -
Oracle ADF Security Login page
hi.
I am using oracle ADF 11.1.2.2.0 (oracle Jdevelopr 11g release 2) in my job environment. There are 3000 users working as client level in our company. They have separated user Id and roles. They can change their passwords. There are expiration period for passwords which is handle by in database level. when the employees are going to terminate or retirement , we can control their login status. that mean we change their Active status as a Inactive status. some times we recruit number of emplooyes for cover our business targets. Their User Id also in database table level.
My main problem is how we can handle number of employees using Oracle ADF security configuration.
second one is how user can change their passwords.
Third is how number of employees going to terminate ,handle their Active/Inactive State.
Fourth one is If we use this Oracle Security system ,project managers or project cordinator or Adminstrator level authenticator must need to deploy time to time war file, because of adding removing users in jazn-data.xml.
hoping help from you.Thanking for all.So, you can define SQLAuthenticator/SQLReadOnlyAuthenticator on Weblogic which will retrieve users from your db table(instead of jazn-data file) to application server.
Then, in your application you can enable ADF Security and this will generate login page.
And, this is it :)
If you need some custom processing before users login to your app, then you can create custom login page and do whatever you want in Java code:
http://docs.oracle.com/cd/E16162_01/web.1112/e16182/adding_security.htm#BABDEICH
>
But 11g has Database connection in Application Resource. Using that connection I need to log to the system using user's User iD and Password
>
This connection is valid only in design time. When you deploy your application to application server, then you can include this connection in .ear file, or you can define Data Source on Weblogic(which is better approach).
To programmatically retreive db connection, you can create utility method in your Application Module.
Dario -
HTTP 401 error while connecting SAP PI 7.1 with SOAPAdapter
Hello,
I am trying to call webservice on R/3 system using SAP PI 7.1 but I am getting HTTP 401 error.
Following is the error for more detail:
Message: Server returned error code = 401 for URI : http://sapxx03x:50000/XISOAPAdapter/MessageServlet?channel=:BS_xxxxxxxxxxx_50:CC_xxxxxxxxxxxxx_WSDL_Sender.
same url when I use with SAP XI 3.0 it works fine. It is only giving problem with PI 7.1
I know this issue is related to authentication but what problem I am facing is how to pass the credentical with the url to
resolve this authentication issue? Are there any settings I am missing? or Any other way of doing it?
I have already tried following things to resolve this issue:
1. tried giving user id & password in URL but still having same error HTTP 401.
2. tried one of the SAP note (891877) regarding Netweaver Administration to change ROLE settings but problme still persist.
3. Checked SAP Help settings
4. Did changes to web.xml file to comment the security part and restarted the system
But, Problem still exist.
Please let me know what will be the solution for this issue.
Thanks,
AnandHello Abhishek,
Fine I will try using new URL but user id & password are working fine with PI 7.1.
I tried running URL directly and it is working fine and giving following message:
Message Servlet is in Status OK
Status information:
Servlet com.sap.aii.adapter.soap.web.MessageServlet (Version $Id: //tc/xpi.adapters/NWxx_xx_xxx/src/_soap_application_web_module/webm/api/com/sap/aii/adapter/soap/web/MessageServlet.java#1 $) bound to /MessageServlet
Classname ModuleProcessor: null
Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
Lookupname for remoteModuleProcessorLookupName: null
ModuleProcessorClass not instantiated
ModuleProcessorLocal is Instance of $Proxy45_10002
ModuleProcessorRemote not instantiated
Any other pointers,
Thanks,
Anand -
Role based oracle adf security and filtering data
while oracle adf security looks great its only role based... does anyone know of any resources describing an architecture where this is used in addition to filtering of data based on say, organization?
it seems that oracle adf security is not really geared towards a self service app where administrative users have a security interface as part of the application where they can assign roles and associate users to entities for the further filtering of data...Hi,
it seems that oracle adf security is not really geared towards a self service app where administrative users have a security interface as part of the application where they can assign roles and associate users to entities for the further filtering of data...
ADF Security is a JAAS based security implementation to protect resources (like entities). It is nota security provider like OPSS or OID which you can use for user provisioning and self service (if you code against the IDM APIs). ADF Security only checks for whether a user is authenticated and if the user has the permission to perform a task.
However, you can use groovy to access the security context from Groovy, which allows you to add the authenticated username to a query - for example to filter recrds out that match the username in one of its attributes.
For example, you could create a ViewCriteria that for example filters the query by a specific attribute. Say that managers can see data starting from department 10 whereas employees can see data starting from department 100. The ViewCriteria would reference a bind variable with the following default setting
adf.context.securityContext.isUserInRole('manager')? 10 : 100
Frank -
How to store Custom principal in Oracle ADF security Framework
Hi guys, hope somebody will help me out.
I am facing the following issue, i need to have a custom principal instance after oracle adf security frame work does authenticate and authorize user.
My custom principal instance should have per say addition attribute, say clientId. I am using Jdeveloper 11.1.2.4 and i setup weblogic to use ReadOnlySQLAuthenticator(it does most of desired functionality).
As far as i get it, i would have to implement a custom provider to have a chance to implement a custom LoginModule, so i can set it up to use my custom principal, am i right ? and i am not sure how ReadOnlySQLAuthenticatorImpl that i chose in weblogic is bound to
DBMSAtnLoginModuleImpl (i mean how does it knows what LoginModule should it use) and if i can , how can i make ReadOnlySQLAuthenticatorImpl use my custom LoginModule.
Sorry if i violated forum rules.and i am not sure how ReadOnlySQLAuthenticatorImpl that i chose in weblogic is bound to
DBMSAtnLoginModuleImpl (i mean how does it knows what LoginModule should it use)
This info is returned by getLoginModuleConfiguration(): AuthenticationProvider (BEA WebLogic Server 10.0 API Reference)
Dario -
HTTP 401 error in CSADMIN for SAP content server on Linux OS and MaxDB
Hi,
We have installed content server on Linux OS.and DB as MaxDB.
I created the repository using OAC0. The with same tab I went to CSADMIN.
When I try to create repository with executing it , it ask for user name and password.
I mentioned the SAPCS admin user name and password, but i got HTTP 401 error. Unauthorized user.
Even i tried with prefixing domain name and with root user ID and password.
But got the same error. Please help
Regards,
HemantHi
We are also facing the same problem. but as you mentioned in solution.
user: <domain>/<admin-user>
pw: pw
I am getting the same problem of Error 401. Kindly describe in detail with example.
Thanks
Regards,
R Karthikeyan -
Http 401 error starting a managed server
Hi,
I'm new to wl and am setting up a managed server on wl6.0.
I read and followed the instructions in the admin guide - really!
I have an admin server running under the petstore domain,
on port 7001 and am trying to run a managed server under
"devdomain".
Below is the java command my startup script is using
to start the managed server. It is failing with a security
error (http 401). I don't see anything in the dox about an
additional userid/password control at the http level.
When I browse directly to http://webdev:7001/Bootstrap,
I get http password pop-up. The system userid and password
does not work.
What dox can I go to for help on this?
Thx
Jim Brockman
java -ms64m -mx64m -classpath
/opt/bea/wlserver6.0:/opt/bea/wlserver6.0/lib/weblogic_sp.jar:/opt/bea/wlser
ver6.0/lib/weblogic.jar:/opt/bea:/opt/bea/wlserver6.0/lib/jdbctype4drivers/c
lasses12.zip -Dweblogic.Domain=devdomain -Dweblogic.Name=devserver -Dweblogi
c.management.server=webdev:7001 -Djava.security.policy=/opt/bea/wlserver6.0/
lib/weblogic.policy -Dweblogic.management.username=system -Dweblogic.managem
ent.password=xxxxxxxx weblogic.Server
Starting WebLogic Server ....
Connecting to http://webdev:7001...
The WebLogic Server did not start up properly.
Exception raised:
weblogic.management.configuration.ConfigurationException:
connecting to http://webdev:7001/Bootstrap/ - with nested exception:
[weblogic.net.http.HttpUnauthorizedException: 401]
weblogic.net.http.HttpUnauthorizedException: 401
at
weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:32
8)
at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:230)
at
weblogic.management.Admin.getBootstrapLocalServer(Admin.java:825)
at weblogic.management.Admin.initialize(Admin.java:274)I solved the problem in this command.....
/opt/bea/wlserver6.0:/opt/bea/wlserver6.0/lib/weblogic_sp.jar:/opt/bea/wlser
ver6.0/lib/weblogic.jar:/opt/bea:/opt/bea/wlserver6.0/lib/jdbctype4drivers/c
lasses12.zip -Dweblogic.Domain=devdomain -Dweblogic.Name=devserver -Dweblogi
c.management.server=webdev:7001 -Djava.security.policy=/opt/bea/wlserver6.0/
lib/weblogic.policy -Dweblogic.management.username=system -Dweblogic.managem
ent.password=xxxxxxxx weblogic.Server
When I put the password in the script, the problem is disapeared...
Jim Brockman wrote:
Hi,
I'm new to wl and am setting up a managed server on wl6.0.
I read and followed the instructions in the admin guide - really!
I have an admin server running under the petstore domain,
on port 7001 and am trying to run a managed server under
"devdomain".
Below is the java command my startup script is using
to start the managed server. It is failing with a security
error (http 401). I don't see anything in the dox about an
additional userid/password control at the http level.
When I browse directly to http://webdev:7001/Bootstrap,
I get http password pop-up. The system userid and password
does not work.
What dox can I go to for help on this?
Thx
Jim Brockman
java -ms64m -mx64m -classpath
/opt/bea/wlserver6.0:/opt/bea/wlserver6.0/lib/weblogic_sp.jar:/opt/bea/wlser
ver6.0/lib/weblogic.jar:/opt/bea:/opt/bea/wlserver6.0/lib/jdbctype4drivers/c
lasses12.zip -Dweblogic.Domain=devdomain -Dweblogic.Name=devserver -Dweblogi
c.management.server=webdev:7001 -Djava.security.policy=/opt/bea/wlserver6.0/
lib/weblogic.policy -Dweblogic.management.username=system -Dweblogic.managem
ent.password=xxxxxxxx weblogic.Server
Starting WebLogic Server ....
Connecting to http://webdev:7001...
The WebLogic Server did not start up properly.
Exception raised:
weblogic.management.configuration.ConfigurationException:
connecting to http://webdev:7001/Bootstrap/ - with nested exception:
[weblogic.net.http.HttpUnauthorizedException: 401]
weblogic.net.http.HttpUnauthorizedException: 401
at
weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:32
8)
at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:230)
at
weblogic.management.Admin.getBootstrapLocalServer(Admin.java:825)
at weblogic.management.Admin.initialize(Admin.java:274)--
Doyoung Im
Bea Systems Korea
Sales Engineer/Pre Sales
H.P) 82-11-9727-8923
DID) 82-2 -7676-823
Fax) 82-2 -783-7102
mail)[email protected] -
Ldap security provider leads in 401 errors in WL 12.1.3
I'm facing a migration from 10.3.2 to 12.1.3. The configuration is almost the same (I'll bet that config.xml is more or lest the same from previos version).
In my environment, the user's authentication and authorization is made using an external (not embeded) ldap. Needles to say that everything works perfect in 10.3.2, but in the new version the behaviour is weird:
* First time a user tryes to enter in the system the application returns a 401 error.
* Next attempt the user can enter into the system without problem.
* If the user continues using the system, there are no problems.
* If the user doesn't re-connect to the system after some time 401 error is returned again.
I find out that if I disable the ldap cache everything works fine. But in a production enviroment I believe cache is a must.
Does anyone have faced this issue?Verified WebLogic Classloading using CAT '( wls-cat app ) and found oracle.dms.console.DMSConsole was loaded from web-inf jar and ucp classes were loaded from jar from weblogic, used below entry in weblogic.xml to load everything from web-inf to resolve the issue
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
Thanks
Sandeep -
Dear All,
we have created some good number of Custom ResourcePermissions in our Oracle ADF 11g Application. we are trying to refer the permissions with wildcard character in jazn-data.xml. The same worked well for taskflows.
Is there anyway that we can implement wildcard character in custom resource Permissions ?
we are calling hasPermission() API to check whether permission exists or not. Currently this method returns false when we configured the resource name in wildcard character.
For example, actual key - a.b.c.menu
wild card character we are referring for this key is a.*.*.menu . The hasPermission() returns false for this case.
Regards
DeiveeHi,
more an OPSS question than ADF Security. Anyway, the answer is
"No wildcard use is supported in a resource permission."
See: The OPSS Policy Model - 11g Release 1 (11.1.1)
Frank -
SR: Calling Web Services from PL/SQL gives http 500 errors
Hi, people from Oracle Support sent me to this forum.
I'm trying to call the Calendar Web Services from PL/SQL using the utl_http package, but I'm getting http-500 errors.
I'm using the example from http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html
Here's the code
procedure showHtml
as
req soap_rpc.request;
resp soap_rpc.response;
BEGIN
req := soap_rpc.new_request('cwsl:NoOp',
'xmlns:cwsl="http://www.oracle.com/WebServices/Calendaring/1.0/"');
resp := soap_rpc.invoke(req,
'http://nllx004.nl.oracle.com/ocws-bin/ocas.fcgi',
dbms_output.put_line(resp.doc.getStringVal());
END;
Can anyone help?I am new to web services and am having trouble getting the utl_http.set_header call to work using pl/sql. listed below is the code.
CREATE OR REPLACE PACKAGE BODY adm_iModules_test
AS
NAME: Admissions iModules testing program
PURPOSE:
Ver Date Author Description
REVISIONS:
1.0 01/04/08 Julie Michael 1. Created this package body.
PROCEDURE adm_iModules_test_output
IS
--cursor to select data to populate output file
CURSOR c_iModules_main
IS
SELECT DISTINCT spriden_id sprid_id,
spriden_pidm sprid_pidm,
spriden_last_name sprid_last,
spriden_first_name sprid_first,
spriden_MI sprid_mid,
spriden_create_date sprid_create_date,
spriden_activity_date sprid_activity_date,
spbpers_pidm pers_pidm,
spbpers_name_prefix prefix,
spbpers_name_suffix suffix,
spbpers_dead_ind deceased_ind,
spbpers_dead_date deceased_date,
spbpers_birth_date, --added birth date
spbpers_sex, --added gender
goremal_pidm emal_pidm,
goremal_email_address email_address,
saradap_pidm app_pidm,
zzrimod_member_id imod_id,
gobtpac_external_user user_id
FROM spriden,
spbpers,
goremal,
saradap,
zzrimod,
gobtpac
WHERE spriden_pidm = spbpers_pidm
AND spriden_change_ind IS NULL
AND spriden_pidm = goremal_pidm
AND goremal_emal_code = 'PERS'
AND goremal_preferred_ind = 'Y'
AND spriden_pidm = saradap_pidm
AND spriden_pidm = 120116
AND spriden_pidm = gobtpac_pidm
AND spriden_pidm = zzrimod_pidm(+)
AND goremal_preferred_ind = 'Y'
AND saradap_term_code_entry in ('200810','200820','200830');
v_record VARCHAR2 (32000) := null;
v_record_counter NUMBER := 0;
f_iModules_output_test UTL_FILE.file_type;
f_iModules_filename_test VARCHAR2 (50) := 'Adm_iModules_Test.TXT';
f_iModules_dir_test VARCHAR2 (100) := 'TMP';
v_separator VARCHAR2 (50) := ',';
v_id VARCHAR2 (90) := '';
v_fname VARCHAR2 (40) := '';
v_lname VARCHAR2 (40) := '';
v_user VARCHAR2 (90) := '';
v_login VARCHAR2 (100) := '';
v_password VARCHAR2 (100) := '';
-- v_link VARCHAR2 (32767) := 'http://imodules.com/Web%20Services/';
--the below item 'http://admin.imodules.com - was https://admin.imodules.com
v_link VARCHAR2 (32767) := 'http://admin.imodules.com/ws_10/MemberQuery.asmx?WSDL';
v_non_existing_ids VARCHAR2 (100) := '"false"';
v_style VARCHAR2 (5) := '"1"';
v_imod_member_id VARCHAR2 (100) := '';
v_spriden_first_name VARCHAR2 (60) := '';
req Utl_Http.req; --for posting
resp Utl_Http.resp; --for posting
v_msg VARCHAR2(80); --for posting
H_Name VARCHAR2(255); --for posting
H_Value VARCHAR2(1023); --for posting
v_data_xml VARCHAR2(10000);
BEGIN
DBMS_OUTPUT.ENABLE(1000000);
f_iModules_output_test := UTL_FILE.fopen (f_iModules_dir_test, f_iModules_filename_test, 'w',32767);
v_record := '';
--needed for posting
-- Utl_http.set_proxy(proxy => 'xxx.yyy.com',
-- no_proxy_domains => 'xxx.com');
req := Utl_Http.begin_request(url => v_link,
method => 'POST');
-- FOR v_iModules2 IN c_iModules_main
-- LOOP
-- v_record_counter := v_record_counter + 1;
-- END LOOP;
-- v_record := 'DUQ'||','||v_record_counter||','||to_char(SYSDATE,'mm/dd/yyyy');
UTL_FILE.put_line (f_iModules_output_test, v_record, false);
v_record := null;
FOR v_iModules IN c_iModules_main
LOOP
v_id := v_imodules.sprid_id;
v_fname := v_imodules.sprid_first||'test';
v_lname := v_imodules.sprid_last;
v_user := '"'||v_imodules.email_address||'"';
v_imodules.imod_id := '29';
v_imod_member_id := '"'||v_imodules.imod_id||'"';
v_spriden_first_name := '"SPRIDEN_FIRST_NAME"';
v_login := '"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"';
v_password := '"xxxxxxxxxxxxxxxxxxxxxxxx"';
v_record :='<?xml version="1.0" encoding="utf-8"?>'||
'<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'||' '||
'xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'||
'<soap:Body>'||'<Update xmlns:m='||v_link||'>'||'<AUTHENTICATION login='||v_login||' '||
'password='||v_password||' '||'addNonExistingIDs='||v_non_existing_ids||' '||'style='||
v_style||'/>'||'<MemberInformation ZZRIMOD_MEMBER_ID='||v_imod_member_id||'>'||
'<SPRIDEN_FIRST_NAME>'||v_fname||'</SPRIDEN_FIRST_NAME>'||'</MemberInformation>'||'</Update>'||
'</soap:Body></soap:Envelope>';
-- v_record := v_record := v_record||'<Update xmlns:m='||v_link||'>'||'<AUTHENTICATION login='||v_user||'>'||' '||
-- 'password='||v_password||' '||'addNonExistingIDs='||v_non_existing_ids||' '||'style='||
-- v_style||'/>'||'<MemberInformation ZZRIMOD_MEMBER_ID='||v_imod_member_id||' '||
-- 'column='||'"SPRIDEN_FIRST_NAME"'||' '||'newValue='||v_fname||'/>'||'</Update>';
dbms_output.put_line('code: '||v_record);
--v_record := v_record||v_separator||v_id||v_separator||v_name||v_separator||v_email;
--Http posting calls
Utl_Http.set_header(r => req,
name => 'Content-Type',
value => 'text/xml');
Utl_Http.set_header(r => req,
name => 'Content-Length',
value => to_char(length(v_record)) );
--JAM 03/25/08 - added to accomodate the missing soap action error
Utl_Http.set_header(r => req,
name => 'SOAPAction',
value => 'http://admin.imodules.com/ws_10/MemberQuery.asmx?WSDL');
Utl_Http.set_header(r => req,
name => 'MessageType',
value => 'CALL');
-- Utl_Http.set_authentication(r => req,
-- username => 'zzz',
-- password => 'ppppp',
-- scheme => 'Basic',
-- for_proxy => FALSE);
Utl_Http.write_text(r => req,
data => v_record);
resp := Utl_Http.get_response(r => req,
return_info_response => TRUE);
DBMS_OUTPUT.put_line('Status Code: ' || resp.status_code);
DBMS_OUTPUT.put_line('Reason Phrase: ' || resp.reason_phrase);
dbms_output.put_line('testing');
FOR i IN 1 .. Utl_Http.get_header_count(r => resp)
LOOP
Utl_Http.get_header(r => resp,
n => i,
name => H_Name,
value => H_Value);
--DBMS_OUTPUT.put_line( ... );
END LOOP;
BEGIN
LOOP
Utl_Http.read_text(r => resp, DATA => v_msg);
DBMS_OUTPUT.put_line(v_msg);
END LOOP;
EXCEPTION
WHEN Utl_Http.end_of_body THEN
NULL;
END;
Utl_Http.end_response(r => resp);
-- EXCEPTION
-- WHEN Utl_Http.request_failed THEN
-- DBMS_OUTPUT.put_line('Request failed: '||Utl_Http.Get_Detailed_Sqlerrm);
-- WHEN Utl_Http.http_server_error THEN
-- DBMS_OUTPUT.put_line('Http_Server_Error: '||Utl_Http.Get_Detailed_Sqlerrm);
-- WHEN Utl_Http.http_client_error THEN
-- DBMS_OUTPUT.put_line('Client Error: '||Utl_Http.Get_Detailed_Sqlerrm);
-- WHEN others THEN
-- DBMS_OUTPUT.put_line('Others2: '||Utl_Http.Get_Detailed_Sqlerrm);
-- Utl_Http.end_response(r => resp);
-- END;
--End of Htp posting calls
--UTL_FILE.put_line (f_iModules_output_test, v_record, false);
--htp.p('<post>'||v_record||'</post>');
END LOOP;
EXCEPTION
WHEN Utl_Http.request_failed THEN
DBMS_OUTPUT.put_line('Request failed: '||Utl_Http.Get_Detailed_Sqlerrm);
WHEN Utl_Http.http_server_error THEN
DBMS_OUTPUT.put_line('Http_Server_Error: '||Utl_Http.Get_Detailed_Sqlerrm);
WHEN Utl_Http.http_client_error THEN
DBMS_OUTPUT.put_line('Client Error: '||Utl_Http.Get_Detailed_Sqlerrm);
WHEN others THEN
DBMS_OUTPUT.put_line('Others2: '||Utl_Http.Get_Detailed_Sqlerrm);
Utl_Http.end_response(r => resp);
END;
-- close output file
--UTL_FILE.fclose (f_iModules_output_test);
--COMMIT;
/*EXCEPTION
WHEN OTHERS
THEN
ROLLBACK;
DBMS_OUTPUT.put_line ('Other Exception:' || SQLERRM);
-- DBMS_OUTPUT.put_line ('Other Exception:' || Utl_Http.Get_Detailed_Sqlerrm);
--COMMIT; */
-- END adm_iModules_test_output;
END adm_iModules_test;
Message was edited by:
user627523 -
Suspended Workflow in SharePoint 2013 with HTTP 401 Error!
I have a list workflow which starts automatically when creating an item to generate a serial number. But when any user create
a new item, the workflow suspend with the following details, and only the users with "Full Control" permissions can make the workflow work:
RequestorId: eda26c74-95ef-2733-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow
instance. Exception details: System.ApplicationException: HTTP 401 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["1"],"SPClientServiceRequestDuration":["88"],"SPRequestGuid":["eda26c74-95ef-2733-87b9-028d0512861d"],"request-id":["eda26c74-95ef-2733-87b9-028d0512861d"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"Cache-Control":["max-age=0,
private"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["NTLM","Basic realm=\"sp.contoso.com\""],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
RequireReadOnly"],"Date":["Sun, 27 Apr 2014 11:13:07 GMT"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance
instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)Hi AmrHanmam,
According to your description, my understanding is that SharePoint 2013 workflow suspend with 401 error.
For resolving your issue , please do as the followings:
Be sure User profile synchronization is started.
The user by whom you are logged is available in User Profile list.
Final step full synchronization of User Profile Application.
Here is a similar post for your reference:
http://social.technet.microsoft.com/Forums/en-US/8671e31e-fde2-454c-aba4-0fc6484dd873/sharepoint-2013-workflow-suspend-with-401-error?forum=sharepointcustomization
In addition, there is another reason for this issue, please take a look at:
http://support.microsoft.com/kb/2839070/en-us
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
HTTP 401 error for RosettaNet Request
I get a return code of 401 when I send a http request to another server. The private
process invokes a "Send Business Messgae" from the PIP3A2_Customer_RN2 public
workflow. In my Transport spec., I have specified the URI as http://199.22.31.222/Quantum
which is the destination machine. The full text of the messages displayed on
the console is shown below. I request is being sent as wlpisystem.
<Dec 10, 2001 5:15:56 PM PST> <Info> <B2B> <<User> ****SendQPARequestTag.java:In
Servlet...>
****SendQPARequestTag.java:In Servlet...
<Dec 10, 2001 5:15:56 PM PST> <Info> <B2B> <<User> ****SendQPARequestTag.java:**
**QPA Request: Message=<TextMessage[ID:P<286588.1008033356161.0>, <?xml version=
"1.0" ?><QPARequ...]> sent to JMS queue <com.bea.wlpi.EventQueue>>
****SendQPARequestTag.java:****QPA Request: Message=<TextMessage[ID:P<286588.100
8033356161.0>, <?xml version="1.0" ?><QPARequ...]> sent to JMS queue <com.bea.wl
pi.EventQueue>
<Dec 10, 2001 5:15:56 PM PST> <Info> <B2B> <<User> ****SendQPARequestTag.java:**
**After receive queue init:>
****SendQPARequestTag.java:****After receive queue init:
<Dec 10, 2001 5:15:56 PM PST> <Info> <B2B> <<B2B-BPM-Plugin> INFO: Log from Work
flow: Customer_PrivateWF started.>
<Dec 10, 2001 5:15:56 PM PST> <Info> <B2B> <<B2B-BPM-Plugin> INFO: Log from Work
flow: Starting Public Workflow: <?xml version="1.0" encoding="UTF-8"?>
<Pip3A2PriceAndAvailabilityQuery>
<GlobalPartnerRoleClassificationCode>Customer</GlobalPartnerRoleClassificati
onCode>
<ProductPriceAndAvailabilityQuery>
<ProductPriceAndAvailability>
<ProductLineItem>
<ProductQuantity>5000</ProductQuantity>
<productUnit>
<ProductPackageDescription>
<unitPrice>
<FinancialAmount>
<GlobalCurrencyCode>USD</GlobalCurrencyCode>
<MonetaryAmount>3.50</MonetaryAmount>
</FinancialAmount>
</unitPrice>
<ProductIdentification>
<GlobalProductIdentifier>QPA88</GlobalProductIdentifier>
</ProductIdentification>
</ProductPackageDescription>
</productUnit>
</ProductLineItem>
</ProductPriceAndAvailability>
</ProductPriceAndAvailabilityQuery>
<fromRole>
<PartnerRoleDescription>
<GlobalPartnerRoleClassificationCode>Customer</GlobalPartnerRoleClassifi
cationCode>
<PartnerDescription>
<GlobalPartnerClassificationCode>Distributor</GlobalPartnerClassificat
ionCode>
<BusinessDescription>
<GlobalBusinessIdentifier>123456789</GlobalBusinessIdentifier>
<GlobalSupplyChainCode>Information Technology</GlobalSupplyChainCode
>
</BusinessDescription>
</PartnerDescription>
<ContactInformation>
<contactName>
<FreeFormText>Jane Doe</FreeFormText>
</contactName>
<telephoneNumber>
<CommunicationsNumber>7205286001</CommunicationsNumber>
</telephoneNumber>
<EmailAddress>[email protected]</EmailAddress>
</ContactInformation>
</PartnerRoleDescription>
</fromRole>
<toRole>
<PartnerRoleDescription>
<GlobalPartnerRoleClassificationCode>Product Supplier</GlobalPartnerRole
ClassificationCode>
<PartnerDescription>
<GlobalPartnerClassificationCode>Manufacturer</GlobalPartnerClassifica
tionCode>
<BusinessDescription>
<GlobalBusinessIdentifier>987654321</GlobalBusinessIdentifier>
<GlobalSupplyChainCode>Information Technology</GlobalSupplyChainCode
>
</BusinessDescription>
</PartnerDescription>
</PartnerRoleDescription>
</toRole>
<thisDocumentGenerationDateTime>
<DateTimeStamp>20010612T154020.123Z</DateTimeStamp>
</thisDocumentGenerationDateTime>
<thisDocumentIdentifier>
<ProprietaryDocumentIdentifier>myDoc</ProprietaryDocumentIdentifier>
</thisDocumentIdentifier>
<GlobalDocumentFunctionCode>Request</GlobalDocumentFunctionCode>
</Pip3A2PriceAndAvailabilityQuery>
>
<Dec 10, 2001 5:15:58 PM PST> <Info> <B2B> <<B2B-BPM-Plugin> INFO: Log from Work
flow: PIP3A2_Customer_RN2 started. >
<Dec 10, 2001 5:15:58 PM PST> <Error> <B2B> <<HTTP-Transport> ERROR: HTTP error
during send to http://192.168.100.150:7001/Quantum: code=401, type=text/html,
re
sponse=...>
<Dec 10, 2001 5:15:58 PM PST> <Info> <B2B> <<B2B-BPM-Plugin> INFO: Log from Work
flow: PIP3A2_Customer_RN2Error sending message>
<Dec 10, 2001 5:15:58 PM PST> <Info> <WLPI> <<wlpirequest>
<started>2001-12-10 17:15:58.525</started>
<requestor>wlpisystem</requestor>
<templateid>1001</templateid>
<template-name>Customer_PrivateWF</template-name>
<templatedefinitionid>1001</templatedefinitionid>
<instanceid>27009</instanceid>
<actions>
</actions>
<completed>2001-12-10 17:15:58.525</completed>
</wlpirequest>
>
<Dec 10, 2001 5:15:59 PM PST> <Info> <WLPI> <<wlpirequest>
<started>2001-12-10 17:15:58.014</started>
<requestor>wlpisystem</requestor>
<templateid>1002</templateid>
<template-name>PIP3A2_Customer_RN2</template-name>
<templatedefinitionid>1002</templatedefinitionid>
<instanceid>27010</instanceid>
<actions>
<setvariable time="2001-12-10 17:15:58.014" variable="fromRole">Customer</se
tvariable>
<setvariable time="2001-12-10 17:15:58.014" variable="fromService">Customer
Service</setvariable>
<setvariable time="2001-12-10 17:15:58.014" variable="toRole">Product Suppli
er</setvariable>
<setvariable time="2001-12-10 17:15:58.014" variable="toService">Product Sup
plier Service</setvariable>
<setvariable time="2001-12-10 17:15:58.014" variable="businessActivityID">Qu
ery Price and Availability</setvariable>
<setvariable time="2001-12-10 17:15:58.014" variable="actionCode">Price and
Availability Query</setvariable>
<setvariable time="2001-12-10 17:15:58.014" variable="actionCodeVersion">1.3
</setvariable>
<setvariable time="2001-12-10 17:15:58.014" variable="PIP">3A2</setvariable>
<setvariable time="2001-12-10 17:15:58.014" variable="PIPVersion">1.3</setva
riable>
<setvariable time="2001-12-10 17:15:58.014" variable="retryCount">1</setvari
able>
<setvariable time="2001-12-10 17:15:58.014" variable="isSignal">false</setva
riable>
<setvariable time="2001-12-10 17:15:58.014" variable="SERVICE_CONTENT_SCHEMA
">3A2PriceAndAvailabilityQueryMessageGuideline_v1_3.xsd</setvariable>
<setvariable time="2001-12-10 17:15:58.014" variable="DOC_TYPE"><!DOCTYPE
Pi
p3A2PriceAndAvailabilityQuery SYSTEM '3A2PriceAndAvailabilityQueryMessageGuideli
ne_v1_3.dtd'></setvariable>
<activatetask time="2001-12-10 17:15:58.034" taskid="960254416076" name="wai
t for workflow to timeout"/>
<settaskduedate time="2001-12-10 17:15:58.034" taskid="960254416076" name="w
ait for workflow to timeout">2001-12-11 17:15:58.034</settaskduedate>
<activatetask time="2001-12-10 17:15:58.044" taskid="990730869247" name="Sen
d Message"/>
<setvariable time="2001-12-10 17:15:58.054" variable="rnProcessInstanceId">T
eleplan10080333568524</setvariable>
<setvariable time="2001-12-10 17:15:58.485" variable="messageCode">401</setv
ariable>
<marktaskdone time="2001-12-10 17:15:58.485" taskid="990730869247" name="Sen
d Message"/>
<setvariable time="2001-12-10 17:15:58.485" variable="reason">Error sending
message</setvariable>
<workflowdone time="2001-12-10 17:15:59.697" name="PIP3A2_Customer_RN2"/>
</actions>
<completed>2001-12-10 17:15:59.697</completed>
</wlpirequest>
>
<Dec 10, 2001 5:16:00 PM PST> <Info> <WLPI> <<wlpirequest>
<started>2001-12-10 17:15:56.291</started>
<requestor>wlpisystem</requestor>
<templateid>1001</templateid>
<template-name>Customer_PrivateWF</template-name>
<templatedefinitionid>1001</templatedefinitionid>
<instanceid>27009</instanceid>
<actions>
<setvariable time="2001-12-10 17:15:56.301" variable="ProductID">QPA88</setv
ariable>
<setvariable time="2001-12-10 17:15:56.301" variable="ProductQuantity">5000<
/setvariable>
<setvariable time="2001-12-10 17:15:56.301" variable="ProductUnitPrice">3.50
</setvariable>
<activatetask time="2001-12-10 17:15:56.311" taskid="2" name="Start the Publ
ic Workflow"/>
<setvariable time="2001-12-10 17:15:56.321" variable="PIPInput">[B@7803ee</s
etvariable>
</actions>
<completed>2001-12-10 17:16:00.067</completed>
</wlpirequest>
>Hi
We are also facing the same problem. but as you mentioned in solution.
user: <domain>/<admin-user>
pw: pw
I am getting the same problem of Error 401. Kindly describe in detail with example.
Thanks
Regards,
R Karthikeyan -
HTTP 401 Error when sending RosettaNet Message
I get a return code of 401 when I send a http request to another server. The private
process invokes a "Send Business Messgae" from the PIP3A2_Customer_RN2 public
workflow. In my Transport spec., I have specified the URI as http://192.168.100.150:7001/Quantum
which is the destination machine. The full text of the messages displayed on the
console is shown below. I request is being sent as wlpisystem.
<Dec 10, 2001 5:15:56 PM PST> <Info> <B2B> <<User> ****SendQPARequestTag.java:In
Servlet...> ****SendQPARequestTag.java:In Servlet... <Dec 10, 2001 5:15:56 PM
PST> <Info> <B2B> <<User> ****SendQPARequestTag.java:** **QPA Request: Message=<TextMessage[ID:P<286588.1008033356161.0>,
<?xml version= "1.0" ?><QPARequ...]> sent to JMS queue <com.bea.wlpi.EventQueue>>
****SendQPARequestTag.java:****QPA Request: Message=<TextMessage[ID:P<286588.100
8033356161.0>, <?xml version="1.0" ?><QPARequ...]> sent to JMS queue <com.bea.wl
pi.EventQueue> <Dec 10, 2001 5:15:56 PM PST> <Info> <B2B> <<User> ****SendQPARequestTag.java:**
**After receive queue init:> ****SendQPARequestTag.java:****After receive queue
init: <Dec 10, 2001 5:15:56 PM PST> <Info> <B2B> <<B2B-BPM-Plugin> INFO: Log from
Work flow: Customer_PrivateWF started.> <Dec 10, 2001 5:15:56 PM PST> <Info> <B2B>
<<B2B-BPM-Plugin> INFO: Log from Work flow: Starting Public Workflow: <?xml version="1.0"
encoding="UTF-8"?> <Pip3A2PriceAndAvailabilityQuery> <GlobalPartnerRoleClassificationCode>Customer</GlobalPartnerRoleClassificati
onCode> <ProductPriceAndAvailabilityQuery> <ProductPriceAndAvailability> <ProductLineItem>
<ProductQuantity>5000</ProductQuantity> <productUnit> <ProductPackageDescription>
<unitPrice> <FinancialAmount> <GlobalCurrencyCode>USD</GlobalCurrencyCode> <MonetaryAmount>3.50</MonetaryAmount>
</FinancialAmount> </unitPrice> <ProductIdentification> <GlobalProductIdentifier>QPA88</GlobalProductIdentifier>
</ProductIdentification> </ProductPackageDescription> </productUnit> </ProductLineItem>
</ProductPriceAndAvailability> </ProductPriceAndAvailabilityQuery> <fromRole>
<PartnerRoleDescription> <GlobalPartnerRoleClassificationCode>Customer</GlobalPartnerRoleClassifi
cationCode> <PartnerDescription> <GlobalPartnerClassificationCode>Distributor</GlobalPartnerClassificat
ionCode> <BusinessDescription> <GlobalBusinessIdentifier>123456789</GlobalBusinessIdentifier>
<GlobalSupplyChainCode>Information Technology</GlobalSupplyChainCode
</BusinessDescription> </PartnerDescription> <ContactInformation> <contactName><FreeFormText>Jane Doe</FreeFormText> </contactName> <telephoneNumber> <CommunicationsNumber>7205286001</CommunicationsNumber>
</telephoneNumber> <EmailAddress>[email protected]</EmailAddress> </ContactInformation>
</PartnerRoleDescription> </fromRole> <toRole> <PartnerRoleDescription> <GlobalPartnerRoleClassificationCode>Product
Supplier</GlobalPartnerRole ClassificationCode> <PartnerDescription> <GlobalPartnerClassificationCode>Manufacturer</GlobalPartnerClassifica
tionCode> <BusinessDescription> <GlobalBusinessIdentifier>987654321</GlobalBusinessIdentifier>
<GlobalSupplyChainCode>Information Technology</GlobalSupplyChainCode
</BusinessDescription> </PartnerDescription> </PartnerRoleDescription> </toRole><thisDocumentGenerationDateTime> <DateTimeStamp>20010612T154020.123Z</DateTimeStamp>
</thisDocumentGenerationDateTime> <thisDocumentIdentifier> <ProprietaryDocumentIdentifier>myDoc</ProprietaryDocumentIdentifier>
</thisDocumentIdentifier> <GlobalDocumentFunctionCode>Request</GlobalDocumentFunctionCode>
</Pip3A2PriceAndAvailabilityQuery>
<Dec 10, 2001 5:15:58 PM PST> <Info> <B2B> <<B2B-BPM-Plugin> INFO: Log fromWork flow: PIP3A2_Customer_RN2 started. > <Dec 10, 2001 5:15:58 PM PST> <Error>
<B2B> <<HTTP-Transport> ERROR: HTTP error during send to http://192.168.100.150:7001/Quantum:
code=401, type=text/html, re sponse=...> <Dec 10, 2001 5:15:58 PM PST> <Info>
<B2B> <<B2B-BPM-Plugin> INFO: Log from Work flow: PIP3A2_Customer_RN2Error sending
message> <Dec 10, 2001 5:15:58 PM PST> <Info> <WLPI> <<wlpirequest> <started>2001-12-10
17:15:58.525</started> <requestor>wlpisystem</requestor> <templateid>1001</templateid>
<template-name>Customer_PrivateWF</template-name> <templatedefinitionid>1001</templatedefinitionid>
<instanceid>27009</instanceid> <actions> </actions> <completed>2001-12-10 17:15:58.525</completed>
</wlpirequest>
<Dec 10, 2001 5:15:59 PM PST> <Info> <WLPI> <<wlpirequest> <started>2001-12-1017:15:58.014</started> <requestor>wlpisystem</requestor> <templateid>1002</templateid>
<template-name>PIP3A2_Customer_RN2</template-name> <templatedefinitionid>1002</templatedefinitionid>
<instanceid>27010</instanceid> <actions> <setvariable time="2001-12-10 17:15:58.014"
variable="fromRole">Customer</se tvariable> <setvariable time="2001-12-10 17:15:58.014"
variable="fromService">Customer Service</setvariable> <setvariable time="2001-12-10
17:15:58.014" variable="toRole">Product Suppli er</setvariable> <setvariable time="2001-12-10
17:15:58.014" variable="toService">Product Sup plier Service</setvariable> <setvariable
time="2001-12-10 17:15:58.014" variable="businessActivityID">Qu ery Price and
Availability</setvariable> <setvariable time="2001-12-10 17:15:58.014" variable="actionCode">Price
and Availability Query</setvariable> <setvariable time="2001-12-10 17:15:58.014"
variable="actionCodeVersion">1.3 </setvariable> <setvariable time="2001-12-10
17:15:58.014" variable="PIP">3A2</setvariable>
<setvariable time="2001-12-10 17:15:58.014" variable="PIPVersion">1.3</setva riable>
<setvariable time="2001-12-10 17:15:58.014" variable="retryCount">1</setvari able>
<setvariable time="2001-12-10 17:15:58.014" variable="isSignal">false</setva riable>
<setvariable time="2001-12-10 17:15:58.014" variable="SERVICE_CONTENT_SCHEMA ">3A2PriceAndAvailabilityQueryMessageGuideline_v1_3.xsd</setvariable>
<setvariable time="2001-12-10 17:15:58.014" variable="DOC_TYPE"><!DOCTYPE Pi p3A2PriceAndAvailabilityQuery
SYSTEM '3A2PriceAndAvailabilityQueryMessageGuideli ne_v1_3.dtd'></setvariable>
<activatetask time="2001-12-10 17:15:58.034" taskid="960254416076" name="wai t
for workflow to timeout"/> <settaskduedate time="2001-12-10 17:15:58.034" taskid="960254416076"
name="w ait for workflow to timeout">2001-12-11 17:15:58.034</settaskduedate>
<activatetask time="2001-12-10 17:15:58.044" taskid="990730869247" name="Sen d
Message"/> <setvariable time="2001-12-10 17:15:58.054" variable="rnProcessInstanceId">T
eleplan10080333568524</setvariable> <setvariable time="2001-12-10 17:15:58.485"
variable="messageCode">401</setv ariable> <marktaskdone time="2001-12-10 17:15:58.485"
taskid="990730869247" name="Sen d Message"/> <setvariable time="2001-12-10 17:15:58.485"
variable="reason">Error sending message</setvariable> <workflowdone time="2001-12-10
17:15:59.697" name="PIP3A2_Customer_RN2"/> </actions> <completed>2001-12-10 17:15:59.697</completed>
</wlpirequest>
<Dec 10, 2001 5:16:00 PM PST> <Info> <WLPI> <<wlpirequest> <started>2001-12-1017:15:56.291</started> <requestor>wlpisystem</requestor> <templateid>1001</templateid>
<template-name>Customer_PrivateWF</template-name> <templatedefinitionid>1001</templatedefinitionid>
<instanceid>27009</instanceid> <actions> <setvariable time="2001-12-10 17:15:56.301"
variable="ProductID">QPA88</setv ariable> <setvariable time="2001-12-10 17:15:56.301"
variable="ProductQuantity">5000< /setvariable> <setvariable time="2001-12-10 17:15:56.301"
variable="ProductUnitPrice">3.50 </setvariable> <activatetask time="2001-12-10
17:15:56.311" taskid="2" name="Start the Publ ic Workflow"/> <setvariable time="2001-12-10
17:15:56.321" variable="PIPInput">[B@7803ee</s etvariable> </actions> <completed>2001-12-10
17:16:00.067</completed> </wlpirequest>
>
I found the response to the problem. I summarize the solution in the following point :
1- when you connect to a standalone content services server via the webservices api, you get a single String as cookie and to upload a document to server you use the same single cookie.
2- bu when you connect to cluster content services via the webservices api, you get an Array of String as cookies and to upload a document to server you need to transform the array of cookie into a single String cookie to be able to be authenticated by the http server, look to the following code
String cookie="";
for(int i=0;i < connection.getCookie().length;i++) {
cookie = cookie + connection.getCookie() +";"; -
How to Integrate Oracle Adf Mobile App and DMS?
Hi All,
I Have created adf mobile application.In which I am using synchronization feature as SQLite embedded.its working fine.
But I need to implement DMS integration for sync.Can anyone please tel me how to integrated DMS with Oracle ADF mobile application.
I Have done installation of DMS in windows7 even I installed agent in android simulator. I am facing problem how these integration will Happen.
Regards
SankarHi Shankar,
Please send me an email directly and we can discuss this in more detail outside of the context of the forum. Please send to [email protected]
thanks
mike
Maybe you are looking for
-
Problem removing backed up files from iPod
I backed up a lot of files from my macbook to my iPod classic. When connected to iTunes, they appear under "other". The "other" files are about 55GB. I don't need the backed up files any more, but can't find them listed anywhere when I view my iPod c
-
Hi i want to archive customers which are not in use and which don't have any transactions iam trying to do the same through SARA .When i have gone through this process and scheduled the job the spool job doesn't contain any data .any guess for the r
-
Enabling FI-SL extractor with delta capability
I am working on enabling FI-SL (3FI_SL_*) extractor with delta capability. Implemented OSS note 328197 successfully and also related OSS notes. This works on totals table. Source system is 4.6C Tested BW01, BW03 and everything seems to be fine, and s
-
Hi, If I tries to establish a PPTP vpn.. when I connect to wired LAN it works but when I try the same in wireless LAN it doesnt work(tested with windows disabled). can anyone help me on this. Model
-
Backup set is over 7 days -- DB status is NOMOUNT -- RESTORE CONTROLFILE
I'm trying to do a restore of a control file using RMAN. After doing a STARTUP NOMOUNT of the database, I try: SET DBID = [whatever] RESTORE CONTROLFILE FROM AUTOBACKUP; The error I get is: channel ORA_DISK_1: no AUTOBACKUP in 7 days found And that's