websphere-7

klist command usage related to Single Sign on for WAS 7 application

做~自己de王妃 提交于 2019-12-13 03:46:53
问题 Team, I am trying to implement SSO for a WAS7 based web application using Kerberos & SPNEGO. I am almost done with the configuration. I have few doubts on Kerberos. When I execute the command klist , following is the output. Ticket cache: FILE:/tmp/krb5cc_38698 Default principal: pocsso1@POC.MAIL.COM Valid starting Expires Service principal 01/09/2014 16:15 02/09/2014 02:21 krbtgt/POC.MAIL.COM@POC.MAIL.COM renew until 08/09/2014 16:15 My Question is "what expires and renew indicates here.?"

Can't change log detail levels permanently with a Jython script (WAS 7)

跟風遠走 提交于 2019-12-13 03:00:31
问题 I'm trying to change WebSphere's Log Detail Levels with a Jython script: .. AdminTask.setTraceSpecification('[-serverName server1 -nodeName qnode -traceSpecification com.ibm.*=all=enabled]') AdminConfig.save() .. After successfully running the script I'm checking "Logging and Tracing > {server_name} > Diagnostic trace service > Change log detail levels. The Runtime tab reflects the setting (the traceSpecification) I've entered in my script, but the Configuration tab remains unchanged, so, my

StringBuilder: ArrayIndexOutOfBoundsException

旧城冷巷雨未停 提交于 2019-12-12 21:29:05
问题 We're experiencing a strange issue with WebSphere 7/ IBM JDK 6, where one of the nodes has some initialization issue. We have some code which calls InitialContext.lookup and on this node we're getting sometimes the following exception: Caused by: java.lang.ArrayIndexOutOfBoundsException at java.lang.String.getChars(String.java:666) at java.lang.StringBuilder.append(StringBuilder.java:207) at javax.naming.spi.NamingManager.getURLContext(NamingManager.java:646) at javax.naming.InitialContext

WSJDBCConnection does not wrap objects of type oracle.jdbc.OracleConnection

无人久伴 提交于 2019-12-12 18:09:52
问题 I saw a similar question asked: Issue while creating Oracle ARRAY Type in java using ArrayDescriptor However my issue is that other coders on the team are using the same code and apparently it is working fine for them. Connection conn = null; Connection oracleConn = null; CallableStatement stmt = null; try { conn = this.getDataSource().getConnection(); if ( conn.isWrapperFor(oracle.jdbc.OracleConnection.class)) { oracleConn = conn.unwrap(oracle.jdbc.OracleConnection.class); } I did not

Getting Websphere v7.0 Running with eclipse seems to not see the server start

假如想象 提交于 2019-12-12 09:09:08
问题 So I created a Websphere Application Server in Eclipse and pointed it at my WAS_HOME and the profile I created. Whenever I try to start the server, it starts fine and according to the log I see... [2/22/12 14:16:25:037 EST] 00000000 WsServerImpl A WSVR0001I: Server server1 open for e-business However, Eclipse says it is still waiting to start, typically it sticks at 23%. Eventually it times out saying it couldn't start, however, the instance is still up and running fine. How do I get it to

Simplest way of accessing a Spring-exported JMX bean on Websphere 7.0

陌路散爱 提交于 2019-12-12 06:58:47
问题 I currently export my JMX beans using Spring and am quite happy with it. When running on another container ( e.g. Jetty, Tomcat ) I can simply connect using JConsole or JVisualVM and access my MBeans. I have tried connecting to WebSphere using the instructions from How do you enable JMX in WebSphere with no success. Is there a simpler way of accessing JMX beans on an application running on WebSphere Application Server 7.0 ? 回答1: Not sure if you cannot connect to WebSphere7 JMX, or you can

Execute a sql statement when a connection is created

坚强是说给别人听的谎言 提交于 2019-12-12 02:54:15
问题 For our application to work properly we need to execute a SQL Statement on every new connection, before that connection is handed out to the application. How do I configure a data source in WAS 7 accordingly? We found the (deprecated) option to validate the datasource using a sql statement, which hopefully does the trick (coworker is testing it right now). This sounds wrong, since we are not 'testing' the connection, but setting it up properly. Also its deprecated so this probably will stop

How to handle Container Managed,Auto Acknowledge, Transaction Not Supported, MDB exception for message redelivery

不羁的心 提交于 2019-12-12 01:51:27
问题 I got a MDB - EJB 2.1, WebSphere 7 version Container Managed and Auto Acknowledged Transactions marked as Not Supported Now how do I handle exceptions in a way that the message will be preserved during exception and redelivered later? I tried to throw runtime exception from the catch block inside my MDB onMessage method. But that seems to stop the MDB Listener which is unexpected. I cannot call context.setRollBackOnly() as there is no transaction. 回答1: RuntimeException should be fine. Check

Set default login/authentication in server.xml. How can you do this?

孤者浪人 提交于 2019-12-12 01:45:20
问题 Extract from my server.xml : <basicRegistry id="basic" realm="customRealm"> <user name="defaultUser@example.com" password="password" /> </basicRegistry> Currently, this requires login from the user in the form of a dialog box. I would like for the user to be logged in as defaultUser@example.com by default, without any dialog boxes or having to type anything. How can I do this? 回答1: You could try to use this kind of link to provide authentication credentials in it: http://userid:secretpassword

IBM WebSphere 7 JNDI Configuration - java.lang.NullPointerException error

老子叫甜甜 提交于 2019-12-12 01:29:08
问题 Trying to create JNDI connection with MS SQL Server 2008 in IBM Websphere 7 using "sqljdbc4.jar" but I'm getting this following java.lang.NullPointerException error when I click on finish. DSRA3601E:createDatasource command failed for the following reason: java.lang.NullPointerException. 来源: https://stackoverflow.com/questions/14930061/ibm-websphere-7-jndi-configuration-java-lang-nullpointerexception-error