websphere

Jacl script war deploymet

允我心安 提交于 2019-12-24 10:25:36
问题 I'm trying to deploy war in websphere using jacl script , below is the command i'm using set opts [list -cluster $clusterName -appname $earFileName -contextroot $appContextRoot -installed.ear.destination $destination -MapWebModToVH $virtualHost] $AdminApp install $earFileLocation $opts After adding -MapWebModToVH $virtualHost parameter i'm getting WASX7017E: java.lang.ClassCastException: java.lang.String incompatible with java.util.List i checked the link http://www-01.ibm.com/support/docview

Not able to create JMS topic programatically in WebSphere

北慕城南 提交于 2019-12-24 09:16:07
问题 I'm not able to create SIB JMS topic or queue. I tried the below code. The code ran without any exception or error public void createSIBJMSTopic(String topicName, String jndiName, String busName, String topicSpace) { try { String server = "server1"; String description = "abc"; Session session = new Session(); CommandMgr commandMgr = CommandMgr.getCommandMgr(client); configService = new ConfigServiceProxy(client); System.out.println("Commands list" + commandMgr.listAllCommands().toString());

JMSWMQ2013 when connecting from WAS to MQ

你。 提交于 2019-12-24 08:39:44
问题 I am trying to create a JMS connection from WebSphere App Server 7, but keep getting JMSWMQ2013 (with MQ reason code 2035). Clearly this is an authentication problem, and I can see many other similar reports so I have a rough idea of the general problem. I'm awaiting feedback from our operations team as to the exact configuration of the channel, however, in the meantime I have one observation that is quite puzzling. If I use WebSphere's JAAS authentication to provide the userid, then I always

Security role to user/group mapping: Error ADMA0014E: No virtual host specified

喜你入骨 提交于 2019-12-24 07:52:51
问题 When trying to save via OK Button, I'm getting this error and WebSphere is not saving it. How can I fix that? EDIT: This is the error message I'm trying to resolve with the configuration in WebSphere: [6/20/16 10:46:34:524 CEST] 00000034 WebCollaborat A SECJ0129E: Authorization failed for user TUZRS01:customRealm while invoking GET on null:/TestProject/, Authorization failed, Not granted any of the required roles: User 回答1: @DYangu's link to IBM pointed me in the right direction. When

How to get Websphere 6.1 port number

六月ゝ 毕业季﹏ 提交于 2019-12-24 06:44:54
问题 I'm currently working on a WebSphere 6.1 Web Project. In my java code, how can i get the current running application port? 回答1: The servlet API gives you the local port in HttpServletRequest. protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter writer = response.getWriter(); writer.write("" + request.getLocalPort()); writer.close(); } The ports are defined in the node's serverindex.xml (e.g. [WAS]/profiles/AppSrv01

WebSphere 7, JSF 2.0 and classloaders

跟風遠走 提交于 2019-12-24 06:03:30
问题 On a WAS 7, I deployed my EAR with a single WAR in it. The EAR classloading mode is set to PARENT_LAST , and the WAR classloading mode is also set to PARENT_LAST . The WAR's /WEB-INF/lib has the Mojarra JSF 2 RI, and the Unified EL 2.1 jars. Despite all this, when the application starts, it tries to load some MyFaces stuff, from the inbuilt MyFaces 1.2. The class loader viewer for the WAR class loader clearly shows "org.apache.myfaces.webapp.StartupServletContextListener" getting loaded at

infuriating heisenbug in Java/WAS 8.5 liberty profile on socket binding

余生长醉 提交于 2019-12-24 04:53:11
问题 I get socket bind error on Java 6/Websphere 8.5 (Liberty profile, a cut down, usable version of Websphere). When killing and starting app server immediately again I get: [ERROR ] CWWKO0221E: TCP Channel defaultHttpEndpoint initialization did not succeed. The socket bind did not succeed for host * and port 9988. The port might already be in use. This is because either Java or WAS have not released IPv6 sockets properly. But, here's the snag: when I run WLP via strace (with -f option to track

Why isn't RAD (Eclipse) able to properly detect WAS server startup?

爱⌒轻易说出口 提交于 2019-12-24 03:12:49
问题 If I start WAS 6.1 under RAD 8.0.4.1, I see the server start in the console: [9/24/12 17:21:18:671 EDT] 0000000a WsServerImpl A WSVR0001I: Server server1 open for e-business RAD continues to indicate that it's waiting for server startup in the progress pane: "Starting WebSphere Application Server v6.1 at localhost". This is a pain because it eventually times out and tells me the server never started even though it's running and responding to requests and it seems like this state means

WebSphere Camel JMS, spring, taskExecutor, haninging Threads

試著忘記壹切 提交于 2019-12-24 00:58:41
问题 I'm trying to integrate Camel with WebSphere. It is working fine, for all but one thing. The scenario looks like: JMS (WMQ) -> routing/transformation -> BEAN (which does a JPA (OpenJPA1.2/DB2) commit). To be able to plug into WAS transaction manager and mangaed threads, I'm inserting the work manager as taskExecutor in camel: <!-- Selected parts of the spring config --> <tx:jta-transaction-manager/> <bean id="wasTaskExecutor" class="org.springframework.scheduling.commonj

UnsupportedOperationException When Using JPA/Hibernate On Websphere

别等时光非礼了梦想. 提交于 2019-12-24 00:38:33
问题 The Problem I am getting the following exception when trying to update records in my database: java.lang.UnsupportedOperationException at org.hibernate.service.jta.platform.internal.WebSphereExtendedJtaPlatform$TransactionManagerAdapter.setRollbackOnly(WebSphereExtendedJtaPlatform.java:139).... This exception only happens when updating. Create, Read and Delete work fine. What are typical reasons for this code being thrown? Weird Twist We are required to use MyEclipseBlue and that Maven or ant