weblogic

CentOS7.2 安装Weblogic12c

只谈情不闲聊 提交于 2019-11-28 15:51:06
安装jdk 注意weblogic版本及其支持的jdk版本; 卸载OpenJDK,用命令rpm -qa|grep java 和 rpm -qa|grep jdk 显示所有jdk有关的安装包,然后用命令rpm -e --nodeps filename 将文件都删除 rpm -qa|grep java rpm -e --nodeps java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64 ... 下载oracle jdk,配置环境变量: vim /etc/profile #在文件尾部添加 export JAVA_HOME=/opt/apps/jdk1.8.0_171 export JRE_HOME=$JAVA_HOME/jre export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/jre/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH #保存退出 source /etc/profile 添加用户组和用户 groupadd weblogic useradd -g weblogic weblogic passwd weblogic su weblogic 安装weblogic 下载weblogic并解压(/home/weblogic) https

Using maven as build tool for Weblogic 10.3

淺唱寂寞╮ 提交于 2019-11-28 15:42:51
问题 I am trying to setup Weblogic Server 10.3 (and Portal etc.) to use maven as a build tool. I am trying to find a decent tutorial or documentation how to do this. There are some tutorials for older versions like 9.0, but there is little info for version 10. I am looking a way to build weblogic's ear file with maven. Are people actually doing this? Is using maven worth the trouble? I would like to use maven in order to have easier integration with continuous integration tools like Hudson. edit:

Weblogic Error: Caused by: weblogic.transaction.internal.AppSetRollbackOnlyException: setRollbackOnly called on transaction

▼魔方 西西 提交于 2019-11-28 12:53:29
I am porting an application from Jboss 7as to Weblogic 12c. So far, I am able to run the application and create new records in the database. However, I get the below error only when trying to update existing records; Error committing transaction: javax.ejb.TransactionRolledbackLocalException: Error committing transaction: at weblogic.ejb.container.internal.EJBRuntimeUtils.throwTransactionRolledbackLocal(EJBRuntimeUtils.java:231) at weblogic.ejb.container.internal.EJBRuntimeUtils.throwEJBException(EJBRuntimeUtils.java:134) at weblogic.ejb.container.internal.BaseLocalObject.postInvoke1

Where can I find JavaEE packages' sources? [closed]

余生长醉 提交于 2019-11-28 12:02:21
I'm developing a JavaEE system (distributed on Weblogic App Server), but I don't have the sources for the JavaEE packages (javax.ejb.*, for instance). Where can I find the sources (not javadoc) for these packages? Java EE is an abstract API. It exist of just contracts (as you see in javadocs), not concrete code. The application servers are the concrete implementations. So, if you're looking for the source, you should look at the application server vendor's homepage for a source code download link. However, you're unlucky with Weblogic. It is not open source. I've never used Weblogic (I am an

Tomcat 8 - LDAP: NameNotFoundException error code 32, remaining name empty string

喜你入骨 提交于 2019-11-28 11:56:45
Trying to migrate an application from WebLogic 12.2.1 to Tomcat 8.5.4 , what under Weblogic was an entry as Foreign JNDI Providers for an LDAP connection has been migrated to a new Resource under Tomcat. Following this advice on Stack Overflow, a custom LdapContextFactory has been packaged as a new jar file under Tomcat lib folder. In the Tomcat server.xml file the following GlobalNamingResources/Resource has been configured: <Resource name="ldapConnection" auth="Container" type="javax.naming.ldap.LdapContext" factory="com.sample.custom.LdapContextFactory" singleton="false" java.naming

Deploying two Spring batch applications in same cluster in a single Weblogic Domain?

旧时模样 提交于 2019-11-28 11:04:20
问题 BackGround - I am trying to deploy two spring batch applications as .war in same cluster in a single Weblogic Domain & each of them have spring batch admin console configured in servlet.xml like below - <?xml version="1.0" encoding="UTF-8" ?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <!--

Two way ssl with Tomcat as client to weblogic

霸气de小男生 提交于 2019-11-28 10:28:12
问题 I have setup two-way SSL for Weblogic 9.2 for one of my project. The setup was not difficult at all when a browser is a client. I need to setup tomcat as a client now instead using a browser client. In this scenario, Tomcat will host a JSP page or a servlet and call a web service hosted on Weblogic. I have Googled but have not found much documentation for this setup. Any idea - will setting the HTTPS connector work in this case? Thank you 回答1: Finally I was able to configure it the following

Integrated Windows Authentication (NTLM) in a Java/WebLogic app?

别等时光非礼了梦想. 提交于 2019-11-28 09:33:39
Our team built a WebLogic intranet site. Users currently must type in their Active Directory login/password to access the site. Since most of our users are already logged in to the domain, we would like to use Integrated Windows Authentication so users do not have to re-type their login password. I have done this with .NET applications hosted on Windows/IIS. However, this app is built in WebLogic/Java and is hosted on RedHat Linux. Is there a step-by-step guide or prototype application available? (Please assume for this question that we are standardized on Internet Explorer browser.) morja

weblogic 控制台日志保存到文件

风流意气都作罢 提交于 2019-11-28 09:18:28
工作中遇到weblogic运行时出现异常,但控制台滚到导致无法查看异常信息.而在adminserver.log里面没有该异常信息打印. 经整理,可分别通过以下两种方法解决 一 、打开C:\bea\user_projects\domains\域名\startWebLogic.cmd文件 call "%DOMAIN_HOME%\bin\startWebLogic.cmd" %*替换成下列内容 具体代码如下: // 设置 yyyy_mm_dd 格式的日期 set sbtmpdate=%date:~0,4%_%date:~5,2%_%date:~8,2% // 设置 HHmmss 格式的时间 set sbtmptime=%time:~0,2%%time:~3,2%%time:~6,2% // 随机数 set randomtmp=%random% set r=%sbtmpdate%_%sbtmptime%.%randomtmp% // 将变量赋值到文件名中 call "%DOMAIN_HOME%\bin\startWebLogic.cmd" 1>stdMsg-%r%.log 2>stdErr-%r%.log%*在startWebLogic.cmd文件中增加时间相关的字符串,拼接成文件名,保证每次重启的时候文件不会重名 二、在weblogic控制台中修改配置 进入weblogic控制台,选择

解决替换weblogic的commons-fileupload.jar后引发的问题

北慕城南 提交于 2019-11-28 09:18:19
上一篇博文中提到通过替换weblogic自带的commons-fileupload.jar来解决FileUpload类的NoSuchMethodError问题。在完成替换后,该问题得到顺利解决,但是也会引发其他的一些问题,下面提到的这个问题就跟 commons-fileupload.jar的替换有关系。 现象 weblogic替换了 commons-fileupload.jar后,系统中原先的导入功能运行报错: java.lang.ClassNotFoundException:org.apache.commons.io.output.DeferredFileOutPutStream 分析 由于是类找不到的异常,所以检查有没有类似weblogic自带的commoms-io包版本过低的问题,经过一番检查后,发现weblogic都没提供该jar。应用程序包提供的commons-io包又不存在版本问题。一个头疼的问题。纠其原因还是对weblogic的类加载机制不太清楚。 最后网上提到一个说法,weblogic在加载 commons-fileupload.jar前需要先加载 commons-io.jar 解决办法 由于我的weblogic环境实在启动文件中通过CLASSPATH来指定 commons-fileupload.jar的加载 ,所以在CLASSPATH中指定 commons-io