Hi,

we have splitted Nuxeo into 3 parts by using the below steps:

We ran the following commands in Command prompt from this path

(where 'package.sh' is present) "C:\Nuxeo
Ep\org.nuxeo.ecm.platform\nuxeo-platform-ear".

*Is this the right path?*

mvn -Dnuxeo.ear.assembly=nuxeo-core package
mvn -Dnuxeo.ear.assembly=nuxeo-indexing package
mvn -Dnuxeo.ear.assembly=nuxeo-webplatform package

We are working on Windows OS. Since we got some errors while using the "-o"
switch we neglected it. *Is that fine?
*Then we renamed nuxeo-core.ear as nuxeo.ear and deployed it in jboss. It
throws "application.xml not found Exception". Same error throws for
nuxeo-indexing.ear also.

Ideally "application.xml" should be present in all the ears. We have a doubt
like whether we are seperating these 3 ear packages from the right place?

Could anyone tell us how to solve this problem?

Thanks,
Dhanasekar.T

On Jan 18, 2008 11:46 AM, Dhanasekar T <
[EMAIL PROTECTED]> wrote:

> Hi All,
>
> We are able to build and run the application successfuliy inside Nuxeo
> installer's default jboss as well as in standalone jboss4.0.5 GA (using
> JEMS installer).
>
> Thanks for all the help in resolving the build & deployment errors.
>
> Now we are trying to split Nuxeo into 3 parts and run in separate JVM.
>
> Thanks again!!! :-)
> Dhanasekar.T
>
>
>
>
>
>
> On Jan 17, 2008 3:51 PM, Olivier Adam <[EMAIL PROTECTED]> wrote:
>
> > Hello
> >
> > Are JBOSS deployed with the ejb3 service ? It doesn't seem...
> >
> > Olivier
> >
> >
> > Dhanasekar T a écrit :
> > >
> >  > Hi,
> > >
> > > Thanks Florent.
> > >
> > > As per your advice we use Jboss 4.0.5.
> > > we ran ant patch , ant copy-lib and maven install all are build
> > > successful.
> > >
> > > while running jboss we are facing the below errors.
> > >
> > > 2008-01-17 14:50:01,416 WARN  [org.jboss.system.ServiceController]
> > > Problem creating service
> > > jboss.j2ee:service=EJB3,module=jboss-seam-1.1.5.NX3.jar
> > > java.lang.RuntimeException: No container configured with name
> > > 'Stateless Bean''
> > >     at
> > > org.jboss.ejb3.Ejb3AnnotationHandler.getStatelessContainer(
> > Ejb3AnnotationHandler.java:221)
> > >
> > >
> > >
> > > 2008-01-17 14:50:41,434 WARN  [org.jboss.system.ServiceController ]
> > > Problem creating service jboss.j2ee:service=EJB3
> > > ,module=nuxeo-platform-directory-facade-5.2-SNAPSHOT.jar
> > > java.lang.RuntimeException: No container configured with name
> > > 'Stateful Bean''
> > >     at
> > > org.jboss.ejb3.Ejb3AnnotationHandler.getStatefulContainer(
> > Ejb3AnnotationHandler.java
> > > :205)
> > >
> > >
> > >
> > > 2008-01-17 14:52:08,689 ERROR
> > > [org.apache.catalina.core.ContainerBase .[jboss.web
> > ].[localhost].[/nuxeo]]
> > > Exception sending context initialized event to listener instance of
> > > class org.jboss.seam.servlet.SeamListener
> > > java.lang.ClassCastException: $Proxy134
> > >     at
> > > sun.reflect.annotation.AnnotationParser.annotationForMap(
> > AnnotationParser.java:223)
> > >     at
> > > sun.reflect.annotation.AnnotationParser.parseAnnotation(
> > AnnotationParser.java
> > > :213)
> > >     at
> > > sun.reflect.annotation.AnnotationParser.parseAnnotations2(
> > AnnotationParser.java:69)
> > >
> > >
> > > Could anyone please help us to proceed further.
> > >
> > > Regards,
> > > Dhanasekar.T
> > >
> > > On Jan 16, 2008 10:12 PM, Florent Guillaume <[EMAIL PROTECTED]
> > > <mailto:[EMAIL PROTECTED]>> wrote:
> > >
> > >     Hi,
> > >
> > >     You're getting this error because, as has been said many times on
> > this
> > >     list, JBoss 4.2 is not yet supported.
> > >     On JBoss 4.0.5, which is the supported configuration, the
> > log4j.xml
> > >     file is present at the specified path.
> > >     And the ejb-jar.xml is not designed for JBoss 4.2.
> > >
> > >     Florent
> > >
> > >     On 16 Jan 2008, at 15:17, Dhanasekar T wrote:
> > >
> > >     > Thanks Oliver.
> > >     >
> > >     > Java Heap Size error is fixed but we got some JUNIT Test Case
> > >     > failure. We fixed them also by commenting out the failed test
> > case
> > >     > methods.
> > >     >
> > >     > Since we can't find the "log4j.xml" in the specified path,
> > commented
> > >     > out that particular <execution> and ran the "ant patch"
> > >     successfully.
> > >     >
> > >     > Now "ant patch" (except log4j error), ant copy-lib commands are
> > >     > working fine. Maven build is successful.
> > >     >
> > >     > While deploying the application in JBoss 4.2.0 GA, we are
> > getting
> > >     > this exception:
> > >     >
> > >     > 18:36:55,365 ERROR [MainDeployer] Could not start deployment:
> > file:/
> > >     > C:/jboss- 
> > > 4.2.0.GA/server/default/deploy/nuxeo.ear/<http://4.2.0.ga/server/default/deploy/nuxeo.ear/>
> > >     < 
> > > http://4.2.0.GA/server/default/deploy/nuxeo.ear/<http://4.2.0.ga/server/default/deploy/nuxeo.ear/>
> > >
> > >     > org.jboss.deployment.DeploymentException: ejb-jar.xml must
> > either
> > >     > obey the right xml schema or define a valid DOCTYPE!
> > >     >
> > >     > Can anyone provide the solution for this?
> > >     > On Jan 16, 2008 4:23 PM, Olivier Adam <
> > >     [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED] >>
> >  >     > wrote:
> > >     > Hello
> > >     >
> > >     > You probably need to add the "-XX:MaxPermSize=128m" property to
> > the
> > >     > MAVEN_OPTS variable of the script used for launching maven
> > >     > ($MAVEN_HOME/bin/mvn or $MAVEN_HOME/bin/mvn.bat).
> > >     >
> > >     > Olivier
> > >     >
> > >     > Dhanasekar T a écrit :
> > >     > > Hi Florent,
> > >     > >
> > >     > > Thanks for your reply. Previously we checked out Nuxeo source
> > >     from
> > >     > > this location:
> > >     > >
> > >     > >
> > >
> > http://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.platform/trunk/nuxeo-platform-ear
> > >     
> > > <http://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.platform/trunk/nuxeo-platform-ear
> > >
> > >     > >
> > >     
> > > <http://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.platform/trunk/nuxeo-platform-ear
> >
> > >     > >
> > >     > >
> > >     > > But since you have mentioned something like this in your
> > reply:
> > >     > >
> > >     > > >>All needed files are installed by running:
> > >     > > >>  ant patch
> > >     > > >>  ant copy-lib
> > >     > > >>from the root of a Nuxeo EP svn checkout.
> > >     > >
> > >     > > We checked out the Nuxeo source from
> > >     > >
> > >     > > http://svn.nuxeo.org/nuxeo/nuxeo-ep/trunk/
> > >     > >
> > >     > > Is this correct location?
> > >     > >
> > >     > > We checked out the source into "C:\nuxeo-sample\NuxeoEP".
> > After
> > >     > that,
> > >     > > we ran "ant patch" command from the root. The build was
> > >     successful
> > >     > but
> > >     > > we got an build error for "log4j".
> > >     > >
> > >     > > C:\nuxeo-sample\NuxeoEP\trunk>ant patch
> > >     > >
> > >     > > Buildfile: build.xml
> > >     > >
> > >     > > patch-unix:
> > >     > >
> > >     > > patch-windows:
> > >     > >      [echo] Running maven script jboss-patch/pom.xml
> > >     > >      [exec] [INFO] Scanning for projects...
> > >     > >      [exec] WAGON_VERSION: 1.0-beta-2
> > >     > >      [exec] [INFO]
> > >     > >
> > >     >
> > >
> > ------------------------------------------------------------------------
> > >     > >      [exec] [INFO] Building Nuxeo Platform: JBoss patch
> > >     > >      [exec] [INFO]    task-segment: [clean, package]
> > >     > >      [exec] [INFO]
> > >     > >
> > >     >
> > >
> > ------------------------------------------------------------------------
> > >     > >      [exec] [INFO] [clean:clean]
> > >     > >      [exec] [INFO] Deleting directory
> > >     > > C:\nuxeo-sample\NuxeoEP\trunk\jboss-patch\target
> > >     > >      [exec] [INFO] [buildnumber:create {execution: default}]
> > >     > >      [exec] [INFO] Checking for local modifications: skipped.
> > >     > >      [exec] [INFO] Updating project files from SCM: skipped.
> > >     > >      [exec] [INFO] Storing buildNumber: 28945 at timestamp:
> > >     > 1200476088640
> > >     > >      [exec] [INFO] [apt:execute {execution:
> > generate-bindings}]
> > >     > >      [exec] [INFO] [antrun:run {execution: prepare-transform}]
> >
> > >     > >      [exec] [INFO] Executing tasks
> > >     > >      [exec]      [echo] Preparing log4j patching...
> > >     > >      [exec]      [copy] Copying 1 file to
> > >     > > C:\jboss- 4.2.0.GA\server\default\conf
> > >     > >      [exec] [INFO] Executed tasks
> > >     > >      [exec] [INFO] [nuxeo:eclipse-version {execution:
> > eclipsize-
> > >     > version}]
> > >     > >      [exec] [INFO] eclipseVersion: 4.0.4.GA-SNAPSHOT
> > >     > >      [exec] [INFO] [xml:transform {execution:
> > >     patch-jboss-config}]
> > >     > >      [exec] [WARNING] No files found for transformation by
> > >     > stylesheet
> > >     > >
> > C:\nuxeo-sample\NuxeoEP\trunk\jboss-patch\src\main\xsl\log4j.xsl
> > >     > >      [exec] [INFO] [antrun:run {execution:
> > patch-jboss-config}]
> > >     > >      [exec] [INFO] Executing tasks
> > >     > >      [exec]      [echo] Patching log4j config...
> > >     > >      [exec] [INFO]
> > >     > >
> > >     >
> > >
> > ------------------------------------------------------------------------
> > >
> > >     > >      [exec] [ERROR] BUILD ERROR
> > >     > >      [exec] [INFO]
> > >     > >
> > >     >
> > >
> > ------------------------------------------------------------------------
> > >     > >      [exec] [INFO] Error executing ant tasks
> > >     > >      [exec]
> > >     > >      [exec] Embedded error: Warning: Could not find file
> > >     > > C:\nuxeo-sample\NuxeoEP\trunk\jboss-patch\target\generated-
> > >     > resources\xml\xslt\log4j.xml
> > >     > > to copy.
> > >     > >      [exec] [INFO]
> > >     > >
> > >     >
> > >
> > ------------------------------------------------------------------------
> > >     > >      [exec] [INFO] For more information, run Maven with the -e
> > >     > switch
> > >     > >      [exec] [INFO]
> > >     > >
> > >     >
> > >
> > ------------------------------------------------------------------------
> > >     > >      [exec] [INFO] Total time: 10 seconds
> > >     > >      [exec] [INFO] Finished at: Wed Jan 16 15:04:54 IST 2008
> > >     > >      [exec] [INFO] Final Memory: 15M/29M
> > >     > >      [exec] [INFO]
> > >     > >
> > >     >
> > >
> > ------------------------------------------------------------------------
> > >     > >
> > >     > > patch:
> > >     > >
> > >     > > BUILD SUCCESSFUL
> > >     > > Total time: 12 seconds
> > >     > >
> > >     > >
> > >     > > Since the build was successful, we ran the "ant copy-lib"
> > command
> > >     > > which was also successful.
> > >     > >
> > >     > > But when we ran "mvn install -X" the build is failing because
> > of
> > >     > "Java
> > >     > > Heap Size" error.
> > >     > >
> > >     > > [INFO]
> > >     > >
> > >     >
> > >
> > ------------------------------------------------------------------------
> > >
> > >     > > [ERROR] BUILD ERROR
> > >     > > [INFO]
> > >     > >
> > >     >
> > >
> > ------------------------------------------------------------------------
> > >     > > [INFO] : [EMAIL PROTECTED]
> > >     > > Compilation error.
> > >     > >
> > >     > > The system is out of resources.
> > >     > > Consult the following stack trace for details.
> > >     > > java.lang.OutOfMemoryError: Java heap space
> > >     > >
> > >     > > [INFO]
> > >     > >
> > >     >
> > >
> > ------------------------------------------------------------------------
> > >     > > [DEBUG] Trace
> > >     > > org.apache.maven.lifecycle.LifecycleExecutionException :
> > >     > Compilation error.
> > >     > >         at
> > >     > >
> > >     > org
> > >     > .apache
> > >     > .maven
> > >     > .lifecycle
> > >     > .DefaultLifecycleExecutor
> > >     > .executeGoals(DefaultLifecycleExecutor.java :564)
> > >     > >         at
> > >     > >
> > >     > org
> > >     > .apache
> > >     > .maven
> > >     > .lifecycle
> > >     > .DefaultLifecycleExecutor
> > >     > .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> > >     > >         at
> > >     > >
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> > >     > (DefaultLifecycleExecutor.java:459)
> > >     > >
> > >     > >         at
> > >     > >
> > >     > org
> > >     > .apache
> > >     > .maven
> > >     > .lifecycle
> > >     > .DefaultLifecycleExecutor
> > >     > .executeGoalAndHandleFailures( DefaultLifecycleExecutor.java
> > :311)
> > >     > >         at
> > >     > >
> > >     > org
> > >     >
> > .apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> > >     > (DefaultLifecycleExecutor.java
> > >     > > :278)
> > >     > >         at
> > >     > >
> > >     > org
> > >     > .apache
> > >     > .maven
> > >     > .lifecycle
> > >     > .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
> > :143)
> > >     > >         at org.apache.maven.DefaultMaven.doExecute
> > >     > (DefaultMaven.java:333)
> > >     > >         at org.apache.maven.DefaultMaven.execute
> > >     > (DefaultMaven.java:126)
> > >     > >         at org.apache.maven.cli.MavenCli.main(MavenCli.java
> > :282)
> > >     > >         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 org.codehaus.classworlds.Launcher.launchEnhanced
> > >     > > (Launcher.java:315)
> > >     > >         at org.codehaus.classworlds.Launcher.launch
> > >     ( Launcher.java:
> > >     > 255)
> > >     > >         at
> > >     > > org.codehaus.classworlds.Launcher.mainWithExitCode(
> > Launcher.java :
> > >     > 430)
> > >     > >         at org.codehaus.classworlds.Launcher.main (
> > Launcher.java:
> > >     > 375)
> > >     > > Caused by: org.apache.maven.plugin.MojoExecutionException :
> > >     > Compilation
> > >     > > error.
> > >     > >         at
> > >     > >
> > >     > org
> > >     > .apache
> > >     > .myfaces.maven.plugin.AbstractAPTMojo.execute(
> > AbstractAPTMojo.java:
> > >     > 467)
> > >     > >         at org.apache.myfaces.maven.plugin.AptMojo.execute
> > >     > > (AptMojo.java :113)
> > >     > >         at
> > >     > >
> > >     > org
> > >     > .apache
> > >     > .maven
> > >     > .plugin.DefaultPluginManager.executeMojo(
> > DefaultPluginManager.java:
> > >     > 447)
> > >     > >         at
> > >     > >
> > >     > org
> > >     > .apache
> > >     > .maven
> > >     > .lifecycle
> > >     > .DefaultLifecycleExecutor.executeGoals(
> > DefaultLifecycleExecutor.java
> > >     > > :539)
> > >     > >         ... 16 more
> > >     > > [INFO]
> > >     > >
> > >     >
> > >
> > ------------------------------------------------------------------------
> > >     > > [INFO] Total time: 10 minutes 2 seconds
> > >     > > [INFO] Finished at: Wed Jan 16 15:19:29 IST 2008
> > >     > > [INFO] Final Memory: 60M/63M
> > >     > > [INFO]
> > >     > >
> > >     >
> > >
> > ------------------------------------------------------------------------
> > >     > >
> > >     > > Any help would be greatly appreciated.
> > >     > >
> > >     > > Thanks in advance.
> > >     > >
> > >     > > Dhanasekar T.
> > >     > >
> > >     > >
> > >     >
> > >
> > ------------------------------------------------------------------------
> > >     > >
> > >     > > _______________________________________________
> > >     > > ECM mailing list
> > >     > > [email protected] <mailto: [email protected]>
> > >     > > http://lists.nuxeo.com/mailman/listinfo/ecm
> > >     < http://lists.nuxeo.com/mailman/listinfo/ecm>
> > >     > >
> > >     >
> > >     >
> > >
> > >     --
> > >     Florent Guillaume, Director of R&D, Nuxeo
> > >     Open Source Enterprise Content Management (ECM)
> > >     http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87
> > >
> > >
> > >
> > >
> > >
> > ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> >  > ECM mailing list
> > > [email protected]
> > > http://lists.nuxeo.com/mailman/listinfo/ecm
> > >
> >
> >
>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to