weblogic

how to generate deployment descriptor using ejbGen for weblogic?

こ雲淡風輕ζ 提交于 2019-12-11 12:03:17
问题 I was reading the tutorial on this page: http://edocs.bea.com/docs/cd/E13222_01/wls/docs81/medrec_tutorials/ejbgen.html#858279 And I have the following file BankAccountEJB.java import javax.ejb.CreateException; import javax.ejb.EntityBean; import javax.ejb.EntityContext; public abstract class BankAccountEJB implements EntityBean { private EntityContext context; public void setEntityContext(EntityContext aContext) { context = aContext; } public void ejbActivate() { } public void ejbPassivate()

How to make an EAR refer WAR shared library

假如想象 提交于 2019-12-11 10:47:01
问题 I would like to get a help from you all. The below is the issue I am currently facing with. I have added a reference of WAR shared library in weblogic-application.xml of EAR file. In EAR, I do have a ejb module which has "library-directory" tag in application.xml. I want ejb module to refer jar files in shared library but it looks for jar files in lib folder of EAR. In lib folder of EAR, jar files are not available but the jars are available in WAR shared library. How to resolve this issue

Hibernate configuration troubles

放肆的年华 提交于 2019-12-11 10:31:33
问题 Trying hibernate & doing as manuals say. But it doesn't work. package util; //imports public class HibernateUtil { private static SessionFactory sessionFactory = null; static { try { System.out.println("HU 01"); Configuration configuration = new Configuration(); System.out.println("HU 02"); configuration.configure(); System.out.println("HU 03"); //creates the session factory from hibernate.cfg.xml ServiceRegistry serviceRegistry = new ServiceRegistryBuilder().applySettings(configuration

I get 'No more data to read from socket' after a period of inactivity. Weblogic and Oracle DB

浪尽此生 提交于 2019-12-11 10:09:29
问题 I have a JSP web application deployed on a Weblogic server connected to an Oracle Database. There is no datasource set in the weblogic server instance and the application communicates with the database on it's own (with jdbc). However, every morning when I try to access the web page I get a 'No more data to read from socket' error. I reset the weblogic server and everything gets back to normal, but the thing is I can't keep restarting the server every morning. Is there anyway that this can be

Java - JNDI / Active Directory / Kerberos / WebLogic Server - Password Configuration

天大地大妈咪最大 提交于 2019-12-11 08:37:29
问题 I want to fetch data from an Active Directory using Java and JNDI from my EJB. Doing this search I need to define a user and a password. I was thinking of creating a service account (for my server) in the AD. I will also be using Kerberos protocol and WebLogic Server. As I understand it now, I need to create a keytab file that will contain this service account's credentials. This keytab file will then be configured in the WebLogic Server? So, this means that I will have to state the username

Java反序列化漏洞

拟墨画扇 提交于 2019-12-11 08:30:18
一、Java 序列化与反序列化 Java 序列化是指把 Java 对象转换为字节序列的过程便于保存在内存、文件、数据库中,ObjectOutputStream类的 writeObject() 方法可以实现序列化。 Java 反序列化是指把字节序列恢复为 Java 对象的过程,ObjectInputStream 类的 readObject() 方法用于反序列化。 序列化与反序列化是让 Java 对象脱离 Java 运行环境的一种手段,可以有效的实现多平台之间的通信、对象持久化存储。主要应用在以下场景: HTTP: 多平台之间的通信,管理等 RMI:是 Java 的一组拥护开发分布式应用程序的 API,实现了不同操作系统之间程序的方法调用。值得注意的是,RMI 的传输 100% 基于反序列化,Java RMI 的默认端口是 1099 端口。 JMX: JMX 是一套标准的代理和服务,用户可以在任何 Java 应用程序中使用这些代理和服务实现管理,中间件软件 WebLogic 的管理页面就是基于 JMX 开发的,而 JBoss 则整个系统都基于 JMX 构架。 ​ 2016年Spring RMI反序列化漏洞今年比较出名的:Jackson,FastJson Java 十分受开发者喜爱的一点是其拥有完善的第三方类库,和满足各种需求的框架;但正因为很多第三方类库引用广泛

weblogic.ejbc compiler is deprecated : EJB Application deployment in WebLogic 12c

柔情痞子 提交于 2019-12-11 08:02:24
问题 I'm using EJB 2.1, jdk 1.6 with Weblogic 11g for application development. Latest I have been process of deploying application in WebLogic 12c. As I understood from online source, I need to have jdk 1.7 and higher to run application in weblogic 12c. I also getting below error, when I compile EJB 2.1 with JDK 1.7 or higher. DEPRECATED: The weblogic.ejbc compiler is deprecated and will be removed in a future version of WebLogic Server. Please use weblogic.appc instead. java.lang

How to access SessionFactory of Hibernate using JNDI in WEBLOGIC 9.2 server?

旧街凉风 提交于 2019-12-11 07:58:48
问题 We are using Weblogoic9.2.3 & DB is Oracle10.2.0.3. How can we access Hibernate SessionFactory using JNDI? 回答1: I'd warmly suggest to read the chapter 3.8. J2EE Application Server integration of the documentation. But With Weblogic 9.x and Oracle 10g, you'll end up with something like this (partial but tested setup): ... <property name="hibernate.session_factory_name">hibernate.SessionFactory</property> <!-- JNDI bound Session Factory Name --> <property name="hibernate.jndi.url">t3:/

package javax.servlet does not exist even after setting the class path

亡梦爱人 提交于 2019-12-11 06:54:02
问题 Here's My code... a basic servlet code. //Servlet (interface) import javax.servlet.*; import java.io.*; public class DemoServlet1 implements Servlet { public void init(ServletConfig config) { } public void service (ServletRequest req, ServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); out.println("<html><body>"); out.println("WELCOME SERVLET"); out.println("</body></html>"); } public void destroy() {} public

Weblogic + Change deployment order via command

元气小坏坏 提交于 2019-12-11 06:24:57
问题 I am using ant script to undeploy and deploy the application to weblogic server. For a particular application I want to setup the "Deployment Order" a different value. Is there any way I can mention the deployment order via ANT. Please assist. 回答1: The weblogic.Deployer utility and its ANT version wldeploy do not provide a feature to set the Deployment Order while deploying the Application. The order can only be updated after the deployment. You can still automate it with WLST if that's what