it works :)

---------START SUMMARY/TUTORIAL---------
To start Lenya under Oracle Application server and OC4J you need the OAS10g.
Lenya does not work with OAS904 (Java 1.3.1).

You need to deploy the lenya.war. Follow the steps:

1.      Start dmctl

        /opt/oracle/oas904/dcm/bin/dcmctl shell

2.      Create new Component

        cmctl> createcomponent -ct oc4j -co componentname

With "getstate " you can check the status of the started services

        dcmctl> getstate -v

            Component               Type          Up Status     In Sync Status
==========================================================================
        1   home                    OC4J          Up            True
        2   HTTP_Server             HTTP_Server   Up            True

3. Start up of the new component

        dcmctl> start -co componentname -v

        dcmctl> getstate -v

            Component               Type          Up Status     In Sync Status
==========================================================================
        1   home                    OC4J          Up            True
        2   HTTP_Server             HTTP_Server   Up            True
        3   componentname           OC4J          Up            True

4. Deploying the Publication.

        dcmctl> deployapplication -f
/home/ias904/lenya/apache-lenya-1.2.4-bin/lenya.war -a webcms -rc webcms

You can find the lenya.war file in the Binary-Version of Lenya. Now you must
create a directory named "endorsed" in "ORACLE_HOME\jdk\jre\lib" and put there
the following libraries:

xalan-2.5.0.jar or higher
xercesImpl-2.6.2.jar or higher
xml-apis.jar

You can find the libraries under:

"/opt/oracle/oas10g/j2ee/componentname/applications/webcms/lenya/WEB-INF/lib "

Add the following Java option:

 -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser

You can add this option in "Application Server Control" or manual in the File
$ORACLE_HOME/opmn/conf/opmn.xml. Replace

        <data id="java-options" value="-server
-Djava.security.policy=/opt/oracle/oas10g/j2ee/componentname/config/java2.policy
-Djava.awt.headless=true"/>

with

        <data id="java-options" value="-server
-Djava.security.policy=/opt/oracle/oas10g/j2ee/componentname/config/java2.policy
-Djava.awt.headless=true
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser"/>

Now restart your container and hit

        http://url:port/webcms/


Use the URL to log on:

        http://url:port/webcms/default/authoring/index.html

---------END SUMMARY/TUTORIAL---------

My English is horrible, but I did my best.

thank you all very much
CuPaKoB


> Ok, first of all add the following Java options to your Java command line :
>  -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser
>
> We also had to add those options to increase the memory size but I
> don't know if you have to :
>  -Xmx512M
>  -Xms512M
>
> Finally, create a directory named "endorsed" in "ORACLE_HOME\jdk\jre\lib"
> and
> put there the following libraries :
>
> xalan-2.5.0.jar or higher
> xercesImpl-2.6.2.jar or higher
> xml-apis.jar
>
> Restart your container and everything should work.
>
> Please note that Oracle doesn't support this configuration but it works
> so....
> Good luck!

> > > > > if i try
> > > > >
> > > > > http://myurl:port/webcms/lenya/
> > > >
> > > > After a quick look at the OC4J manual it seems that you have to hit the
> > > >
> > > > http://myurl:port/webcms/
> >
> > doesnt work :(
> > i have tried also:
> > http://myurl:port/webcms/lenya/default/
> > http://myurl:port/webcms/default/
> > http://myurl:port/webcms/lenya/default/authoring/
> > http://myurl:port/webcms/lenya/default/live/
> >
> > > I know what your problem is! I had so much trouble to deploy on Oc4j
> > > but the good news it doable. The problem is that they embedd in their
> > > JDK the Oracle XML Parser, wich is supposed to be JAXP certified...
> > > But for some reason it doesn't work with Xalan. So all you have to do,
> > > is to put xerces in the embedded directory of your JDK and specify
> > > some parameters on the launch line. I don't remember it by heart but I
> > > will send you the detailed instructions tomorrow once I am at my
> > > office.
> >
> > thanks a lot :)
> >
> > > Oracle will offer a mechanism to override the bootstrap libraries but
> > > in Oc4j 10.0.1.3 (always the next version, heh?). If you want my
> > > opinion, it's really suck to hide your implementations like that so I
> > > try to work with the official Sun JDK on my desktop but I know it
> > > takes time to make such change on a production server.
> > >
> > > Hope this help!
> >
> > me too :)
> >
> > Thanks,
> > CuPaKoB
> >
> > ----------------------------------------------------------------
> > This message was sent using IMP, the Internet Messaging Program.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Alexandre Poitras
> Québec, Canada
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to