weblogic

Where To Put JAR Files To Avoid Conflicts?

白昼怎懂夜的黑 提交于 2019-12-13 00:28:54
问题 Windows XP Pro WebLogic 11g Tomcat 7 JDK 1.6 I've been putting supplemental JAR files in JAVA_HOME/jre/lib/ext ( a JDK installation ) for years. It is much more convenient than altering my CLASSPATH and everything I develop has access to one set of stuff in one place. I need a different or better approach though. I recently installed WebLogic 11g on on my computer. Since I do not like having multiple JDKs or JVMs on my machine I set my JAVA_HOME variable to point to there. I then put a

JNDI lookup failing when looking up JMS queue in WebLogic 10.3.5

本小妞迷上赌 提交于 2019-12-12 21:39:06
问题 I'm new to JMS programming and am running into NameNotFoundException, even though, in looking at the Admin Console, it shows the JNDI name that is failing. The exception produced is: javax.naming.NameNotFoundException: Unable to resolve 'tutorialqueue'. Resolved ''; remaining name 'tutorialqueue' at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139) at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252) at weblogic.jndi.internal

Migrating from IBM MQ to javax.jms.* (Weblogic)

拥有回忆 提交于 2019-12-12 21:15:21
问题 I've been looking for days about how one could migrate from using IBM Websphere MQ to rather only using the QueueManager within Weblogic 10.3.x server. This would save cost of licenses for IBM MQ. The closest I came was finiding an external link which stated that IBM examples existed that did something similar(moving away from MQ to standard jms libraries), but when I attempted to follow the link: http://www.developer.ibm.com/isv/tech/sampmq.html it lead to a dead page :\ More specifically I

how can I check which class/jar is causing “Cannot inherit from final class” during WAR deployment?

落花浮王杯 提交于 2019-12-12 19:18:23
问题 I'm deploying a WAR file to a Weblogic 12.1.2 server on Windows 7 (also tried Mac OS X). I'm getting an exception (see below). it looks like one of the classes is referring to an older/newer version of some parent class, which is coming from some duplicated jar. how can I find which class or jar file is causing it? my WAR file has a bunch of Jars in WEB-INF/lib... <Error> <Console> <BEA-240003> <Administration Console encountered the following error: weblogic.application.ModuleException: java

java.lang.StackOverflowError Running JSF 2 example on Weblogic 12c

偶尔善良 提交于 2019-12-12 16:02:05
问题 I followed the very basic tutorial found here example and cannot seem to get past the following error: Error 500--Internal Server Error java.lang.StackOverflowError at weblogic.servlet.internal.ServletResponseImpl.addHeader(ServletResponseImpl.java:567) at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200) at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200) at javax.servlet.http.HttpServletResponseWrapper

Java: exception when casting to itself(?)

╄→尐↘猪︶ㄣ 提交于 2019-12-12 15:09:01
问题 Im working with Oracle WebLogic, Netbeans 6.9.1. I have the following lines of code: Query query=entityManager.createNamedQuery("Items.findById").setParameter("id", Integer.parseInt((String) request.getParameter("id"))); Items it=(Items) query.getSingleResult(); and they throw an exception: java.lang.ClassCastException: entity.Items cannot be cast to entity.Items Even if that seem impossible, i saw similar question on SO: here Author havent published the solution but one of participants made

Adding a dependency to an EJB

…衆ロ難τιáo~ 提交于 2019-12-12 14:47:34
问题 I want to add a dependency to an EJB. How do I do this using Spring? The dependent object is a general service object. Based on code below I want to wire myDependency without having to use 'new'. The EJB runs in weblogic. @Stateless(mappedName = "MyBean") public class MyBean implements MyBeanRemote, MyBeanLocal { @EJB(name = "MyOtherBean") private MyOtherBean myOtherBean; private MyDependency myDependency; ... } 回答1: This is well described in the Spring documentation: For EJB 3 Session Beans

Sending message to Weblogic JMS Queue from a Camel Route

故事扮演 提交于 2019-12-12 14:11:17
问题 I am trying to put a message on a Queue in Weblogic JMS, via a Camel Route. My aim is to eventually configure a Route to consume the messages from the jms queue to which I publish the data from the earlier Route. Here is my config: <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate"> <property name="environment"> <props> <prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop> <prop key="java.naming.provider.url">t3://localhost:7001</prop> <!--

Where is my ejb-jar.xml?

匆匆过客 提交于 2019-12-12 12:41:38
问题 i created a Java EE 5 Enterprise Application on NetBeans 7.4 including a WAR and an EJB using Weblogic 10.3.0 Im using JPA so i need to use the datasource for my persistence.xml My problem is i'm trying to make a JDBC Datasource following this: http://docs.oracle.com/cd/E15051_01/wls/docs103/jdbc_admin/wwimages/jdbc_package_simple.gif But Netbeans didn't add a ejb-jar.xml to the EJB, which i need for a resource reference. Oracle's documentation says it needs to be inside META-INF folder but

How to enable Weblogic 12.1.2 JPA 2.1

为君一笑 提交于 2019-12-12 12:27:25
问题 I have been deploying our web application to Weblogic server. However, although I was able to deploy the application successfully in this new version, the app does not start up and users cannot login. The log is: May 29, 2015 4:38:47 PM org.springframework.web.context.ContextLoader initWebApplicationContext SEVERE: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource