 |
| Recent blog posts: | |
 |
| They have birthday today: | |
 |
| Forums: | | |
 |
| Discuss: | |
 |
| Recent forum topics: | |
 |
| Recent forum comments: | |
 |
| Модератор: | |
 |
Friday, 11 August 2006
|
| JAAS: configuring Websphere web-application to a custom
realm/LoginModule Kilian Goetz 00:49:55 |
| | Hi,
iВґve got to set up a Apache MyFaces 1.1 Webapplication on a WebSphere 5.1. My problem is to configure the JAAS-Login. The application has a custom LoginModule wich handles User-Authentication self by hibernate. It works fine on TomcatВґs and JBoss. IВґve installed the application with the Websphere AdminConsole (it works fine) and configured JAAS Applications Login with the correct realm-name and LoginModules of my application. Now if i want to log in, my own Login-Form only accepts the windows-user login but not uses my custom LoginModule/realm.
code-fragment form web.xml:
<security-constraint> <display-name>MyUser</display-name> <web-resource-collection> <web-resource-name>MyLogin</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>MyUser</role-name> </auth-constraint> </security-constraint>
<login-config> <auth-method>FORM</auth-method> <realm-name>MyLogin</realm-name> <form-login-config> <form-login-page>/login.jsf</form-login-page> <form-error-page>/error.jsf</form-error-page> </form-login-config> </login-config>
<security-role> <role-name>MyUser</role-name> </security-role>
an from server.xml configuration of tomcat:
<Realm className="org.apache.catalina.realm.JAASRealm" appName="MyLogin" userClassNames="MyLogin.UserNamePrincipal" roleClassNames="MyLogin.RolePrincipal" debug="99" useContextClassLoader="true" />
jaas.config:
MyLogin { MyLogin.auth.module.MyLoginModule requisite; };
How could i configure this realm-assignment in WebSphere 5.1 (AdministratorConsole or config-file)?
Pls help me, iВґm searching for a solution for a long time
kiliang.
|
| | 6 answers | Add comment |
|
| Session sharing Roy Tsang 00:29:00 |
| | Would you tell me how can I share session variable across several context(application)?
I have developed several applications on the websphere. In fact, they are using the same user database. User login application A, then they can access application B without login.
Does Single Sign On (SSO) can do that job?
thank you very much.
|
| | 3 answer | Add comment |
|
| help with teranews/xnews Bopper 04 00:22:14 |
| | I have forgotten my teranews password how the hell do I get started with xnews I cannot figure it out and I am no wiser for reading all the information that come with it. I cannot stand all that technical stuff its a genuine phobia I have, it brings on anxiety. I was doing fine till my computer hsd to be repaird.
Can anyone help please
B04
|
| | 15 answers | Add comment |
Thursday, 10 August 2006
|
| I am stuck on this..can you help please? Richard 23:16:59 |
| | This may be a silly question but it has me really stumped! I imported an item into the UK recently which I paid by credit card, and so I enter the transaction in my credit card register. Now along comes the bill from Fedex for the import duty and VAT and an admin charge for the item and I paid this by cheque.
I am confused as to quite how I should deal with this Fedex bill in my entry into the register for my cheques as the vat figure is not now part of the original goods that it is charged on if you follow me.
Many thanks if you can guide me on this.
Richard -- Richard K
|
| | 6 answers | Add comment |
|
| Re: "Just so there's no mistake." Nomen Nescio 22:29:25 |
| | Do keep in mind that at some point, the X-No-Archive policy for the Google> Groups was changed so that a post actually remains in the archive for seven> days before it will no longer be searchable. The chances of someone replying> to an X-No-Archive post, and possibly not using X-No-Archive in the reply,> is much greater with a seven day timeframe before the post is removed.> Look at your profile. Google does NOT delete messages from its archive after 7 days, it just stops displaying them on the front-end, but they are STILL THERE.
|
| | 6 answers | Add comment |
|
| Find EJBs already deployed in WAS using Admin Console GUI Guest 21:45:59 |
| | How can I see all the EJBs (stateless session beans) that are bound to node/cell in WebSphere App Server 5.1.x?
I can see the EJBs bound in WSAD Test Server by running Universal Test Client on WSAD Test Server. The EJBs will be displayed under ejb directory as com.myejb.....
Is there a similar way to see all the EJBs that are already bound in WAS (not WSAD) using Admin Console GUI?
|
| | Add comment |
|
| Monitoring Health of installed App Silverfox 21:41:29 |
| | We use MQ and WebSphere App Server 5.1. We have a number of applications installed that pass data via MQ from a series of hand held scanners to our backend database.
I need to be able to monitor the health of not only the WebSphere Application Server but also the individual applications. If one of them goes down/hangs I need to be alerted.
How would I go about this?
|
| | 1 answer | Add comment |
|
| Exception com.ibm.ejs.cm.proxy.OracleConnectionProxy is closed
while querying database ..Please hel Taneja Akash 17:22:44 |
| | Hi All,
I am getting following exception while trying to query oracle database in my onMessage() method of JMS listener. Can you please suggest any solutions? Currently my datasource is Non-XA datasource. Is it required to have a XA datasource or this is some another problem.I have checked my code it works fine if i am calling it through unit test case instead of JMS Listener.
com.ibm.websphere.ce.cm.StaleConnectionException: class com.ibm.ejs.cm.proxy.OracleConnectionProxy is closed at com.ibm.ejs.cm.proxy.OracleConnectionProxy.prepareStatement(OracleConnectionProxy.java:206) at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:257)
Warm Regards Akash
|
| | Add comment |
|
| Overhead on enabling Diganostic traces for data source alone Arun S 16:45:10 |
| | Hi All, If we enable the diagnostic traces for Data Sources alone in production what would be the ballpark estimate on impact of log size,application performance and CPU usages. Any web references for this impact study would be useful.
Thanks, Arun
|
| | 1 answer | Add comment |
|
| JMX Admin Client Blues Guest 16:01:56 |
| | I am trying to connect to a remote server and I am getting this error. The system.out log says this
Any help is appreciated.
System.out ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [8/1/06 11:14:49:502 CDT] 0000000a RoleBasedConf W loadSecurityPolicy: cannot load AdminOperations ,continue with the default mbean security policy. [8/1/06 11:14:49:767 CDT] 0000000a JMXSoapAdapte A ADMC0013I: The SOAP connector is available at port 8880 [8/1/06 11:14:51:158 CDT] 0000000a distSecurityC I SECJ0243I: Security service started successfully
But I get this error ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: Could not create SOAP Connector to connect to host ACDV0548 at port 8880 at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:368) at com.rps.was.jmx.JMXRemoteClientApp.createAdminClient(JMXRemoteClientApp.java:64) at com.rps.was.jmx.JMXRemoteClientApp.main(JMXRemoteClientApp.java:42) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:299) ... 2 more Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:251) at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPConnectorClient.java:184) ... 7 more Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error parsing HTTP status line "...": java.util.NoSuchElementException; targetException=java.lang.IllegalArgumentException: Error parsing HTTP status line : java.util.NoSuchElementException] at org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown Source) at org.apache.soap.rpc.Call.invoke(Unknown Source) at com.ibm.ws.management.connector.soap.SOAPConnectorClient$2.run(SOAPConnectorClient.java:234) at java.security.AccessController.doPrivileged(Native Method) at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:231) ... 8 more
|
| | 3 answer | Add comment |
|
| can i install websphere 5.1 on AIX 5.3 32bit processor Guest 15:26:12 |
| | can anybody tell me, Installation of websphere application server 5.1 can be done on AIX 5.3 with 32 bit processor or not??
thank you in advance.
|
| | 3 answer | Add comment |
|
| SOAP Attachment interop(C#<->Java) Guest 15:21:05 |
| | Hi, I have a requirement to implement WebServices Client in C# and WebServices Server in Java(webSphere). The application involves uploading attachments. Preliminary research suggest I use MTOM, but the webSphere app server I am going to be using does not support MTOM. I have to restrict my ideas towards either MIME or DIME. Please suggest best approach with the mentioned constraints...any sample code with the interop(C# <-> Java) would be appreciated.
Thanks in advance.
Cheers, Sridhar.
|
| | Add comment |
|
| Problems installing with $AdminApp install Guest 15:12:51 |
| | Hi all,
IВґm trying to make a script to deploy applications with jacl, my code is:
######################################################################### if {$argc < 4} { puts "Use: <wsadmin> install_app.jacl <cell> <node> <server> <ear>" exit }
set cell [lindex $argv 0] set node [lindex $argv 1] set server [lindex $argv 2] set ear [lindex $argv 3]
$AdminApp install $ear {-cell $cell -node $node -server $server} $AdminConfig save #########################################################################
My problem is in the exec of the script, it logs next:
------------------------------------------------------------------------------ WASX7017E: Se ha recibido una excepciГіn al ejecutar el archivo "instalar_app.jacl"; informaciГіn de excepciГіn: com.ibm.websphere.management.exception.AdminException javax.management.MBeanException com.ibm.websphere.management.exception.AdminException: ADMA5047E: No existe el nombre de cГ©lula $cell en la configuraciГіn. ------------------------------------------------------------------------------
so, as you can see, it doesnВґt "understand" the argument $<var> between the "{}".
Anybody knows how can i type my vars between that "{}" so it works fine ?? IВґve been trying with quotes, back slash and some else but without success.
Thanks a lot.
|
| | 2 answer | Add comment |
|
| Websphere documentation is poor Josh.S17@Gmail.Com 12:19:59 |
| | Is it just me or do others agree that the websphere documentation is quite poor. Does anyone have experiences with other application servers. Is weblogic any better?
|
| | 1 answer | Add comment |
|
| Re: So MUCH indirection! So Little Productivity! Guest 11:50:25 |
| | Have you considered a change of career? From your post it sounds like you would make a good philosopher
|
| | 3 answer | Add comment |
|
| WAS 6.1 - WSJdbcDataSource incompatible with OracleDataSource Mauro Velasco 03:12:09 |
| | Hi all, In WAS 6.1 I created a Datasource but when I'm looking for it in my application in this way
ds = (OracleDataSource) ctx.lookup("java:comp/env/"+dataSource);
Got thw following com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource incompatible with oracle.jdbc.pool.OracleDataSource
I need use OracleDataSource and for this have two questions:
1. Why WAS return a WSJdbcDataSource object when in the Datasource configuration I specify oracle.jdbc.pool.OracleConnectionPoolDataSource and <res-type>oracle.jdbc.pool.OracleDataSource</res-type> in my web.xml ?
2. Exist some way to change this configuration in WAS??
Pls any idea or help is very apreciated
best regards Mauro
|
| | 2 answer | Add comment |
|
| websphere application deployment through admin console should ask
for configuration of Provider URL Tirumal B 02:01:51 |
| | I need websphere application server to ask me for configuration of a Provider URL during the deployment of an application. THiss configuraiton is specific to the deployed applcaiton. The resource can actually be configured under resource provider URLs but i want that screen to popup during the deployment of the appication
|
| | Add comment |
|
| Re: JNDI lookup of resources Matthias R Engelhardt 01:03:02 |
| | I am trying the same thing and have also a problem. It seems that I came one step less than you - I get "Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/ejs/ras/Tr". I could find no .jar library containing class "Tr". Does somebody know where to find it (I am using IBM Rational Application Developer 6.0 on a Suse Linux 9.1 computer).
And is the original problem soved in the meantime? Thanks in advance.
|
| | 2 answer | Add comment |
|
| Scripts to display Websphere performance statistics Klh 00:55:48 |
| | We're running WAS 5.0 on Windows 2003 advanced server.
Occassionally we have performance issues for which we would like to be able to take a quick snap shot of several statistics, like:
- connection pool count - thread pool count - avg response time for the servlet
We have Tivoli Performance viewer, but it takes so long (about 30 minutes) for the viewer to start up that often times the problem has gone away or we've had to reboot our server before we can get the statistics we need.
I was wondering if anybody had some DOS command line scripts that we could run to obtain this information when we're having a problem.
Thanks in advance, KLH
|
| | Add comment |
|
| Question about userid/password management Rswartwood 00:47:11 |
| | I'm working with a client who wants to access an FTP server from a Timer EJB in WAS 6.0. They need a userid and password to access the server but aren't supposed to store this information in a properties file. Does anyone have any thoughts on how/where to store this?
Thanks Ralph Swartwood
|
| | 1 answer | Add comment |
|
| Hot code replace not working with MyEclipse 5.0M2 and Websphere 6.0 Nimisha Wale 00:07:16 |
| | Hi,
I am getting issues in hot code replacement while connecting to externally started Websphere server through MyEclipse. I am able to debug my application fine with MyEclipse but when I try to compile something it says "Target VM does not support hot code replcement". If I start my server with -Xj9 as VM argument, then I get an error saying "Could not start the JVM". Also, there is a mismatch in current environment information between SystemOut.log and startServer.log. While startServer.log says that Java version is JIT enabled, SystemOut.log says that JIT is disabled.
Please let me know how to fix this.
Thanks
|
| | Add comment |
Wednesday, 9 August 2006
|
| Re: Sitemesh and WAS 6 David Hamilton 23:54:38 |
| | This question seems abandoned - does anybody know whether a fix exists for WAS 6.0.x? If not, are there known workarounds?
|
| | 1 answer | Add comment |
|
|