• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Deployment problem on Oc4j

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,
am having a deployment problem on oc4j for a simple application.

The error message that i am getting is :

Error instantiating application at file:/C:/oc4j/orion/application: Unable to find/read assembly info for C:\oc4j\orion/application (IO error: unable
to find application)

server.xml :

<?xml version="1.0"?>
<!DOCTYPE application-server PUBLIC "Orion Application Server Config" "http://www.orionserver.com/dtds/application-server.dtd">

<application-server
application-directory="../applications"
deployment-directory="../application-deployments"
>
<application name="VUA01" path="../application" />

<rmi-config path="./rmi.xml" />
<!-- JMS-server config link, uncomment to activate the JMS service -->
<!-- <jms-config path="./jms.xml" /> -->
<log>
<file path="../log/server.log" />
</log>

<global-application name="default" path="application.xml" />

<global-web-app-config path="global-web-application.xml" />
<web-site path="./default-web-site.xml" />

<!-- Compiler, activate this to specify an alternative compiler such
as jikes for EJB/JSP compiling. -->
<!-- <compiler executable="jikes" classpath="/myjdkdir/jre/lib/rt.jar" /> -->
</application-server>

application.xml :

<?xml version="1.0"?>
<!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN" "http://www.orionserver.com/dtds/orion-application.dtd">

<!-- The global application config that is the parent of all the other
applications in this server. -->
<orion-application>
<web-module id="defaultWebApp" path="../default-web-app" />
<persistence path="../persistence" />
<!-- Path to the libraries that are installed on this server.
These will accesible for the servlets, EJBs etc -->
<library path="../lib" />

<principals path="./principals.xml" />

<log>
<file path="../log/global-application.log" />
</log>

<data-sources path="data-sources.xml" />

<namespace-access>
<read-access>
<namespace-resource root="">
<security-role-mapping>
<group name="administrators" />
</security-role-mapping>
</namespace-resource>
</read-access>
<write-access>
<namespace-resource root="">
<security-role-mapping>
<group name="administrators" />
</security-role-mapping>
</namespace-resource>
</write-access>
</namespace-access>
</orion-application>

inside the ear :
application.xml :
<?xml version="1.0"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">

<application>
<display-name>VUA01</display-name>
<module>
<ejb>VUA01-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>VUA01-web.war</web-uri>
<context-root>/VUA01</context-root>
</web>
</module>

<security-role>
<role-name>users</role-name>
</security-role>
</application>


Am i missing something ???

thanks in advance...
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Deepak,
It looks like you're using a very old version of OC4J, because Oracle replaced Orion's DTDs with their own, a long time ago. Perhaps you should download the latest OC4J stand-alone?

The "application.xml" file in your EAR, needs to be under the META-INF directory, so you need the following entry in your EAR:

It's not clear from your post whether this is the case.

Good Luck,
Avi.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic