weblogic

ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver when trying to use JPA with Derby

亡梦爱人 提交于 2019-12-07 15:31:16
问题 A related query I asked: How to configure & package a simple Java app to use JPA I have a simple Derby database which I can connect to via EJBs hosted in WebLogic. Now I would like to connect to it from a command line Java app using JPA. So far this Java code + persistence.xml file is throwing the error below. What am I doing wrong? My directory layout: C:. │ Registrar.class │ Registrar.java │ TxnClient.class │ TxnClient.java │ └───META-INF persistence.xml Standalone client: import javax

What is the role-name of the default “authenticated role” in WebLogic? How do I reference it in my deployment descriptor?

旧街凉风 提交于 2019-12-07 13:30:43
问题 I'm attempting to implement an authentication mechanism in a web app, which I'm deploying on a WebLogic 12c instance. I want to restrict access to certain pages to only authenticated users. My problem is in figuring out how to define the auth-constraint of my security portion to do this. This is the security portion of my web.xml: <security-constraint> <web-resource-collection> <web-resource-name>secure</web-resource-name> <url-pattern>/secure/*</url-pattern> </web-resource-collection> <auth

How to redeploy EAR file to Web-Logic without restart server?

核能气质少年 提交于 2019-12-07 13:13:14
问题 I have EAR file (which includes a WAR file and EJB jar file) was deployed on Web-Logic(10.3.6) successful. Now, I have updated EAR file and I redeploy again follow steps: delete old files on the server and install new EAR file without restart server. Every file have been deployed in Active state. But I got some exception related EJB injection. Then I restart Web-logic, my app is running fine. What's wrong with the redeploy way? Thanks in advance for any Help... 回答1: Weblogic has an lots of

WebLogic - Using environment variable / double quotes in “Arguments” in “Server Start”

有些话、适合烂在心里 提交于 2019-12-07 11:27:37
问题 I have an admin server, NodeManager, and 1 managed server, all on the same machine. I am trying to enter something similar to this to the arguments field in the Server Start tab: -Dmy.property=%USERPROFILE%\someDir\someJar.jar But when the managed server is started it throws this exception: Error opening zip file or JAR manifest missing : %USERPROFILE%\someDir\someJar.jar It appears that the environment variable is not being translated into it's value. It is just passed on to the managed

weblogic部署tomcat项目时遇到的一些错误及解决方式

放肆的年华 提交于 2019-12-07 08:57:21
首先,先确定自己项目的WEB-INFO下有weblogic.xml,没有的话先加上。因为有不少问题是jar包冲突导致,因为没有设置优先使用项目自己的jar包,weblogic会使用它自己的jar包。所以要通过weblogic.xml设置优先使用项目jar包。 <?xml version='1.0' encoding='UTF-8'?> <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd"> <container-descriptor> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor> </weblogic-web-app> 1、tomcat项目部署到weblogic服务下,有三种部署方式

Deploying war file into managed weblogic server to the given path location

跟風遠走 提交于 2019-12-07 08:12:37
问题 I am using the Ant wldeploy task to deploy a war file. It is working fine, but the war file path in the deployed server is set to something like servers/myadminservername/upload/mywarfilename/app Instead, I would like to set this path myself in the Ant buildfile. Can any one please help me with that? The task I am using for this is: <wldeploy action="deploy" verbose="false" debug="true" name="ClientProfileSyncPortTypeImplV8" source="${results.war.file.dir}/ClientProfileSyncPortTypeImplV8.war"

Strange java.beans.Introspector behavior on WebLogic with DCEVM and HotSwapAgent

China☆狼群 提交于 2019-12-07 07:30:54
问题 I am running WebLogic on JVM 1.7 with DCEVM (full implementation) and HotSwapAgent with custom plugin that gets triggered on every onClassLoad. I run into problems with Freemarker, which uses java.beans.Introspector. What I discovered is the fact that when I call Introspector.flushCaches on the method called by HotSwapAgent (through ReflectionCommand), then the BeanInfo in Introspector is invalidated properly (checked with debugger in that thread). However when I make request to the WLS

Weblogic 12.1.3 PrivilegedActions class not found

谁说我不能喝 提交于 2019-12-07 07:10:08
问题 i create a simple we project that call a jms queue and put in a message. Here the code: public class QueueSend { // Defines the JNDI context factory. public final static String JNDI_FACTORY="weblogic.jndi.WLInitialContextFactory"; // Defines the JMS context factory. public final static String JMS_FACTORY="jms/MyConnectionFactory"; // Defines the queue. public final static String QUEUE="jms/MyTestQueue"; private QueueConnectionFactory qconFactory; private QueueConnection qcon; private

Where is Bea Weblogic Work Folder

喜欢而已 提交于 2019-12-07 06:05:49
问题 I know that this may be a trivial question but I really cannot find the work folder in Oracle BEA weblogic 10.3. Unlike the Apache Tomcat where it is clearly in the work directory usually under WEB-INF. I already researched it on JavaRanch and it said that the directory is at: \bea\user_projects\domains\YOUR_DOMAIN_NAME\servers\AdminServer\tmp\_WL_user\APPLICATION_WAR However, when I checked my directory, I only found the following path. \bea\user_projects\workspaces\default\<project base> I

How can I install one Web Application in two context roots in Weblogic 10g?

烈酒焚心 提交于 2019-12-07 05:42:29
问题 How can I install one Web Application in two context roots in Weblogic 10g? 回答1: This is a packaging issue. Package the WAR twice, each with a specific WEB-INF/weblogic.xml , to solve it. For the first WAR: <?xml version='1.0' encoding='UTF-8'?> <weblogic-web-app> <context-root>my-context-1</context-root> </weblogic-web-app> For the second WAR: <?xml version='1.0' encoding='UTF-8'?> <weblogic-web-app> <context-root>my-context-2</context-root> </weblogic-web-app> This will allow you to use