Missing IBM Websphere classes for SSO (com.ibm.jca.idtoken) - websphere

I am trying to enable SSO on a WAS 8.5, which is installed on an AS400, and for this I need to use the following classes in java:
import com.ibm.eim.token.IdentityToken;
import com.ibm.jca.idtoken.ConnectionFactoryImpl;
import com.ibm.jca.idtoken.ConnectionSpecImpl;
import com.ibm.jca.idtoken.IdentityTokenFactory;
I found the package com.ibm.eim in \QIBM\ProdData\OS400\security\eim on the WAS server. However, I cannot find the package com.ibm.jca.idtoken in the file system nor on the IBM Knowledge Center website either. Where can I get it ?

Okay I finally found it. It is here in a jar in a jar in a rar file :
com.ibm.jca.idtoken:
\QIBM\ProdData\OS400\security\eim\idTokenRA.rar\idTokenRA.jar\com\ibm\jca\idtoken\
com.ibm.eim.token:
\QIBM\ProdData\OS400\security\eim\idTokenRA.rar\idToken.jar\com\ibm\eim\token\

Related

Upgraded to grails 3 and now get unable to resolve class org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap

unable to resolve class org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap
# line 4, column 1.
import org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap
This happened when I upgraded grails from 2.2.4 to 3.1.3.
Is there some new place I need to import this too? Or is there a dependency I need to add to my gradle build file?
See step 5 on this page, https://docs.grails.org/3.0.x/guide/upgrading.html
Step 5 - Modify Package Imports In Grails 3.x all internal APIs can be
found in the org.grails package and public facing APIs in the grails
package. The org.codehaus.groovy.grails package no longer exists.
All package declaration in sources should be modified for the new
location of the respective classes. Example
org.codehaus.groovy.grails.commons.GrailsApplication is now
grails.core.GrailsApplication.

Error in "import org.car2x.veins.subprojects.veins_inet.VeinsInetManager" SimuLTE's Highway.ned file

I tried to install simuLTE and followed the versions according to https://github.com/inet-framework/simulte/releases. After downloading I imported the project in Omnet++(I build the INET3.6.6 before importing simuLTE )
Then I imported veins and tried to import veins into simuLTE according to the instructions given in https://simulte.com/add_veins.html
While running (after building the project) the project lte--> simulation --> card --> omnetpp.ini, I am getting the error in "Highway.ned" file. The screenshot of the errors is attached. I tried different paths in the "import org.car2x.veins.subprojects.veins_inet.VeinsInetManager" but i am getting error.
//import org.car2x.veins.subprojects.veins_inet.VeinsInetManager;
import veins.veins_inet.VeinsInetManager;
The error is: cannot resolve module type 'VeinsInetManager'(not in the loaded NED file?)
What is the reason of this error, where am I going wrong?
First you have to check if the project is referenced.
Project->Propierties->Project References.
Second if this doesn't works use a import with *.
Like import org.car2x.veins.subprojects.veins_inet.*;
Third check versions. Maybe not compatible.

python lambda not able to import user defined modules

I have a python lambda which turns out to be a bit long so we decided to split it into modules. and now when i try to import the module in the lambda_handler its seems to be giving following error
Unable to import module 'defghi': attempted relative import with no known parent package
abc.py which has got lambda_handler in it, is trying to import the defghi.py methods as follows
from defghi import some_method_1, some_method_2
tried this as well
from .defghi import some_method_1, some_method_2
both the files are in the same directory
any sort of help would be appreciated, Thanks in adavance
Finally got that working it was the build scripts which where causing the issue in my project.
The build script which created the zip file where expecting only one .py file in the directory which was a problem. So the zip created never had other files which then gave error cannot import.
So to answer the question its perfectly fine to split the big lambdas into modules and keep them a bit readable and import into the main lambda_handler the required modules.

Unable to import Spring Security #Secured Annotation into Grails 3

I am currently following the Spring Security 3.0.0.M1 plugin tutorial for Grails here and I appear to be stuck on Step 8. Using the statement import grails.plugin.springsecurity.annotation.Secured does not work because Grails cannot resolve the package name. I know that Spring Security for Grails 3 is in its infancy, but has anyone been able to get past this step yet? For reference, here is my SecureController class (with a another import that also does not work):
package ldaptest.controllers
import grails.plugin.springsecurity.annotation.Secured;
import org.springframework.security.access.annotation.Secured;
#Secured('ROLE_ADMIN')
class SecureController {
def index() {
render 'Secure access only'
}
}
I may found a solution:
Create a "lib" folder e.g. inside your "grails-app" directory.
Download the SpringSecurityCore JAR from here and move it into the lib directory
Add gradle dependency:
compile files('lib/spring-security-core-3.0.0.M1.jar')
Hope this helps.
Greetings
I had:3,1,1 the save problem with my application. I solved it by adding as a library to my project. However I had to change import package to make it work.
import org.springframework.security.access.annotation.Secured
I am using IntelliJ IDEA, I just has to search the maven repo for the spring-security-core:3.1.1.
In IntelliJ you do : File > Project Structure > Libraries > Add > From Maven Repository. Then do the search according to the version of "spring-security-core" you want to use.

import package without edit the manifest file in org.restlet

I am using Restlet for my communication between my clients (JSE2) and my server(GAE).
The clients are OSGi based.
I have a shared bundle containing my resource interfaces and a bundle containing the code to wrap a resource to a ClientResource. But the org.restlet bundle doesn't import any of these bundles. I think its not the right solution to edit the manifest of the org.restlet bundle and import the shared bundle manualy. Also this is a very static solution.
Is there a beter way to import these interface so i can wrap them into a Restlet ClientResource?
This is the exception where i'm dealing with:
java.lang.ClassNotFoundException: *** Class 'crm.resources.server.restlet.ContactResource' was not found because bundle org.restlet [3] does not import 'crm.resources.server.restlet' even though bundle crm.shared.resources.server [4] does export it. To resolve this issue, add an import for 'crm.resources.server.restlet' to bundle org.restlet [3]. ***
Update: Its useless to edit the manifest because the shared bundle uses some imports from the org.restlet bundle. So when you try to start the org.restlet bundle the imported packages from the shared bundle are missing. If you start the shared bundle first, he miss the packages from the org.restlet. (I hope i'm explaining it clearly)
I understand your issue.
The best solution i came up with is to add "DynamicImport-Bundle: *" in org.restlet MANIFEST-File (2.1.2 so far).
At least, that prevents you from circular dependencies and doesn't force you to manually adjust the imports once you change your restlet application.
See also: https://github.com/restlet/restlet-framework-java/issues/6
Best regards,
Simon

Resources