Classloader problem on deployment in OC4J...
When I try to deploy a bean with OC4J, I get a java.lang.NoClassDefFoundError because it can not find class located in the JDOM.jar. The jar is referenced from the ejb.jar manifest file, and the jar located in the ear file. I thought OC4J should find it then. Also tried to put the jar file in the /lib folder but it doesnt work. Any idea?
C:\Applications\Development\oc4j\j2ee\home>deploy_AvianTraveller.bat
Fatal Error: Error loading class 'com.sig.ressys.session.BookingEngineBean': java.lang.NoClassDefFoundError: org/jdom/JDOMException
Auto-unpacking C:\Applications\Development\oc4j_extended\j2ee\home\applications\AvianTraveller.ear... done.
Auto-unpacking C:\Applications\Development\oc4j_extended\j2ee\home\applications\AvianTraveller\ect-web.war... done.
Auto-deploying AvianTraveller (New server version detected)...
java.lang.InstantiationException: Error loading class 'com.sig.ressys.session.BookingEngineBean': java.lang.NoClassDefFoundError: org/jdom/JDOMException
at com.evermind.server.ejb.deployment.BeanDescriptor.initialize(BeanDescriptor.java:248)
at com.evermind.server.ejb.deployment.ExposableBeanDescriptor.initialize(ExposableBeanDescriptor.java:131)
at com.evermind.server.ejb.deployment.SessionBeanDescriptor.initialize(SessionBeanDescriptor.java:342)
at com.evermind.server.ejb.deployment.EJBPackage.initialize(EJBPackage.java:650)
at com.evermind.server.ejb.EJBPackageDeployment.getPackage(EJBPackageDeployment.java:673)
at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:487)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:103)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
Tried first to get it to work with 9.02, but there seems to be a bug related to loading jars in the ejb.jar manifest file. When I used 9.03 I always got a out-of-memmory error (my EAR is 16Mb), but yesterday I reduced the size of it for test purpose and then it worked! So I have to look into the memory problem further.
Similar Messages
-
Problems with deploy on OC4J 10.1.3.2 with hibernate persistence.xml
Hi all,
I can't deploy an EAR/WAR into oc4j 10.3.2.0 stand-alone, I have the following error message :
2008-03-26 19:50:38.721 NOTIFICATION Binding opsky-webapp-1.0-SNAPSHOT web-module for application opsky to site default-web-site under context root /opsky
08/03/26 19:50:38 oracle.oc4j.admin.internal.DeployerException: [opsky:opsky-webapp-1.0-SNAPSHOT] - Exception creating EntityManagerFactory using PersistenceProvider class org.hibernate.ejb.HibernatePersistence for persistence unit ApplicationEntityManager.
08/03/26 19:50:38 at com.evermind.server.ejb.exception.DeploymentException.exceptionCreatingEntityManagerFactory(DeploymentException.java:130)
08/03/26 19:50:38 at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.createContainerEntityManagerFactory(PersistenceUnitManagerImpl.java:197)
08/03/26 19:50:38 at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.initializePersistenceUnit(PersistenceUnitManagerImpl.java:159)
08/03/26 19:50:38 at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.initialize(PersistenceUnitManagerImpl.java:86)
08/03/26 19:50:38 at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:733)
08/03/26 19:50:38 at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
08/03/26 19:50:38 at com.evermind.server.Application.getHttpApplication(Application.java:571)
08/03/26 19:50:38 at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990)
08/03/26 19:50:38 at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1909)
08/03/26 19:50:38 at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1606)
08/03/26 19:50:38 at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238)
08/03/26 19:50:38 at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:99)
08/03/26 19:50:38 at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:547)
08/03/26 19:50:38 at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:202)
08/03/26 19:50:38 at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
08/03/26 19:50:38 at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
08/03/26 19:50:38 at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
08/03/26 19:50:38 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
08/03/26 19:50:38 at java.lang.Thread.run(Thread.java:619)
2008-03-26 19:50:38.987 NOTIFICATION Application Deployer for opsky FAILED.
2008-03-26 19:50:38.987 NOTIFICATION Application UnDeployer for opsky STARTS.
I'm using hibernate 3 with spring, here is my persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
<persistence-unit name="ApplicationEntityManager" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>org.appfuse.model.User</class>
<class>org.appfuse.model.Role</class>
</persistence-unit>
</persistence>
Does enyone know anything about this issue?Hi,
It would be helpful if you copied and pasted the error messages you get.
For what its worth, it probably isn't a bug, just a configuration problem. You may need to alter more than your application.xml file.
If you developed the EJBs with JDeveloper, you can create a deployment descriptor that adds the necessary configuration files for the OAS platform, and package them into a WAR or EAR. Use Enterprise Manager to deploy the WAR/EAR to the OAS OC4J and everything will be placed where its needed.
More info in the JDeveloper and OAS 10.1.3 documentation.
Jim -
Hi! I am new to Jdeveloper.Having problem while deploying on embeded OC4J
hi everybody
I am new to JDeveloper.I am using OracleJDeveloper 10.2.3 version.I am facing problem while deploying any application on embeded OC4J server.I have tried a lot after searching solution on this site,but all of no use.Actually i am not able to established connection with OC4J.Whenever i am testing the connection it`s giving message Connection Failed message.Please provide me the exact solution.I am in need of this so reply as soon as possible.
Thanks In Advance
Rohit TiwaryHi Rohit,
You dont have to create a connection to deploy in embedded oc4j. You can simply right click on the jsf page and run.
HTH.
Regards,
Arun -
Deploy to OC4J standaone problem
Dears,
I developed an application in jdev 10.2 and it works successfully with embedded OC4J, but when deploy to OC4J standalone or Tomcat it doesn't work.
I use JSON in my application.
The log (for OC4J standalone and Tomcat) is empty from errors and exceptions, Only
JSONRPCBridge.analyzeClass analyzing package1name.package2name.package3name.DAO.classNmaeDAO
is written and my code didn't work and JSP is empty.
Any ideas, what may be the problem there???When I deploy to oc4j from jdev... I get an error.
Unknown site: http-web-site
How do I figure out what my http site is via my oc4j configuration?
I know in my Connection properties for oc4j in jdev, there is a target web site property where I entered "http-web-site", thinking this was the correct target.
Thanks. Look in <oracle_home>\j2ee\home\config\server.xml
Web sites are defined by the web-site entry. E.g
<web-site path="./http-web-site.xml" />
<web-site default="true" path="./default-web-site.xml" />
Dhiraj -
Problem of deployment Spring applicaiton to OC4J
A application with Struts+Spring+Hibernate can be successfully runned in Tomcat. But when I deploy this application to OC4J 10.1.3.3, there are some errors. I have included xerces+xalan shared-library, taken off oracle.xml and choosen use self-library firstly.
There are some warnings during deployment about can't parse tld files correctly:
2007-11-26 01:47:00.265 NOTIFICATION 将档案复制到 D:\soft\oc4j_extended_101330\j
2ee\home\applications\gxs.ear
2007-11-26 01:47:01.203 NOTIFICATION 初始化 D:\soft\oc4j_extended_101330\j2ee\ho
me\applications\gxs.ear 开始...
2007-11-26 01:47:01.203 NOTIFICATION Auto-unpacking D:\soft\oc4j_extended_101330
\j2ee\home\applications\gxs.ear...
2007-11-26 01:47:01.203 NOTIFICATION 解压缩 gxs.ear
2007-11-26 01:47:01.203 NOTIFICATION Unjar D:\soft\oc4j_extended_101330\j2ee\hom
e\applications\gxs.ear in D:\soft\oc4j_extended_101330\j2ee\home\applications\gx
s
2007-11-26 01:47:02.500 NOTIFICATION 解压缩 gxs.ear 完成
2007-11-26 01:47:02.515 NOTIFICATION Finished auto-unpacking D:\soft\oc4j_extend
ed_101330\j2ee\home\applications\gxs.ear
2007-11-26 01:47:02.515 NOTIFICATION Auto-unpacking D:\soft\oc4j_extended_101330
\j2ee\home\applications\gxs\gxs.war...
2007-11-26 01:47:02.515 NOTIFICATION 解压缩 gxs.war
2007-11-26 01:47:02.515 NOTIFICATION Unjar D:\soft\oc4j_extended_101330\j2ee\hom
e\applications\gxs\gxs.war in D:\soft\oc4j_extended_101330\j2ee\home\application
s\gxs\gxs
2007-11-26 01:47:21.265 NOTIFICATION 解压缩 gxs.war 完成
2007-11-26 01:47:21.265 NOTIFICATION Finished auto-unpacking D:\soft\oc4j_extend
ed_101330\j2ee\home\applications\gxs\gxs.war
2007-11-26 01:47:21.296 NOTIFICATION 初始化 D:\soft\oc4j_extended_101330\j2ee\ho
me\applications\gxs.ear 结束...
2007-11-26 01:47:21.296 NOTIFICATION 启动应用程序: gxs
2007-11-26 01:47:21.296 NOTIFICATION 初始化类加载程序
2007-11-26 01:47:21.296 NOTIFICATION 初始化 EJB 容器
2007-11-26 01:47:21.296 NOTIFICATION 加载连接器
2007-11-26 01:47:21.515 NOTIFICATION 启动资源适配器
2007-11-26 01:47:21.515 NOTIFICATION 初始化 EJB 会话
2007-11-26 01:47:21.515 NOTIFICATION 提交类加载程序
2007-11-26 01:47:21.515 NOTIFICATION 初始化 gxs 开始...
2007-11-26 01:47:21.531 NOTIFICATION 初始化 gxs 结束...
2007-11-26 01:47:21.531 NOTIFICATION 已启动的应用程序: gxs
2007-11-26 01:47:21.531 NOTIFICATION 将 Web 应用程序绑定到站点 default-web-site
开始...
2007-11-26 01:47:21.546 NOTIFICATION 将应用程序 gxs 的 gxs Web 模块绑定到上下文
根 gxs 下的站点 default-web-site
警告: 代码源 D:\soft\oc4j_extended_101330\j2ee\home\applications\gxs\gxs\WEB-INF
\lib\activation.jar (来自 WEB-INF/lib/ directory in D:\soft\oc4j_extended_101330
\j2ee\home\applications\gxs\gxs\WEB-INF\lib) 与 /D:/soft/oc4j_extended_101330/j2
ee/home/lib/activation.jar (from <code-source> (ignore manifest Class-Path) in M
ETA-INF/boot.xml in D:\soft\oc4j_extended_101330\j2ee\home\oc4j.jar) 具有相同的
文件名, 但与其不完全相同。如果前者包含相同类的不同版本, 则会被屏蔽掉, 因为后者在
加载程序 gxs.web.gxs:0.0.0 的搜索路径中已是可见的。
警告: 代码源 D:\soft\oc4j_extended_101330\j2ee\home\applications\gxs\gxs\WEB-INF
\lib\jta.jar (来自 WEB-INF/lib/ directory in D:\soft\oc4j_extended_101330\j2ee\h
ome\applications\gxs\gxs\WEB-INF\lib) 与 /D:/soft/oc4j_extended_101330/j2ee/home
/lib/jta.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.x
ml in D:\soft\oc4j_extended_101330\j2ee\home\oc4j.jar) 具有相同的文件名, 但与其
不完全相同。如果前者包含相同类的不同版本, 则会被屏蔽掉, 因为后者在加载程序 gxs.w
eb.gxs:0.0.0 的搜索路径中已是可见的。
警告: 代码源 D:\soft\oc4j_extended_101330\j2ee\home\applications\gxs\gxs\WEB-INF
\lib\mail.jar (来自 WEB-INF/lib/ directory in D:\soft\oc4j_extended_101330\j2ee\
home\applications\gxs\gxs\WEB-INF\lib) 与 /D:/soft/oc4j_extended_101330/j2ee/hom
e/lib/mail.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot
.xml in D:\soft\oc4j_extended_101330\j2ee\home\oc4j.jar) 具有相同的文件名, 但与
其不完全相同。如果前者包含相同类的不同版本, 则会被屏蔽掉, 因为后者在加载程序 gxs
.web.gxs:0.0.0 的搜索路径中已是可见的。
2007-11-26 01:47:22.125 WARNING J2EE JSP-0003 JSP Tld 高速缓存事件记录:
2007-11-26 01:47:22.140 WARNING J2EE JSP-0027 对 jar:file:/D:/soft/oc4j_extended
_101330/j2ee/home/applications/gxs/gxs/WEB-INF/lib/spring-modules-validation-0.5
.jar!/META-INF/valang.tld 进行语法分析时出错
2007-11-26 01:47:22.640 WARNING J2EE JSP-0003 JSP Tld 高速缓存事件记录:
2007-11-26 01:47:22.640 WARNING J2EE JSP-0027 对 file:/D:/soft/oc4j_extended_101
330/j2ee/home/applications/gxs/gxs/WEB-INF/tlds/c.tld 进行语法分析时出错
2007-11-26 01:47:22.687 WARNING J2EE JSP-0003 JSP Tld 高速缓存事件记录:
2007-11-26 01:47:22.687 WARNING J2EE JSP-0027 对 file:/D:/soft/oc4j_extended_101
330/j2ee/home/applications/gxs/gxs/WEB-INF/tlds/displaytag.tld 进行语法分析时出
错
2007-11-26 01:47:23.125 NOTIFICATION 初始化 Web 应用程序 gxs 的 Servlet org.apac
he.struts.action.ActionServlet
2007-11-26 01:47:23.843 NOTIFICATION 初始化 Web 应用程序 gxs 的 Servlet uk.ltd.g
etahead.dwr.DWRServlet
2007-11-26 01:47:24,015 WARN [uk.ltd.getahead.dwr.impl.DefaultConfiguration] - F
ailed to load converter 'dom', classname=uk.ltd.getahead.dwr.convert.DOMConverte
r: java.lang.ClassCastException: org.apache.xalan.processor.TransformerFactoryIm
pl
2007-11-26 01:47:25.078 NOTIFICATION 将 Web 应用程序绑定到站点 default-web-site
结束...
2007-11-26 01:47:25.078 NOTIFICATION gxs 的 Application Deployer 完成。操作时间:
24828 msecs
When I login into this application, 500 error happen on the browser:
500 Internal Server Error
Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
The information in the application.log is:
07/11/26 01:47:21.296 10.1.3.3.0 Started
07/11/26 01:47:23.0 gxs: Loading Spring root WebApplicationContext
07/11/26 01:47:25.78 gxs: 10.1.3.3.0 Started
07/11/26 01:48:11.31 gxs: Servlet error
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '/loginAction' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:355)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:800)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:646)
at org.springframework.web.struts.DelegatingActionProxy.getDelegateAction(DelegatingActionProxy.java:122)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:105)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at gxs.web.filter.InitializeFilter.doFilter(InitializeFilter.java:36)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
The definition of the login bean in web.xml is:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:applicationContext-action*.xml
</param-value>
</context-param>
applicationContext-action*.xml are the definition of the beans.
1. How to configure Spring in OC4J?
2. How to solve these problems?
Thanks,
MelodyNow, I alter the web.xml to the follow:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/applicationContext-action-baseinfo.xml,/WEB-INF/classes/applicationContext-action-quartz.xml,/WEB-INF/classes/applicationContext-action-statistics.xml,/WEB-INF/classes/applicationContext-action-sys.xml,/WEB-INF/classes/applicationContext-action-trading.xml</param-value>
</context-param>
<!--
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
-->
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
Then, the application is deployed to OC4J. But I still can't login in. There are some errors in application.log:
07/11/26 03:34:53.703 10.1.3.3.0 Started
07/11/26 03:34:55.31 gxs: Loading Spring root WebApplicationContext
07/11/26 03:35:41.890 gxs: Error initializing servlet
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduleMarketSale' defined in ServletContext resource [WEB-INF/classes/applicationContext-action-quartz.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [gxs.web.trading.action.ProcedureQuartzAction]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tradingService' defined in class path resource [app-service.xml]: Cannot create inner bean 'gxs.service.impl.TradingServiceImpl#1987b05' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gxs.service.impl.TradingServiceImpl#1987b05' defined in class path resource [app-service.xml]: Cannot resolve reference to bean 'tradingInput' while setting bean property 'tradingInput'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'tradingInput' is defined
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [gxs.web.trading.action.ProcedureQuartzAction]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tradingService' defined in class path resource [app-service.xml]: Cannot create inner bean 'gxs.service.impl.TradingServiceImpl#1987b05' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gxs.service.impl.TradingServiceImpl#1987b05' defined in class path resource [app-service.xml]: Cannot resolve reference to bean 'tradingInput' while setting bean property 'tradingInput'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'tradingInput' is defined
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tradingService' defined in class path resource [app-service.xml]: Cannot create inner bean 'gxs.service.impl.TradingServiceImpl#1987b05' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gxs.service.impl.TradingServiceImpl#1987b05' defined in class path resource [app-service.xml]: Cannot resolve reference to bean 'tradingInput' while setting bean property 'tradingInput'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'tradingInput' is defined
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gxs.service.impl.TradingServiceImpl#1987b05' defined in class path resource [app-service.xml]: Cannot resolve reference to bean 'tradingInput' while setting bean property 'tradingInput'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'tradingInput' is defined
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'tradingInput' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:355)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:800)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:246)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:416)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:198)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:111)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:416)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:642)
at gxs.service.ServiceFactory.getTradingService(ServiceFactory.java:93)
at gxs.web.trading.action.ProcedureQuartzAction.<init>(ProcedureQuartzAction.java:8)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:59)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:52)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:639)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:625)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2371)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4824)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4748)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4936)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1145)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:741)
at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
at com.evermind.server.Application.getHttpApplication(Application.java:570)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1987)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1906)
at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1603)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:99)
at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:547)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:202)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
07/11/26 03:35:41.890 gxs: Error preloading servlet
javax.servlet.ServletException: Error initializing servlet
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4851)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4748)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4936)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1145)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:741)
at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
at com.evermind.server.Application.getHttpApplication(Application.java:570)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1987)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1906)
at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1603)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:99)
at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:547)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:202)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
07/11/26 03:35:42.921 gxs: Closing Spring root WebApplicationContext
07/11/26 03:35:43.281 gxs: 10.1.3.3.0 Started
null -
Problem in deploying WAR file into OC4J
I have tried deploying a .war file into oc4j (orion) application server using - Deploying Upon OC4J Server Startup option
I have placed the intelliview.war into /applications directory
modified server.xml & web-site.xml
server.xml added
<application name="intelliview" path="../applications/iviewserver.war" auto-start="true" />
web-site.xml added
<web-app application="intelliview" name="iviewserver" root="/iviewserver" />
Here is the error message,
Error instantiating application at file ....applications/intelliview.war
Unable to read/find assembly info (META-INF/application.xml)
Any idea?
ThanksFollowing are the steps involved in deploying a WAR file in Oc4j.
1. Copy the file to D:\oc4j\j2ee\home\applications where d:\oc4j is the location OC4J is installed in.
copy mywar.war D:\oc4j\j2ee\home\applications
2. Open the application.xml file in D:\oc4j\j2ee\home\config directory
and add the following after the <web-module id="defaultWebApp" path="../default-web-app" />
line:
<web-module id="mywar" path="../applications/mywar.war" />
3. Open the default-web-site.xml file in D:\oc4j\j2ee\home\config
directory and add the following after the <default-web-app application="default" name="defaultWebApp" /> line:
<web-app application="default" name="mywar" root="/mywar" />
Hope this helps
-Debu Panda
Oracle -
Error deploying to oc4j standalone
hi folks,
i'm trying to deploy my application from jdev to standalone oc4j.
i created a war, an ejb-jar and an ear that includes them. while trying to deploy the ear i get the following exception:
2006-11-30 14:54:48.265 NOTIFICATION Starting application : wts2
2006-11-30 14:54:48.265 NOTIFICATION Initializing ClassLoader(s)
2006-11-30 14:54:48.265 NOTIFICATION Initializing EJB container
2006-11-30 14:54:48.265 NOTIFICATION Loading connector(s)
2006-11-30 14:54:48.343 NOTIFICATION Starting up resource adapters
2006-11-30 14:54:48.359 NOTIFICATION Processing EJB module: wts2_ejb_jar.jar
2006-11-30 14:54:48.656 ERROR J2EE EJB-03027 [wts2] An error occured deploying E
JB module: javax.ejb.EJBException: nested exception is: java.lang.reflect.Invoca
tionTargetException
2006-11-30 14:54:48.671 NOTIFICATION application : wts2 is in failed state
06/11/30 14:54:48 WARNING: Application.setConfig Application: wts2 is in failed
state as initialization failed.
java.lang.InstantiationException: Error initializing ejb-modules: nested excepti
on is: java.lang.reflect.InvocationTargetException
06/11/30 14:54:48 oracle.oc4j.admin.internal.DeployerException: java.lang.Instan
tiationException: Application: wts2 is in failed state as initialization failed
06/11/30 14:54:48 at oracle.oc4j.admin.internal.ApplicationDeployer.addApp
lication(ApplicationDeployer.java:515)
06/11/30 14:54:48 at oracle.oc4j.admin.internal.ApplicationDeployer.doDepl
oy(ApplicationDeployer.java:196)
06/11/30 14:54:48 at oracle.oc4j.admin.internal.DeployerBase.execute(Deplo
yerBase.java:93)
06/11/30 14:54:48 at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeploy
erRunnable.doRun(OC4JDeployerRunnable.java:52)
06/11/30 14:54:48 at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRu
nnable.run(DeployerRunnable.java:81)
06/11/30 14:54:48 at com.evermind.util.ReleasableResourcePooledExecutor$My
Worker.run(ReleasableResourcePooledExecutor.java:298)
06/11/30 14:54:48 at java.lang.Thread.run(Thread.java:595)
06/11/30 14:54:48 Caused by: java.lang.InstantiationException: Application: wts2
is in failed state as initialization failed
06/11/30 14:54:48 at com.evermind.server.Application.setConfig(Application
.java:471)
06/11/30 14:54:48 at com.evermind.server.Application.setConfig(Application
.java:314)
06/11/30 14:54:48 at com.evermind.server.ApplicationServer.addApplication(
ApplicationServer.java:1853)
06/11/30 14:54:48 at oracle.oc4j.admin.internal.ApplicationDeployer.addApp
lication(ApplicationDeployer.java:512)
06/11/30 14:54:48 ... 6 more
06/11/30 14:54:48 Caused by: java.lang.InstantiationException: Error initializin
g ejb-modules: nested exception is: java.lang.reflect.InvocationTargetException
06/11/30 14:54:48 at com.evermind.server.ejb.EJBContainer.postInit(EJBCont
ainer.java:1064)
06/11/30 14:54:48 at com.evermind.server.ApplicationStateRunning.initializ
eApplication(ApplicationStateRunning.java:217)
06/11/30 14:54:48 at com.evermind.server.Application.setConfig(Application
.java:413)
06/11/30 14:54:48 ... 9 more
06/11/30 14:54:48 Caused by: javax.ejb.EJBException: nested exception is: java.l
ang.reflect.InvocationTargetException
06/11/30 14:54:48 at com.evermind.server.ejb.EJBUtils.createEJBException(E
JBUtils.java:365)
06/11/30 14:54:48 at com.evermind.server.ejb.EJBUtils.createEJBException(E
JBUtils.java:356)
06/11/30 14:54:48 at com.evermind.server.ejb.BeanAnnotationListener.parseA
nnotatedClass(BeanAnnotationListener.java:54)
06/11/30 14:54:48 at com.evermind.server.ejb.AnnotationParser.notifyAnnota
tionListeners(AnnotationParser.java:201)
06/11/30 14:54:48 at com.evermind.server.ejb.AnnotationParser.parseAnnotat
ions(AnnotationParser.java:73)
06/11/30 14:54:48 at com.evermind.server.ejb.EJBPackageDeployment.parseMet
aData(EJBPackageDeployment.java:939)
06/11/30 14:54:48 at com.evermind.server.ejb.EJBContainer.postInit(EJBCont
ainer.java:832)
06/11/30 14:54:48 ... 11 more
06/11/30 14:54:48 Caused by: java.lang.reflect.InvocationTargetException
06/11/30 14:54:48 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
ethod)
06/11/30 14:54:48 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMet
hodAccessorImpl.java:39)
06/11/30 14:54:48 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Deleg
atingMethodAccessorImpl.java:25)
06/11/30 14:54:48 at java.lang.reflect.Method.invoke(Method.java:585)
06/11/30 14:54:48 at com.evermind.server.ejb.BeanAnnotationListener.parseA
nnotatedClass(BeanAnnotationListener.java:45)
06/11/30 14:54:48 ... 15 more
06/11/30 14:54:48 Caused by: java.lang.NoClassDefFoundError: Lorg/apache/log4j/L
ogger;
06/11/30 14:54:48 at java.lang.Class.getDeclaredFields0(Native Method)
06/11/30 14:54:48 at java.lang.Class.privateGetDeclaredFields(Class.java:2
232)
06/11/30 14:54:48 at java.lang.Class.getDeclaredFields(Class.java:1715)
06/11/30 14:54:48 at com.evermind.server.deployment.AnnotationManager.pars
e(AnnotationManager.java:112)
06/11/30 14:54:48 at com.evermind.server.deployment.AnnotationManager.getM
ethods(AnnotationManager.java:64)
06/11/30 14:54:48 at com.evermind.server.ejb.deployment.BeanDescriptorAnno
tationParser.parseAnnotations(BeanDescriptorAnnotationParser.java:76)
06/11/30 14:54:48 at com.evermind.server.ejb.deployment.BeanDescriptorAnno
tationParser.parseAnnotations(BeanDescriptorAnnotationParser.java:48)
06/11/30 14:54:48 ... 20 more
2006-11-30 14:54:48.718 NOTIFICATION Application Deployer for wts2 FAILED.
i don't know if this can be connected to the following issue: i have another java environment on the same machine and therefore 2 different jdks: 1.4 and 5. the JAVA_HOME points to jdk1.4. but the batch file running the oc4j starts it with jdk5:
C:\Sun\AppServer\jdk\bin\java.exe -jar D:\oc4j\j2ee\home\oc4j.jar
i've seen a thread here saying that problems with InvocationTargetException can be solved by using Oracle AppServer instead of OC4J, which sounds pretty bizzare to me. there are a lot of folks here who run and deploy into OC4J with no problem.
thanks for you help!i am still facing the same problem all peoples face
is ther any way to fix it???????
if u find a solution i will apretiate if u tell me
coz am trying to make a webservice to try it with jdeveloper over oc4j
and as u know there is a test way provided by jdeveloepr to test ur webservice after publishing it
after i compliled the calsses and deploy it and open the url http://localhost:8888/jdeveloper_ap...webservice_name
and evry thing is ok till now and the page apear carying the method services name and when i click the method servic ename evry thing is still ok and the form apear requesting the input of the method if any with an invoke button or with the invoke button alone if no input was required and 2 link below the Proxy Jar and the Proxy Source so till now evry thing is ok
but after i press the invoke button or when i press the link proxyjar or Proxy Source the explorer show the usual error page HTTP 500 - Internal server error Internet Explorer so nothing work till the end
does any one expert in webservices with jedeveloepr know what do i miss to set so that the trial work? -
Applet works in JDeveloper, but not when deployed to OC4J
I am working on an applet version of the BI Beans java client application. It works fine when running in JDeveloper (applet viewer), but fails when deployed to OC4J. The applet shows a red X, with a message in the status bar saying "Loading Java Applet Failed...". Contents of java console are as follows:
java.lang.NoClassDefFoundError: oracle/dss/selection/step/Step
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Any one have any ideas how to chase this one down?
Here is the message that JDeveloper shows when it runs the applet. I have gone thru this and ensured that all these references are selected in my .deploy settings:
C:\JDeveloper\jdk\bin\javaw.exe -ojvm -Xbootclasspath/a:C:\dev\jdev\Workspace1\TestClientApp\classes;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biaddinsrt.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biamlocal.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bicmn.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidataclt.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidatacmn.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidatasvr.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biext.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bipres.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidata-nls.zip;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bipres-nls.zip;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bicmn-nls.zip;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biaddins-nls.zip;
C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\LW_PfjBean.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\share.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\jewt4.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\jewt4-nls.jar;
C:\JDeveloper\jdev\lib\ext\..\..\infobus\lib\infobus.jar;
C:\JDeveloper\BC4J\lib\bc4jmt.jar;C:\JDeveloper\BC4J\lib\collections.jar;
C:\JDeveloper\BC4J\lib\bc4jct.jar;
C:\JDeveloper\lib\xmlparserv2.jar;
C:\JDeveloper\jlib\jdev-cm.jar;
C:\JDeveloper\j2ee\home\lib\jndi.jar;
C:\JDeveloper\jlib\regexp.jar;
C:\JDeveloper\jlib\share.jar;
C:\JDeveloper\jlib\uix2.jar;
C:\JDeveloper\jdbc\lib\classes12.jar;
C:\JDeveloper\jdbc\lib\nls_charset12.jar;
C:\JDeveloper\j2ee\home\lib\ojsp.jar;
C:\JDeveloper\j2ee\home\jsp\lib\taglib\ojsputil.jar;
C:\JDeveloper\j2ee\home\oc4j.jar;
C:\JDeveloper\j2ee\home\lib\servlet.jar;
C:\JDeveloper\jdev\lib\ojc.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\olap_api_92.jar;
C:\JDeveloper\jdev\lib\jdev-rt.jar;
C:\JDeveloper\BC4J\lib\bc4jhtml.jar;
C:\JDeveloper\BC4J\lib\datatags.jar;
C:\JDeveloper\BC4J\lib\bc4juixtags.jar;
C:\JDeveloper\BC4J\lib\bc4j_jclient_common.jar
Any assistance would be appreciated.
s.l.i have the same problem
i cant load my applet on OC4J , i am wondering know how Oracle canot solve this problem -
How to create different log files for each of web applications deployed in OC4J
Hi All,
I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
1. how to create different log files for each of my deployed web applications ?
2. what are the advantages in running multiple instances of oc4j and in what case we should run
multiple instances of OC4J ?
3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
Thanks and Regards,
Kumar.Hi Avi,
First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
Thanks and Regards,
Ravi. -
Urgent : Problem with Client when OC4J has been setup in 2 way SSL mode
This is the output that is generated in the JDeveloper console on running the example from b14429.pdf. Examle :
====================================================
import HTTPClient.HTTPConnection;
import HTTPClient.HTTPResponse;
import javax.security.cert.X509Certificate;
import oracle.security.ssl.OracleSSLCredential;
import java.io.IOException;
import javax.net.ssl.SSLPeerUnverifiedException;
public class SSLSocketClientWithClientAuth {
public static void main(String[] args) {
if (args.length < 4) {
System.out.println("Usage: java HTTPSConnectionTest [host] [port] " +
"[wallet] [password]");
System.exit(-1);
String hostname = args[0].toLowerCase();
int port = Integer.decode(args[1]).intValue();
String walletPath = args[2];
String password = args[3];
HTTPConnection httpsConnection = null;
OracleSSLCredential credential = null;
try {
httpsConnection = new HTTPConnection("https", hostname, port);
} catch (IOException e) {
System.out.println("HTTPS Protocol not supported");
System.exit(-1);
try {
credential = new OracleSSLCredential();
credential.setWallet(walletPath, password);
} catch (IOException e) {
System.out.println("Could not open wallet");
System.exit(-1);
httpsConnection.setSSLEnabledCipherSuites(new String[]{"SSL_RSA_WITH_3DES_EDE_CBC_SHA"});
httpsConnection.setSSLCredential(credential);
try {
httpsConnection.connect();
} catch (IOException e) {
System.out.println("Could not establish connection");
e.printStackTrace();
System.exit(-1);
// X509Certificate x509 = new X509Certificate();
//javax.servlet.request.
X509Certificate[] peerCerts = null;
try {
peerCerts =
(httpsConnection.getSSLSession()).getPeerCertificateChain();
} catch (javax.net.ssl.SSLPeerUnverifiedException e) {
System.err.println("Unable to obtain peer credentials");
e.printStackTrace();
System.exit(-1);
String peerCertDN =
peerCerts[peerCerts.length - 1].getSubjectDN().getName();
peerCertDN = peerCertDN.toLowerCase();
if (peerCertDN.lastIndexOf("cn=" + hostname) == -1) {
System.out.println("Certificate for " + hostname +
" is issued to " + peerCertDN);
System.out.println("Aborting connection");
System.exit(-1);
try {
HTTPResponse rsp = httpsConnection.Get("/");
System.out.println("Server Response: ");
System.out.println(rsp);
} catch (Exception e) {
System.out.println("Exception occured during Get");
e.printStackTrace();
System.exit(-1);
================================================================
C:\j2sdk1.4.2_09\bin\javaw.exe -client -classpath "D:\eclipse\workspace\OC4JClient\OC4JClient\classes;D:\eclipse\workspace\jdev\extensions\.jar;C:\Documents and Settings\nilesh_bafna\Desktop\Nitin\lib\jssl-1_1.jar;E:\product\10.1.3.1\OracleAS_1\j2ee\home\lib\http_client.jar;E:\product\10.1.3.1\OracleAS_1\jlib\javax-ssl-1_1.jar" -Djava.protocol.handler.pkgs=HTTPClient -Djavax.net.debug=ssl -Djavax.net.ssl.keyStore=F:/oc4jcert/client.keystore -Djavax.net.ssl.keyStorePassword=welcome1 -Djavax.net.ssl.trustStore=F:/oc4jcert/client.keystore -Djavax.net.ssl.trustStorePassword=welcome1 -DOracle.ssl.defaultCipherSuites=SSL_RSA_WITH_RC4_128_MD5 SSLSocketClientWithClientAuth ps4372.persistent.co.in 443 F:/oc4jcert/client.keystore welcome1
keyStore is : F:/oc4jcert/client.keystore
keyStore type is : jks
init keystore
init keymanager of type SunX509
found key for : oracle-client
chain [0] = [
Version: V3
Subject: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
Key: SunJSSE RSA public key:
public exponent:
010001
modulus:
87fcc8e9 0ffcef8e 61f3be10 be7c9715 2792849b 3bbdeb1c cc76b337 4b82bbab
86972c63 9af3adfd 35b5df99 9078a0d1 6dc760d8 0549a95a bfa7648a 9eadd326
a6bc4b61 d8f8b42f 44e0b178 ff1dee20 db8406cd d800c26a 9c5a6ed9 4d6f2aef
bc919814 3b46be39 e129280c e83afe12 c9d4e3d7 fb5787b1 d98bed4a 4f0833d5
Validity: [From: Thu Jan 18 21:18:14 GMT+05:30 2007,
To: Wed Apr 18 21:18:14 GMT+05:30 2007]
Issuer: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
SerialNumber: [ 45af96be]
Algorithm: [MD5withRSA]
Signature:
0000: 41 47 35 41 90 10 E3 77 A7 F3 F5 81 37 49 4F 57 AG5A...w....7IOW
0010: 01 11 82 A2 FB 69 46 E8 18 6C EE 11 23 A6 67 2E .....iF..l..#.g.
0020: 68 4D D6 A6 E7 09 45 24 58 18 9A E5 44 49 10 9B hM....E$X...DI..
0030: F1 EC 99 4A 45 5F A4 4F 71 3F 05 3D 45 29 42 CD ...JE_.Oq?.=E)B.
0040: 11 87 DA 0C AA DC 55 4E CF 22 4A 94 85 CB E5 EB ......UN."J.....
0050: BA E1 10 D2 C8 80 2C 6B 65 94 13 01 1F 6E 18 C3 ......,ke....n..
0060: 87 33 8C 65 C7 03 16 03 24 FB 0D B0 6D D8 E7 AA .3.e....$...m...
0070: A1 A5 48 90 0D D6 8C 47 50 2A AA 7C 7B 14 E5 B7 ..H....GP*......
trustStore is: F:\oc4jcert\client.keystore
trustStore type is : jks
init truststore
adding as trusted cert:
Subject: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
Issuer: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
Algorithm: RSA; Serial number: 0x45af96be
Valid from Thu Jan 18 21:18:14 GMT+05:30 2007 until Wed Apr 18 21:18:14 GMT+05:30 2007
adding as trusted cert:
Subject: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
Issuer: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
Algorithm: RSA; Serial number: 0x45af95dc
Valid from Thu Jan 18 21:14:28 GMT+05:30 2007 until Wed Apr 18 21:14:28 GMT+05:30 2007
init context
trigger seeding of SecureRandom
done seeding SecureRandom
%% No cached client session
*** ClientHello, TLSv1
RandomCookie: GMT: 1152299454 bytes = { 41, 212, 166, 48, 109, 77, 185, 232, 204, 95, 158, 141, 60, 96, 196, 172, 49, 19, 49, 22, 222, 234, 47, 76, 27, 130, 5, 176 }
Session ID: {}
Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, SSL_DHE_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA]
Compression Methods: { 0 }
main, WRITE: TLSv1 Handshake, length = 73
main, WRITE: SSLv2 client hello message, length = 98
main, READ: TLSv1 Handshake, length = 839
*** ServerHello, TLSv1
RandomCookie: GMT: 1152299454 bytes = { 206, 186, 162, 116, 179, 72, 44, 198, 189, 25, 70, 227, 170, 235, 83, 186, 152, 49, 194, 222, 248, 3, 191, 170, 248, 95, 134, 35 }
Session ID: {69, 175, 178, 190, 47, 141, 131, 115, 241, 226, 39, 29, 241, 65, 235, 165, 57, 40, 52, 85, 68, 85, 68, 84, 108, 141, 1, 125, 193, 191, 158, 208}
Cipher Suite: SSL_RSA_WITH_RC4_128_MD5
Compression Method: 0
%% Created: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
** SSL_RSA_WITH_RC4_128_MD5
*** Certificate chain
chain [0] = [
Version: V3
Subject: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
Key: SunJSSE RSA public key:
public exponent:
010001
modulus:
6f24d75b 96919725 ad6ea93a cab0bd96 a49d2f3c e14f5c09 0e228e36 de64e0f2
f2b82740 1653bdb4 5024d281 21ed8c4c 89bc322b 4dc9ffb2 0e97cd95 16e6fe1e
380340c9 f3c67e2c 18d06461 f4f30eaf 4394716e 7bc66d80 810a9cb5 9c168b36
cdd99919 67074ebc edebf02e ebf0accb 2193bc38 7ae1cdda af5ff300 ed0e7763
Validity: [From: Thu Jan 18 21:14:28 GMT+05:30 2007,
To: Wed Apr 18 21:14:28 GMT+05:30 2007]
Issuer: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
SerialNumber: [ 45af95dc]
Algorithm: [MD5withRSA]
Signature:
0000: 05 4E EE 12 5B DD 7F 26 92 37 67 C9 D0 73 46 4D .N..[..&.7g..sFM
0010: 7E A5 1E 67 38 06 D9 5F 9F B7 2F E8 F6 9E BF 88 ...g8.._../.....
0020: 01 31 7D EA 42 5E 4F 9E D7 8F DA 9F 94 A5 EF 47 .1..B^O........G
0030: E3 E9 BA DE 94 15 C6 03 DE C9 C0 7D CE 58 C0 27 .............X.'
0040: 0F 1A 66 EC 73 53 5D 1D DE 7E FA 35 15 E0 2A CC ..f.sS]....5..*.
0050: C9 74 CC 58 E9 B6 2F 68 A0 89 2B F3 E6 61 7D E1 .t.X../h..+..a..
0060: 21 AF BE E8 83 49 B1 BD 36 C5 2D 1B 0D A1 0E 63 !....I..6.-....c
0070: 02 4A 82 71 B0 E1 9C AD 55 67 F9 17 A5 96 18 EB .J.q....Ug......
Found trusted certificate:
Version: V3
Subject: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
Key: SunJSSE RSA public key:
public exponent:
010001
modulus:
6f24d75b 96919725 ad6ea93a cab0bd96 a49d2f3c e14f5c09 0e228e36 de64e0f2
f2b82740 1653bdb4 5024d281 21ed8c4c 89bc322b 4dc9ffb2 0e97cd95 16e6fe1e
380340c9 f3c67e2c 18d06461 f4f30eaf 4394716e 7bc66d80 810a9cb5 9c168b36
cdd99919 67074ebc edebf02e ebf0accb 2193bc38 7ae1cdda af5ff300 ed0e7763
Validity: [From: Thu Jan 18 21:14:28 GMT+05:30 2007,
To: Wed Apr 18 21:14:28 GMT+05:30 2007]
Issuer: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
SerialNumber: [ 45af95dc]
Algorithm: [MD5withRSA]
Signature:
0000: 05 4E EE 12 5B DD 7F 26 92 37 67 C9 D0 73 46 4D .N..[..&.7g..sFM
0010: 7E A5 1E 67 38 06 D9 5F 9F B7 2F E8 F6 9E BF 88 ...g8.._../.....
0020: 01 31 7D EA 42 5E 4F 9E D7 8F DA 9F 94 A5 EF 47 .1..B^O........G
0030: E3 E9 BA DE 94 15 C6 03 DE C9 C0 7D CE 58 C0 27 .............X.'
0040: 0F 1A 66 EC 73 53 5D 1D DE 7E FA 35 15 E0 2A CC ..f.sS]....5..*.
0050: C9 74 CC 58 E9 B6 2F 68 A0 89 2B F3 E6 61 7D E1 .t.X../h..+..a..
0060: 21 AF BE E8 83 49 B1 BD 36 C5 2D 1B 0D A1 0E 63 !....I..6.-....c
0070: 02 4A 82 71 B0 E1 9C AD 55 67 F9 17 A5 96 18 EB .J.q....Ug......
*** CertificateRequest
Cert Types: RSA, DSS,
Cert Authorities:
<CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US>
*** ServerHelloDone
matching alias: oracle-client
*** Certificate chain
chain [0] = [
Version: V3
Subject: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
Key: SunJSSE RSA public key:
public exponent:
010001
modulus:
87fcc8e9 0ffcef8e 61f3be10 be7c9715 2792849b 3bbdeb1c cc76b337 4b82bbab
86972c63 9af3adfd 35b5df99 9078a0d1 6dc760d8 0549a95a bfa7648a 9eadd326
a6bc4b61 d8f8b42f 44e0b178 ff1dee20 db8406cd d800c26a 9c5a6ed9 4d6f2aef
bc919814 3b46be39 e129280c e83afe12 c9d4e3d7 fb5787b1 d98bed4a 4f0833d5
Validity: [From: Thu Jan 18 21:18:14 GMT+05:30 2007,
To: Wed Apr 18 21:18:14 GMT+05:30 2007]
Issuer: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
SerialNumber: [ 45af96be]
Algorithm: [MD5withRSA]
Signature:
0000: 41 47 35 41 90 10 E3 77 A7 F3 F5 81 37 49 4F 57 AG5A...w....7IOW
0010: 01 11 82 A2 FB 69 46 E8 18 6C EE 11 23 A6 67 2E .....iF..l..#.g.
0020: 68 4D D6 A6 E7 09 45 24 58 18 9A E5 44 49 10 9B hM....E$X...DI..
0030: F1 EC 99 4A 45 5F A4 4F 71 3F 05 3D 45 29 42 CD ...JE_.Oq?.=E)B.
0040: 11 87 DA 0C AA DC 55 4E CF 22 4A 94 85 CB E5 EB ......UN."J.....
0050: BA E1 10 D2 C8 80 2C 6B 65 94 13 01 1F 6E 18 C3 ......,ke....n..
0060: 87 33 8C 65 C7 03 16 03 24 FB 0D B0 6D D8 E7 AA .3.e....$...m...
0070: A1 A5 48 90 0D D6 8C 47 50 2A AA 7C 7B 14 E5 B7 ..H....GP*......
JsseJCE: Using JSSE internal implementation for cipher RSA/ECB/PKCS1Padding
*** ClientKeyExchange, RSA PreMasterSecret, TLSv1
Random Secret: { 3, 1, 236, 206, 185, 158, 75, 201, 230, 16, 170, 40, 193, 70, 188, 134, 36, 134, 14, 20, 191, 121, 246, 8, 7, 2, 137, 66, 166, 10, 185, 246, 104, 154, 27, 82, 161, 133, 11, 130, 11, 130, 71, 84, 155, 165, 239, 227 }
main, WRITE: TLSv1 Handshake, length = 763
SESSION KEYGEN:
PreMaster Secret:
0000: 03 01 EC CE B9 9E 4B C9 E6 10 AA 28 C1 46 BC 86 ......K....(.F..
0010: 24 86 0E 14 BF 79 F6 08 07 02 89 42 A6 0A B9 F6 $....y.....B....
0020: 68 9A 1B 52 A1 85 0B 82 0B 82 47 54 9B A5 EF E3 h..R......GT....
CONNECTION KEYGEN:
Client Nonce:
0000: 45 AF B2 BE 29 D4 A6 30 6D 4D B9 E8 CC 5F 9E 8D E...)..0mM..._..
0010: 3C 60 C4 AC 31 13 31 16 DE EA 2F 4C 1B 82 05 B0 <`..1.1.../L....
Server Nonce:
0000: 45 AF B2 BE CE BA A2 74 B3 48 2C C6 BD 19 46 E3 E......t.H,...F.
0010: AA EB 53 BA 98 31 C2 DE F8 03 BF AA F8 5F 86 23 ..S..1......._.#
Master Secret:
0000: CA 5C BA B3 D0 C9 26 A9 3A 06 08 8F 27 2E CE 17 .\....&.:...'...
0010: 93 98 BC DF EF 78 2A 99 DB 3E 50 3B 01 D1 84 5F .....x*..>P;..._
0020: 28 80 CE 7C 7C C1 12 A4 11 F6 33 9B 2E D9 6F BE (.........3...o.
Client MAC write Secret:
0000: 80 FF CE 99 7C 45 4C D8 60 FA 40 79 A2 A4 36 7C .....EL.`[email protected].
Server MAC write Secret:
0000: 2D F1 A0 A8 ED A1 7B DD 89 A5 01 90 43 BF F1 19 -...........C...
Client write key:
0000: E1 3F 33 54 D3 C5 3A 26 4A 41 65 DA AC 44 3B 28 .?3T..:&JAe..D;(
Server write key:
0000: C5 08 52 AE A9 0A 4F D0 AD 54 49 C6 4E 2F 9C 4E ..R...O..TI.N/.N
... no IV for cipher
JsseJCE: Using JSSE internal implementation for cipher RSA/ECB/PKCS1Padding
*** CertificateVerify
main, WRITE: TLSv1 Handshake, length = 134
main, WRITE: TLSv1 Change Cipher Spec, length = 1
main, handling exception: java.net.SocketException: Software caused connection abort: socket write error
main, SEND TLSv1 ALERT: fatal, description = unexpected_message
main, WRITE: TLSv1 Alert, length = 2
Exception sending alert: java.net.SocketException: Software caused connection abort: socket write error
main, called closeSocket()
IOException in getSession(): java.net.SocketException: Software caused connection abort: socket write error
Unable to obtain peer credentials
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA12275)
at SSLSocketClientWithClientAuth.main(SSLSocketClientWithClientAuth.java:56)
Process exited with exit code -1.
=====================================================
I think this is the problem with ciphers. So can anybody please help me with this!!!. This is very urgent!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thanks in advance
NileshThanks for your prompt reply I was able to make it run. Actually I am using the same keystore and truststore at both the client and the server end. I added those properties in opmn.xml as startup parameters.
I have another query I am using JDev to create a client proxy for my webservice that is deployed in OC4J. I have setup OC4J in 2 way SSL (mutual authentication)
When I invoke my client proxy with these system properties set
System.setProperty("javax.net.ssl.keyStore",keyStore);
System.setProperty("javax.net.ssl.keyStorePassword", keyStorePassword);
System.setProperty("javax.net.ssl.trustStore", trustStore);
System.setProperty("javax.net.ssl.trustStorePassword",trustStorePassword);
System.setProperty("javax.net.ssl.keyStoreType","JKS");
System.setProperty("javax.net.ssl.trustStoreType","JKS");
I get an exception in the log.xml which is
<MSG_TEXT>IOException in ServerSocketAcceptHandler$AcceptHandlerHorse:run</MSG_TEXT>
<SUPPL_DETAIL><![CDATA[javax.net.ssl.SSLProtocolException: handshake alert: no_certificate
at com.sun.net.ssl.internal.ssl.ServerHandshaker.handshakeAlert(ServerHandshaker.java:1031)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1535)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:863)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
at oracle.oc4j.network.ServerSocketAcceptHandler.doSSLHandShaking(ServerSocketAcceptHandler.java:250)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:868)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
]]></SUPPL_DETAIL>
Isn't setting these properties enough for sending a client certificate. Please help!!!!
Thanks,
Nilesh. -
Problem while deploying entity beans
Hi,
We are using JDeveloper 3.2.2 (NT) and 8.1.7 (NT) to deploy EJB's.
Now we are trying to deploy the entity bean to Oracle JVM. We are facing the following problem while deploying an entity bean .
"Persistence provider declared in the deployment descriptor is not supported
*** Errors occurred while deploying the EJB to 8i JVM ***
*** Deployment completed ***"
We would appreciate if anyone could help us to solve this error.
nullHi,
The error was coming because of the table structure. All the columns were composite keys. I alter the structured by removing composite keys and added a new column as primary key. Now it is getting deployed successfully.
Can anybody comment on such a behaviour of OC4J?
Regards,
Jinal Shah -
Global authentication for applications deployed in OC4J server
Hi,
I have a couple of JSP pages deployed in OC4J server. I
would like to use authentication provided by OC4J, it
means to use JAZN UserManager (encrypted principals, LDAP
or SSO).
My question is, if it's possible to set default
authentication method for whole server or whole
http-web-site on OC4J, or I have to make change in web.xml
in each and every program, which I am going to deploy into
my OC4J. If I have 100 programs and somebody will make
decision, there will be no authentocation on this particular
server, do I have to change all my programs and remove
entries from web.xml files?
Is there a way how to specify the login page globally for
the server, not by application?
Thanks,
Mareklograste resolver tu problema????... si es asi me puedes enviar la solucisn.....
gracias.. -
Problem creating deployment weblogic 5.1
I have weblogic 5.1 running on Win2K. I can start it up without
problems when the deployment part is commented out.
The jdbc connection seems to be working with a Oracle 8.1.7
running on the same Win2K box.
When I try to deploy some EJBs I get this error on startup:
<error>
Thu Nov 07 12:59:31 CST 2002:<E> <EJB> Could not deploy:
'C:\apps\web\weblogic\mycluster\lib\ErfpLibrary.jar': file is not a
valid jar file, or does not contain a valid bean
</error>
here's the full error output:
Any ideas on what's missing here?
<full_output>
Thu Nov 07 12:59:31 CST 2002:<E> <EJB> Could not deploy:
'C:\apps\web\weblogic\m
ycluster\lib\ErfpLibrary.jar': file is not a valid jar file, or does
not
contain a valid bean
weblogic.ejb.common.DeploymentException: DeploymentException opening
JAR file C:
\apps\web\weblogic\mycluster\lib\ErfpLibrary.jar; nested exception is:
weblogic.ejb.deployment.JarLoadException - with nested
exception:
[weblogic.ejb.common.DeploymentException: Problem creating deployment
C:\apps\we
b\weblogic\mycluster\lib\ErfpLibrary.jar from
C:\apps\web\weblogic\mycluster\lib
\ErfpLibrary.jar; nested exception is:
java.lang.NoClassDefFoundError:
com/ebreviate/erfp/utils/ClusterInterfac
e]
weblogic.ejb.common.DeploymentException: Problem creating deployment
C:\apps\web
\weblogic\mycluster\lib\ErfpLibrary.jar from
C:\apps\web\weblogic\mycluster\lib\
ErfpLibrary.jar; nested exception is:
java.lang.NoClassDefFoundError:
com/ebreviate/erfp/utils/ClusterInterfac
e
java.lang.NoClassDefFoundError:
com/ebreviate/erfp/utils/ClusterInterface
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.lang.ClassLoader.defineClass(ClassLoader.java:423)
at weblogic.boot.ServerSecureClassLoader.secureDefineClass(ServerSecureC
lassLoader.java:143)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:495)
at weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
cClassLoader.java:339)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:183)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:157)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.lang.ClassLoader.defineClass(ClassLoader.java:423)
at weblogic.boot.ServerSecureClassLoader.secureDefineClass(ServerSecureC
lassLoader.java:143)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:495)
at weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
cClassLoader.java:339)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:183)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:157)
at weblogic.ejb.deployment.dd.DeploymentUnit.loadClass(DeploymentUnit.ja
va:101)
at weblogic.ejb.deployment.dd.DeploymentUnit.initializeMethodInfos(Deplo
ymentUnit.java:424)
at weblogic.ejb.internal.EJBJarLoader.initializeMethodInfos(EJBJarLoader
.java:129)
at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java
:392)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:21
1)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:18
2)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:16
4)
at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java
:172)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:1
22)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:1
12)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:311)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java:
653)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:247)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1386)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:879)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:140)
at weblogic.Server.main(Server.java:97)
at weblogic.Server.main(Server.java:58)
--------------- nested within: ------------------
weblogic.ejb.deployment.JarLoadException - with nested exception:
[weblogic.ejb.common.DeploymentException: Problem creating deployment
C:\apps\we
b\weblogic\mycluster\lib\ErfpLibrary.jar from
C:\apps\web\weblogic\mycluster\lib
\ErfpLibrary.jar; nested exception is:
java.lang.NoClassDefFoundError:
com/ebreviate/erfp/utils/ClusterInterfac
e]
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:319)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java:
653)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:247)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1386)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:879)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:140)
at weblogic.Server.main(Server.java:97)
at weblogic.Server.main(Server.java:58)
Thu Nov 07 12:59:32 CST 2002:<I> <EJB> 0 EJB jar files loaded,
containing 0 EJBs
</full_output>Generally we get this error when we did not packaged properly, like if use
tool win zip for packaging the bean.
1. when you are building EJB jar, please make sure that you have created a
directory "META-INF" with upper case letters
2. Make sure that you have deployment descriptors in 'META-INF".
3. Use Command line console, java command to package the bean like
"jar -cv0f".
ignore this mail, if you already done this way.
Can you try packaging your
"Sharkie" <[email protected]> wrote in message
news:[email protected]...
I have weblogic 5.1 running on Win2K. I can start it up without
problems when the deployment part is commented out.
The jdbc connection seems to be working with a Oracle 8.1.7
running on the same Win2K box.
When I try to deploy some EJBs I get this error on startup:
<error>
Thu Nov 07 12:59:31 CST 2002:<E> <EJB> Could not deploy:
'C:\apps\web\weblogic\mycluster\lib\ErfpLibrary.jar': file is not a
valid jar file, or does not contain a valid bean
</error>
here's the full error output:
Any ideas on what's missing here?
<full_output>
Thu Nov 07 12:59:31 CST 2002:<E> <EJB> Could not deploy:
'C:\apps\web\weblogic\m
ycluster\lib\ErfpLibrary.jar': file is not a valid jar file, or does
not
contain a valid bean
weblogic.ejb.common.DeploymentException: DeploymentException opening
JAR file C:
\apps\web\weblogic\mycluster\lib\ErfpLibrary.jar; nested exception is:
weblogic.ejb.deployment.JarLoadException - with nested
exception:
[weblogic.ejb.common.DeploymentException: Problem creating deployment
C:\apps\we
b\weblogic\mycluster\lib\ErfpLibrary.jar from
C:\apps\web\weblogic\mycluster\lib
\ErfpLibrary.jar; nested exception is:
java.lang.NoClassDefFoundError:
com/ebreviate/erfp/utils/ClusterInterfac
e]
weblogic.ejb.common.DeploymentException: Problem creating deployment
C:\apps\web
\weblogic\mycluster\lib\ErfpLibrary.jar from
C:\apps\web\weblogic\mycluster\lib\
ErfpLibrary.jar; nested exception is:
java.lang.NoClassDefFoundError:
com/ebreviate/erfp/utils/ClusterInterfac
e
java.lang.NoClassDefFoundError:
com/ebreviate/erfp/utils/ClusterInterface
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.lang.ClassLoader.defineClass(ClassLoader.java:423)
atweblogic.boot.ServerSecureClassLoader.secureDefineClass(ServerSecureC
lassLoader.java:143)
atweblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:495)
atweblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
cClassLoader.java:339)
atweblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:183)
atweblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:157)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.lang.ClassLoader.defineClass(ClassLoader.java:423)
atweblogic.boot.ServerSecureClassLoader.secureDefineClass(ServerSecureC
lassLoader.java:143)
atweblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:495)
atweblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
cClassLoader.java:339)
atweblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:183)
atweblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:157)
atweblogic.ejb.deployment.dd.DeploymentUnit.loadClass(DeploymentUnit.ja
va:101)
atweblogic.ejb.deployment.dd.DeploymentUnit.initializeMethodInfos(Deplo
ymentUnit.java:424)
atweblogic.ejb.internal.EJBJarLoader.initializeMethodInfos(EJBJarLoader
.java:129)
atweblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java
:392)
atweblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:21
1)
atweblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:18
2)
atweblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:16
4)
atweblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java
:172)
atweblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:1
22)
atweblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:1
12)
atweblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:311)
atweblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java:
653)
atweblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:247)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1386)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:879)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:140)
at weblogic.Server.main(Server.java:97)
at weblogic.Server.main(Server.java:58)
--------------- nested within: ------------------
weblogic.ejb.deployment.JarLoadException - with nested exception:
[weblogic.ejb.common.DeploymentException: Problem creating deployment
C:\apps\we
b\weblogic\mycluster\lib\ErfpLibrary.jar from
C:\apps\web\weblogic\mycluster\lib
\ErfpLibrary.jar; nested exception is:
java.lang.NoClassDefFoundError:
com/ebreviate/erfp/utils/ClusterInterfac
e]
atweblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:319)
atweblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java:
653)
atweblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:247)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1386)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:879)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:140)
at weblogic.Server.main(Server.java:97)
at weblogic.Server.main(Server.java:58)
Thu Nov 07 12:59:32 CST 2002:<I> <EJB> 0 EJB jar files loaded,
containing 0 EJBs
</full_output> -
Oracle BI Publisher Deployment in OC4J Error
Please advise what is happening to my Server.
I have BIpublisher deployed in OC4J 10.1.3.1 on Linux Red Hat Environment. Publisher is integrated into our OBIEE sitting on the Same Server.
After redeploying the xmlpServer.ear onto OC4J, I am not able to connect to Publisher from Presentation Servers (10.1.3.4.0).
Below is the Error Message:
Exception java.lang.Exception: /app/OracleBI/server/Bin/libperfjni.so: /app/OracleBI/server/Bin/libperfjni.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
java.lang.Exception: /app/OracleBI/server/Bin/libperfjni.so: /app/OracleBI/server/Bin/libperfjni.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at oracle.bi.analytics.management.monitoring.PerfDllJNI.<init>(PerfDllJNI.java:117)
at oracle.bi.analytics.management.monitoring.AppPerfMon.<init>(AppPerfMon.java:87)
at oracle.bi.analytics.management.monitoring.PerfmonThr.initializePerfInterface(PerfmonThr.java:65)
at oracle.bi.analytics.management.monitoring.PerfmonThr.<init>(PerfmonThr.java:47)
at oracle.bi.analytics.management.Agent.registerPerformanceMBeans(Agent.java:87)
at oracle.bi.analytics.management.Agent.registerMBeans(Agent.java:55)
at oracle.bi.analytics.management.Oc4jAgent.registerMBeans(Oc4jAgent.java:48)
at oracle.bi.analytics.management.Oc4jAgent.main(Oc4jAgent.java:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ServerApplicationClientLauncherImpl.launch(ServerApplicationClientLauncherImpl.java:93)
at com.evermind.server.ServerApplicationClientLauncherImpl.run(ServerApplicationClientLauncherImpl.java:74)
at java.lang.Thread.run(Thread.java:595)
09/09/29 08:31:12 java.lang.Exception: Exception in constructing PerfDllJNI for PERF configuration file: /app/OracleBI/systemsmanagement/resources/performance/perf_OracleBIServer.xml
09/09/29 08:31:12 at oracle.bi.analytics.management.monitoring.AppPerfMon.<init>(AppPerfMon.java:97)
09/09/29 08:31:12 at oracle.bi.analytics.management.monitoring.PerfmonThr.initializePerfInterface(PerfmonThr.java:65)
09/09/29 08:31:12 at oracle.bi.analytics.management.monitoring.PerfmonThr.<init>(PerfmonThr.java:47)
09/09/29 08:31:12 at oracle.bi.analytics.management.Agent.registerPerformanceMBeans(Agent.java:87)
09/09/29 08:31:12 at oracle.bi.analytics.management.Agent.registerMBeans(Agent.java:55)
09/09/29 08:31:12 at oracle.bi.analytics.management.Oc4jAgent.registerMBeans(Oc4jAgent.java:48)
09/09/29 08:31:12 at oracle.bi.analytics.management.Oc4jAgent.main(Oc4jAgent.java:26)
09/09/29 08:31:12 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09/09/29 08:31:12 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
09/09/29 08:31:12 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
09/09/29 08:31:12 at java.lang.reflect.Method.invoke(Method.java:585)
09/09/29 08:31:12 at com.evermind.server.ServerApplicationClientLauncherImpl.launch(ServerApplicationClientLauncherImpl.java:93)
09/09/29 08:31:12 at com.evermind.server.ServerApplicationClientLauncherImpl.run(ServerApplicationClientLauncherImpl.java:74)
09/09/29 08:31:12 at java.lang.Thread.run(Thread.java:595)
2009-09-29 08:31:12.092 ERROR Could not load/parse file: /app/OracleBI/systemsmanagement/resources/performance/perf_OracleBIServer.xml
09/09/29 08:31:12 Could not initialize the Performance MBeans
09/09/29 08:31:14 xdo.server.config.dir = null
09/09/29 08:31:14 BI Beans Graph version [9.9.9.40.4350]
09/09/29 08:31:15 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
If I try to login to BI Publisher by typing in the xmlpserver URL directly, I get the following error:
500 Internal Server Error
Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
Any help to Solve this problem will do. This all happened after redeploying the .EAR file.
More Details below:
extract from application.log under application deployments:
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
09/10/05 11:31:00.403 xmlpserver: Error initializing servlet
java.lang.LinkageError: loader constraints violated when linking org/xml/sax/InputSource class
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:388)
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2361)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4810)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4734)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2957)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
09/10/05 11:31:00.404 xmlpserver: Servlet error
java.lang.LinkageError: loader constraints violated when linking org/xml/sax/InputSource class
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:388)
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2361)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4810)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4734)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2957)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
09/10/05 11:31:09.867 xmlpserver: Servlet error
java.lang.LinkageError: loader constraints violated when linking org/xml/sax/ErrorHandler class
at oracle.cabo.share.xml.TreeBuilder.parse(Unknown Source)
at oracle.cabo.share.config.ApplicationConfigurationParser.createInstance(Unknown Source)
at oracle.cabo.share.config.ApplicationConfiguration.getInstance(Unknown Source)
at oracle.cabo.share.config.Configuration.getConfiguration(Unknown Source)
at oracle.cabo.ui.ServletRenderingContext.__getConfiguration(Unknown Source)
at oracle.cabo.ui.RootRenderingContext.getConfiguration(Unknown Source)
at oracle.cabo.ui.RootRenderingContext._getLookAndFeelManager(Unknown Source)
at oracle.cabo.ui.RootRenderingContext.getLookAndFeel(Unknown Source)
at oracle.cabo.ui.ServletRenderingContext._getContentType(Unknown Source)
at oracle.cabo.ui.ServletRenderingContext.prepareResponse(Unknown Source)
at oracle.apps.xdo.servlet.ui.UIUtils.renderError(UIUtils.java:1142)
at login.jspService(_login.java:368)
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)sorry, I think I'm mistaken. That error is what it says, but it's not going to stop publisher working (it's when systemsmanagement is initialising, so perfmon may not be available).
The error related to Publisher I'd look at is from application.log:
09/10/05 11:31:00.403 xmlpserver: Error initializing servlet
java.lang.LinkageError: loader constraints violated when linking org/xml/sax/InputSource classUnfortunately I have no idea what this means.
Maybe try redeploying xmlpublisher, or using the latest version (10.1.3.4.1)?
Does Presentation Services work, i.e. can you log in to Dashboards and Answers? -
Javax.naming.NamingException: when deploying to OC4J using admin.jar
Additional details to posting (Problem Deploying to OC4J from Jbuilder8)
Jul 8 2003 @3:27
enter:-
java -jar "\ora9ias\j2ee\home\admin.jar" ormi://myhost:23791 admin password
and you get the error message:-
javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
java.net.ConnectionException: Connection refused: connect
My server.xml contains entry <rmi-config path="./rmi.xml" />
and my rmi.xml reads:-
<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE rmi-server (View Source for full doctype...)>
- <rmi-server port="23791" host="[ALL]">
- <log>
<file path="../log/rmi.log" />
</log>
</rmi-server>
I have repeatedly checked my hostname port user name and password
along with the statements in the server.xml and rmi.xml as above, but with no
success.
Regards
Gary.I am facing the same problem from this morning. I was able to start oc4j jvm without any problem today in the morning and i could deploy the war file and was able to test the web pages. But due to some unavoidable reasons i had to restart my machine and ever since then i am running into the following error.
My server.xml has a reference to rmi.xml.
Any help is highly appreciated.
Regards
Kiran
D:\Java\JDev9i\j2ee\home>java -jar oc4j.jar
Node started with id=647722646
Error initializing web-site at ./http-web-site.xml: default-web-app not specifie
d for Oracle9iAS Containers for J2EE HTTP Web Site
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
Maybe you are looking for
-
ADF application integrating with Oracle Web Cache
Hello, I am trying to integrated my ADF 11g application with Oracle Web Cache. I used this link http://andrejusb.blogspot.com/2010/06/oracle-webtier-11g-configuration-for.html for it. I am able to access my ADF application using webcache port 7785. I
-
Java web app, JNI & shared libraries.
I am developing a web application where the core functionality resides in a compiled dynamically shared library developed in C. I have developed wrapper methods to this library in via the JNI. The web framework is Struts to be deployed in Websphere.
-
How to load images in mail?
I set up Mail not to receive pictures, so placeholders are displayed in html-messages. How can I load those pictures just in case? In Mail on my Mac I can click on a button but how do I on the iPod? Steffen
-
Import segment structure from R3 to XI
Hi, I realize an Abap mapping for an idoc to file scenario . Thus in my coding, I need to define some internal structures which are exactly the same than segment E1EDP01 (idoc orders05 ). In XI , tcode SE11 i can see some idoc structures (like E1
-
NetBeans 6.5 - Decompiler - Not Working
Hi, it seems that the NBJAD plugin does not work for Netbeans 6.5. Does anyone know whether this plugin will be updated? or alterntively, if there's any other currently available plugin that would give the same functionality? what i would like to do