Re: Re: Integration of Orbeon Forms 3.9.0.post.201203310628 CE into own war-file

Posted by Heinrich Götzger on
URL: https://discuss.orbeon.com/Integration-of-Orbeon-Forms-3-9-0-post-201203310628-CE-into-own-war-file-tp4526445p4532152.html

Erik,

thanks for the response.

So I change to

<scala.version>2.9.1-1</scala.version>

and copy the file

sbinary-2.9.1-0.4.0.jar

from the orbeon-nightly-build into my lib-directory.
ok.

I did this already since with the other release of sbinary it won't even
compile, and the latest release of sbinary is not available at some
maven repository at all right now.

So then I would need to check all the other jars as well.....

But unfortunately the Javascript problem mentioned in the other post in
this thread remains.
And I've no idea how to even detect the hot spot in the code, not
talking about how to fix it.

Some helpful tips around?

Cheers

Heinrich


On 04/03/12 06:34, Erik Bruchez wrote:

> Heinrich,
>
> In short you need to make sure you end up with the exact JAR files we use.
>
> For example, I wouldn't try using 2.10.0-SNAPSHOT: we haven't tried
> that at all. We use Scala 2.9.1-1 at the moment.
>
> Also, we use sbinary-2.9.1-0.4.0.jar, not sbinary-0.2.jar.
>
> -Erik
>
> On Mon, Apr 2, 2012 at 9:03 AM, Heinrich Götzger<[hidden email]>  wrote:
>> Hello together,
>>
>> right now we use Orbeon Forms 3.9.0.201105152046-CE into our own war file.
>> To get this running we added these jars into our lib-directory:
>>
>> orbeon-form-runner.jar
>> orbeon-resources-private.jar
>> orbeon-resources-public.jar
>> orbeon-xforms-filter.jar
>> orbeon.jar
>> saxon-9-1-0-8_orbeon_20110215.jar
>> scala-library-2.8.1.jar
>>
>> It works very fine and as expected.
>>
>> For several reasons we need to check the latest release so I tried to get
>> Orbeon Forms 3.9.0.post.201203310628 CE running embedded in our own war.
>>
>> As we build with maven I had to add following fragments into pom.xml (just
>> to document it, since I didn't find something about this somewhere):
>>
>> <plugin>
>>    <groupId>org.scala-tools</groupId>
>>    <artifactId>maven-scala-plugin</artifactId>
>>    <version>2.13.1</version>
>>    <executions>
>>       <execution>
>>          <id>compile</id>
>>          <goals>
>>             <goal>compile</goal>
>>          </goals>
>>          <phase>compile</phase>
>>       </execution>
>>       <execution>
>>          <id>test-compile</id>
>>          <goals>
>>             <goal>testCompile</goal>
>>          </goals>
>>          <phase>test-compile</phase>
>>       </execution>
>>       <execution>
>>          <phase>process-resources</phase>
>>          <goals>
>>             <goal>compile</goal>
>>          </goals>
>>       </execution>
>>    </executions>
>>    <configuration>
>>       <scalaVersion>${scala.version}</scalaVersion>
>>       <args>
>>          <arg>-target:jvm-1.5</arg>
>>          <!-- to support mix java/scala only -->
>>          <arg>-make:transitivenocp</arg>
>>          <arg>-dependencyfile</arg>
>>          <arg>${project.build.directory}/.scala_dependencies</arg>
>>       </args>
>>    </configuration>
>> </plugin>
>>
>> [...]
>>
>> <repository>
>>    <id>scala-tools.org.snapshots</id>
>>    <name>Scala Tools Maven2 Repository</name>
>>
>> <url>our-own-nexus-server/nexus/content/repositories/scala-tools.org.snapshots</url>
>>    <snapshots/>
>> </repository>
>>
>> [...]
>>
>> <scala.version>2.10.0-SNAPSHOT</scala.version>
>>
>> And we added/replaced these files:
>>
>> ?       saxon-9-1-0-8_orbeon_20110613.jar
>> ?       scala-library-2.9.1-1.jar
>> M       orbeon.jar
>> M       orbeon-form-runner.jar
>> M       orbeon-resources-public.jar
>> !       saxon-9-1-0-8_orbeon_20110215.jar
>> !       scala-library-2.8.1.jar
>> M       orbeon-resources-private.jar
>> M       orbeon-xforms-filter.jar
>>
>>
>> After redeploy I get this error which I'm not able to fix:
>>
>> java.lang.ClassNotFoundException: sbinary.Writes
>>         at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
>>         at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
>>         at
>> org.orbeon.oxf.xforms.processor.XFormsToXHTML$StaticStateBits.<init>(XFormsToXHTML.java:328)
>>         at
>> org.orbeon.oxf.xforms.processor.XFormsToXHTML.readStaticState(XFormsToXHTML.java:259)
>>         at
>> org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$300(XFormsToXHTML.java:68)
>>         at
>> org.orbeon.oxf.xforms.processor.XFormsToXHTML$3.read(XFormsToXHTML.java:172)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:367)
>>         at
>> org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:159)
>>         at
>> org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.java:68)
>>         at
>> org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl(XFormsToXHTML.java:86)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:257)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:400)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:262)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:266)
>>         at
>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1$2.read(XIncludeProcessor.java:119)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:367)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:332)
>>         at
>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1.readImpl(XIncludeProcessor.java:113)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:257)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:400)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:262)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:266)
>>         at
>> org.orbeon.oxf.xforms.processor.ResourcesAggregator$$anon$1.readImpl(ResourcesAggregator.scala:45)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:257)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:400)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:262)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1$1.run(PipelineProcessor.java:95)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.executeChildren(PipelineProcessor.java:702)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:62)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:93)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:257)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:400)
>>         at
>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readImpl(ConcreteChooseProcessor.java:127)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:257)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:400)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:262)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1$1.run(PipelineProcessor.java:95)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.executeChildren(PipelineProcessor.java:702)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:62)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:93)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:257)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:400)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:262)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput$1.run(PipelineProcessor.java:558)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.executeParents(PipelineProcessor.java:719)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$400(PipelineProcessor.java:62)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput.readImpl(PipelineProcessor.java:554)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:257)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:400)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:262)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput$1.run(PipelineProcessor.java:558)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.executeParents(PipelineProcessor.java:719)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$400(PipelineProcessor.java:62)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput.readImpl(PipelineProcessor.java:554)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:257)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:400)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:262)
>>         at
>> org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.readImpl(TeeProcessor.java:89)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:257)
>>         at
>> org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:400)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:262)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsTinyTree(ProcessorImpl.java:288)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl$3.read(ProcessorImpl.java:317)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:367)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:332)
>>         at
>> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsTinyTree(ProcessorImpl.java:315)
>>         at
>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:186)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$4.run(PipelineProcessor.java:640)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.executeChildren(PipelineProcessor.java:702)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:637)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$4.run(PipelineProcessor.java:640)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.executeChildren(PipelineProcessor.java:702)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:637)
>>         at
>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:248)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$4.run(PipelineProcessor.java:640)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.executeChildren(PipelineProcessor.java:702)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:637)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$4.run(PipelineProcessor.java:640)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.executeChildren(PipelineProcessor.java:702)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:637)
>>         at
>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:248)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$4.run(PipelineProcessor.java:640)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.executeChildren(PipelineProcessor.java:702)
>>         at
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:637)
>>         at
>> org.orbeon.oxf.processor.PageFlowControllerProcessor.start(PageFlowControllerProcessor.java:473)
>>         at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:84)
>>         at
>> org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:97)
>>         at
>> org.orbeon.oxf.servlet.OrbeonServletDelegate.service(OrbeonServletDelegate.java:133)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>         at
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)
>>         at
>> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
>>         at
>> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
>>         at
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
>>         at
>> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
>>         at
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
>>         at
>> org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
>>         at
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
>>         at
>> org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
>>         at
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
>>         at
>> org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>>         at
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
>>         at
>> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
>>         at
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
>>         at
>> org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188)
>>         at
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
>>         at
>> com.xxx.security.SpnegoAuthenticationProcessingFilter.doFilter(SpnegoAuthenticationProcessingFilter.java:209)
>>         at
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
>>         at
>> org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
>>         at
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
>>         at
>> org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
>>         at
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
>>         at
>> org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)
>>         at
>> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
>>         at
>> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>         at com.xxx.servlet.RequestFilter.doFilter(RequestFilter.java:332)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>         at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>         at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>         at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>>         at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
>>         at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>>         at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>>         at java.lang.Thread.run(Thread.java:662)
>>
>>
>> So how can I get this fixed or what is missing or wrong here?
>>
>> Thanks for some support.
>>
>> Cheers
>>
>> Heinrich
>>
>> --
>> Before printing this e-mail, think about our environmental responsibility.
>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>

--
Before printing this e-mail, think about our environmental responsibility.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws