Re: WebSphere/Cocoon Gurus - Help!!!!

2001-09-17 Thread Jon Peterson

We have it running on WAS 3.5.2, but it took a fair amount of research (code
tweak, eFixes, special command-line args for JVM, classpath arrangement,
etc) to get it to work.  What release are you running?

Regards,
Jon

- Original Message -
From: "Rune Sandnes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 5:12 AM
Subject: RE: WebSphere/Cocoon Gurus - Help



Has anyone of you tried Cocoon 2 on WebSphere?

It could be interesting for us...

Rune,
Trondheim,
Norway

-
Please check that your question has not already been answered in the
FAQ before posting. 

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



-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: WebSphere/Cocoon Gurus - Help!!!!

2001-09-10 Thread Jon Peterson

You'd probably need to get IBM involved to identify exactly which eFix of
the .4 fixpack impacted you.  I know there was a lot put in between 3.5.4
and 3.5.2.  I've found 3.5.2 to be the most stable of the point releases (we
had fundamental problems -- related to the JSP compiler -- even with 3.5.3
that kept us from "upgrading").

Good job at simply getting it running!

Regards,
Jon

- Original Message -
From: "Jack Hirasawa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 10, 2001 10:45 AM
Subject: Re: WebSphere/Cocoon Gurus - Help


> Hi fellow cocoon-users
>
> I was able to successfully get Cocoon 1.8.2 working under WebSphere, but
> only after I back-levelled WebSphere to 3.5.2 (I was trying to get it
> running under 3.5.4).  Does anyone know what might have changed between
the
> two releases that causes Cocoon 1.8.2 to break?
>
> Cheers...
>
> Jack
>
>
> >From: "Jack Hirasawa" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: WebSphere/Cocoon Gurus -  Help
> >Date: Sat, 08 Sep 2001 21:44:00 -0400
> >MIME-Version: 1.0
> >X-Originating-IP: [64.229.42.233]
> >Received: from [64.125.133.20] by hotmail.com (3.2) with ESMTP id
> >MHotMailBD64147F002440043188407D85140BE90; Sat, 08 Sep 2001
18:44:32 -0700
> >Received: (qmail 36370 invoked by uid 500); 9 Sep 2001 01:44:21 -
> >Received: (qmail 36359 invoked from network); 9 Sep 2001 01:44:20 -
> >From cocoon-users-return-23514-jackhirasawa Sat, 08 Sep 2001
18:46:11 -0700
> >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> >Precedence: bulk
> >list-help: 
> >list-unsubscribe: 
> >list-post: 
> >Delivered-To: mailing list [EMAIL PROTECTED]
> >Message-ID: <[EMAIL PROTECTED]>
> >X-OriginalArrivalTime: 09 Sep 2001 01:44:01.0130 (UTC)
> >FILETIME=[E64DDCA0:01C138D0]
> >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> >
> >(A desperate plea for understanding in a mechanized ethos)
> >
> >Has anyone successfully installed Cocoon 1.8.2 on Websphere 3.5.4?
> >
> >I downloaded cocoon 1.8.2, and ran the install script.
> >
> >I got an exception Error accessing the resource cocoon.properties
> >
> >I changed cocoon.java to access it as a file instead of a resource.
> >
> >I was successful in getting http://localhost/cocoon/Cocoon.xml to
display.
> >
> >When I try to display the samples using http://localhost/cocoon/index.xml
I
> >get the exception below...
> >
> >I have tried putting the jar files into the classpath in the admin.config
> >file (and I did put the sax-bugfix.jar and xerces.jar in front)
> >
> >Any ideas? ... Anyone? ... I'm stumped.
> >
> >here's the exception...
> >
> >Error found handling the request.
> >org.xml.sax.SAXParseException: The markup in the document following the
> >root
> >element must be well-formed.
> > at org.apache.cocoon.Engine.handle(Engine.java:313)
> > at org.apache.cocoon.Cocoon.service(Cocoon.java:184)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
>
>com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManage
r.java:626)
> > at
>
>com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecyc
leServlet.java:160)
> > at
>
>com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServl
et.java:287)
> > at
>
>com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycl
eServlet.java:105)
> > at
>
>com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:3
60)
> > at
>
>com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMa
nager.java:775)
> > at
>
>com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletMana
ger.java:701)
> > at
>
>com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
WebAppRequestDispatcher.java:478)
> > at
>
>com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppReques
tDispatcher.java:234)
> > at
>
>com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequest
Dispatcher.java:138)
> > at
>
>com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker
.java:77)
> > at
>
>com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedI
nvocation.java:67)
> > at
>
>com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheab
leInvocationContext.java:106)
> > at
>
>com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletReq
uestProcessor.java:160)
> > at
>
>com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListene
r.java:300)
> > at
>
>com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(S
QEventListenerImp.java:230)
> > at
>
>com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEvent
ListenerImp.java:104)
> > at
>
>com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQ
EventSource.java:212)
> > at
>
>com.ibm.servlet.engine.oselist

Re: Cocoon and Actions

2001-09-10 Thread Jon Peterson



If you have C2 installed locally, you can look at 
http://localhost:8080/cocoon/documents/actions for 
further information.

  - Original Message - 
  From: 
  Henrik Hofmann 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, September 10, 2001 9:37 
  AM
  Subject: Cocoon and Actions
  
  Hi,does anyone know where to find additional Information on 
  Cocoon 2 =concepts and how to use the espacially Actions. The 
  documentation on =cocoon 2 Website gave me some idea what actions do and 
  how to use them, =but to me most things still remain 
  fuzzy.bye    
Henrik


Re: Cocoon2 and IBM Visual Age WebSphere Test Environment?

2001-09-04 Thread Jon Peterson

I'll send you the instructions off-line, as WTE is IDE specific and
irrelevant for the vast majority of Cocoon2.

As for WTE being exactly like WAS, that's what Big Blue's marketing
department would like you to believe.  However, reality is far from that
case.  Deploying it on WAS took a completely different set of steps.

Jon

- Original Message -
From: "Dietmar Haffner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 31, 2001 10:36 PM
Subject: AW: Cocoon2 and IBM Visual Age WebSphere Test Environment?


> Hello Jon,
>
> >> WTE is not servlet 2.2 compliant, which I'm thinking will ultimately
> cause you problems. <<
>
> I says it would be
>
> >> Instead, I used the Apache Tomcat Test Environment <<
>
> Yes, I'm able to run it with Tomcat, too.
>
> >> If interested, I can send you the list of things I had to do to get it
> running in this mode. <<
>
> Yes, please!  I used JDK 1.3.1, not VAJ to compile for Tomcat.  This is
the
> first time I have to use VAJ (customer wants VAJ nad WebSphere), so it
might
> well be I made some mistakes importing and compiling Cocoon in the first
> place.  VAJs "problem" detection doesn't seem too reliable to me.
>
> >> Then, when you get ready to deploy Cocoon2 to WebSphere Application
> Server, you'll have a whole other set of things to do to get it running
:-)
> <<
>
> Isn't WTE supposed to act exactly like a real WAS?
>
> Thanks,
>
> Dietmar
>
> P.S.: I'll be out of office on Monday.
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: [C2b2] JSP Generator example fails with "Error creating the resource Exception JspGenerator.generate()"

2001-09-03 Thread Jon Peterson

Confirm that you have jasper.jar (or maybe jasper-runtime.jar) in
$TOMCAT_HOME/lib.  It's a bit confusing if it's not there, seeing that
you're using Tomcat...I had this problem using Resin and doing this solved
it.

Jon

- Original Message -
From: "Paul Spencer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 02, 2001 2:08 PM
Subject: [C2b2] JSP Generator example fails with "Error creating the
resource Exception JspGenerator.generate()"


> Using Cocoon 2.0-b2, Tomcat 4.0-b7, Java 1.3, Window NT4 SP5.
>
> I get the following error running the Jsp Generator example:
>
> Error Creating the resource
>Exception JspGenerator.generate()
> from source org.apache.cocoon.ProcessingException
> description org.apache.cocoon.ProcessingException: Exception
> JspGenerator.generate():java.lang.ClassNotFoundException:
> org.apache.jasper.servlet.JspServlet
> extra info
>  java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
>
>  java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> at
>
org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(JSPEngineImpl.java
:121)
> at
> org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:76)
> at
>
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:217)
> at
>
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:361)
> at
>
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN3B6(sitemap_xmap.java:5082)
> at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2357)
> at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2072)
> at org.apache.cocoon.sitemap.Handler.process(Handler.java:160)
> at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:103)
> at org.apache.cocoon.Cocoon.process(Cocoon.java:423)
> at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:489)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:215)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1000)
> at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093
)
> at java.lang.Thread.run(Thread.java:484)
>   org.apache.cocoon.ProcessingException: Exception
> JspGenerator.generate():java.lang.ClassNotFoundException:
> org.apache.jasper.servlet.JspServlet
>
>  org.apache.cocoon.ProcessingException: Exception
> JspGenerator.generate():java.lang.ClassNotFoundException:
> org.apache.jasper.servlet.JspServlet
> at
> org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:96)
> at
>
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:217)
> at
>
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:361)
> at
>
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN3B6(sitemap_xmap.java

Re: Cocoon2 and IBM Visual Age WebSphere Test Environment?

2001-08-31 Thread Jon Peterson

I was able to get Cocoon2 (b1) running in VAJ but not with Websphere Test
Environment.  WTE is not servlet 2.2 compliant, which I'm thinking will
ultimately cause you problems.  Instead, I used the Apache Tomcat Test
Environment (There's also a Resin plug-in, if you'd rather use it).  I don't
recall running into the problem you listed below...but I ran into several
issues before it ran successfully.

If interested, I can send you the list of things I had to do to get it
running in this mode.

Then, when you get ready to deploy Cocoon2 to WebSphere Application Server,
you'll have a whole other set of things to do to get it running :-)

Do other's think it'd be good to provide an install FAQ for various vendors,
similar to what Struts does (see
http://jakarta.apache.org/struts/installation.html, bottom of page).  I'd be
happy to share what I had to do with Resin, VisualAge for Java and
WebSphere. I'm sure there are other containers that people have deployed to
and it'd be nice for others to not have to go thru the deployment
frustration that is often accompanied by first-time deployment to containers
other than Tomcat.

Regards,
Jon

- Original Message -
From: "Dietmar Haffner" <[EMAIL PROTECTED]>
To: "Cocoon Users" <[EMAIL PROTECTED]>
Sent: Friday, August 31, 2001 1:40 PM
Subject: Cocoon2 and IBM Visual Age WebSphere Test Environment?


> Hi,
>
> I'm trying to get Cocoon-2.0b2 running on the WebSphere Test Environment
> that comes with Visual Age for Java 3.5.3.  As I didn't find any reference
> in the docs, on the web site, in the FAQS and this mailing lists archives
> (only Cocoon 1.*), I proceeded to try on my self.  I:
> - created a new in VAJ
> - imported the sources and lib/*.jar from Cocoon
> - resolved all "problems" reported by VAJ
> - added the VAJ project to the servlet engines class path
> - copied Cocoons directory "webapp" to the web root as "/cocoon"
> - added a servlet for Cocoon to WebSpheres "default_app.webapp"
>
> One problem is, I can't seem to be able to get all path references right.
> Cocoon is looking for some files in "C:\...\web\cocoon\..." and for others
> in "C:\cocoon\...". For the moment I took the easy way out and simply
> duplicated the directory.  This way at least WebSphere is able to load and
> initialize the Cocoon Servlet.
>
> Now, when I try to load "http://localhost:8080/cocoon"; in the browser, I
get
> a page with the title "Cocoon 2 - Internal server error" telling me "The
> sitemap handler's sitemap is not available. Please check
> /cocoon/WEB-INF/logs/cocoon2.log for the exact error".
>
> The file "cocoon2.log" is almost 50k, so I don't want to post all of it
> here.  As I don't really understand it, I looked up to the start of the
> warnings and errors following the (only) request in it.  This is what it
> says:
>
> 
> [...]
> DEBUG   16790   [cocoon  ] (Thread-11): looking up shorthand sitemap,
> returning null
> WARN16793   [cocoon  ] (Thread-11): Looking up component on an
> uninitialized ComponentManager:
> org.apache.cocoon.generation.GeneratorSelector
> DEBUG   16793   [cocoon  ] (Thread-11): Could not find ComponentHandler,
> attempting to create one for role:
> org.apache.cocoon.generation.GeneratorSelector
> ERROR   16795   [cocoon  ] (Thread-11): Error compiling sitemap
> java.lang.InternalError: (Ex02) An error has occurred.
> java.lang.Throwable(java.lang.String) java.lang.Error(java.lang.String)
> java.lang.VirtualMachineError(java.lang.String)
> java.lang.InternalError(java.lang.String) java.lang.Class
> java.lang.ClassLoader.findLoadedClass(java.lang.String) java.lang.Class
> java.lang.ClassLoader.loadClass(java.lang.String, boolean) java.lang.Class
> java.lang.ClassLoader.loadClass(java.lang.String)
> org.apache.avalon.framework.component.Component
>
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(java.
> lang.String) org.apache.avalon.framework.component.Component
>
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(java.
> lang.String) void
>
org.apache.cocoon.sitemap.AbstractSitemap.compose(org.apache.avalon.framewor
> k.component.ComponentManager) java.lang.Object
>
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance()
> void
>
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
> ) void
>
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
> or(org.apache.avalon.framework.component.ComponentManager,
java.lang.Object,
> java.lang.Class) void
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addComp
> iledComponent(org.apache.avalon.framework.component.ComponentManager,
> java.lang.String, java.lang.Class)
> org.apache.cocoon.components.language.generator.CompiledComponent
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(or
> g.apache.avalon.framework.component.ComponentManager, java.lang.String,
> java.lang.Stri

Re: How to log from a Java class ?

2001-08-27 Thread Jon Peterson

I'd recommend looking at Trunk (http://www.openinstitute.org/trunk/).  This
API allows you to have plugable logging drivers such as Logkit (which cocoon
uses), Log4j, JDK1.4, etc.

Regards,
Jon


- Original Message -
From: "Cyril Cambien" <[EMAIL PROTECTED]>
To: "Cocoon users" <[EMAIL PROTECTED]>
Sent: Monday, August 27, 2001 8:48 AM
Subject: How to log from a Java class ?


> I understand how to log from a xsp file using the log.xsl logicsheet but
> what is the best way to log information from the Java classes called
> from my xsp files ?
> Thanks
> Cyril
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: MS Word serializer

2001-08-20 Thread Jon Peterson

I've recently run across a similar requirement and thought about writing to
Rich Text Format.  After looking around a bit, I saw that C1 actually had a
3rd party formatter (http://sourceforge.net/projects/jfor/) that would
transform fo to rtf.  I haven't seen any references for a port to C2, but
that would be the next step (it's been regisered as a feature request).
Until then, I'll look into what's been recommended below.

Jon


- Original Message -
From: "Berin Loritsch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 8:51 AM
Subject: Re: MS Word serializer


> David Brunkow wrote:
> > n

> > Can anyone tell me if there are any plans to write an MS Word
serializer?  I
> > want to conver XML to Word, not Word to XML.
>
> You have two alternatives (something I had to do in a previous job):
>
> 1) Learn MS Word XP's XML markup (probably the best solution)
> 2) Use word to open simple HTML files.
>
> I chose the second because we had a formatted text output that needed to
be
> reformatted to a Word document.  The first solution was all Visual Basic
for
> Applications (VBA), and loaded the text in and made all the
transformations
> in no less than 72 passes.  That was an 8 hour process.
>
> The second solution used C++ to convert the text to HTML in one pass, load
the
> HTML document in Word, and apply a much simpler VBA routine.  The whole
process
> was down to a couple of minutes (the text 2 html was 5 seconds).
>
> Check this out with a regular HTML file, but try changing the extention to
> ".doc" and open the page.  (Nothing fancy, just a couple  and 
tags).
> If it opens correctly, you have your solution:  output HTML, with a Word
> mime-type.
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Getting read of the X server dependency

2001-08-16 Thread Jon Peterson

Thanks for the input!

In our situation, we incorporate SVG as a fo:instream-foreign-object so I
can't remove the dependency.  Does anyone have any advice on how we can
improve the configuration (for instance, different Xvfb parameters maybe?)
or is it solely a function of the OS/version, JVM/version and X/version?

Thanks...Jon

- Original Message -
From: "java guru" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 9:15 AM
Subject: Re: Getting read of the X server dependency


> That is very true.,
>I took out the batik stuff BECAUSE all of my
> project could be re-arranged with static graphics
> instead of svg..I would recommend to use it only if
> its absolutely necessary...
>There was substantical load decrease on server
> after i took out batik...
>
> And load testing is absolutely important...
>
> have good time..
>
>  --- Berin Loritsch <[EMAIL PROTECTED]> wrote: >
> Jon Peterson wrote:
> > >
> > > Xvfb is what you need.  If you're running Linux,
> > you may already have it
> > > available (do which Xvfb or slocate Xvfb to
> > check).  If not, go to
> > > Xfree86.org and download either the Xvfb component
> > of X (if you have XServer
> > > installed) or grab the entire X Server and run
> > Xinstall.sh.  If you're
> > > running Solaris, go to
> > >
> >
> http://tmap.pmel.noaa.gov/home/ferret/FAQ/graphics/Solaris_Xvfb.html
> > for the
> > > binaries.
> >
> > That takes care of part of the problem.  Please, I
> > highly recommend stress
> > testing that setup.  Any time you are dependant on
> > the interactions between
> > two highly complex beasts (JVM and X windows
> > server), there are bound to be
> > synchronization issues and other bugs that are
> > beyond the control of Cocoon!
> >
> > Consider the load you are expecting, and test for
> > twice that number.  It is
> > more important that you test for concurrency than
> > for sequential access.  If
> > you expect 100 simultaneous users during peek time,
> > test for 200 users.  Use
> > realistic settings, but test nonetheless.
> >
> > Keep in mind that any time you incorporate SVG using
> > FOP or Batik, then you
> > are going to use the X windows server.
> >
> > If you have _any_ serializers that use Batik (i.e.
> > svg2png, svg2jpg), you are
> > going to require the use of Batik.
> >
> > In some instances the setup will be perfectly
> > stable--but some platforms will
> > prove unstable.  It all depends on the
> > implementation of X Windows and the
> > implementation of the JVM.
> >
> > When JDK 1.4 becomes stable, the promise of Headless
> > servers will be realized,
> > and Batik can be used without precaution.
> >
> > >
> > > Once installed, on the command-line run
> > >
> > > /usr/X11R6/bin/Xvfb :1 -screen 0 1152x900x8 &
> > >
> > > and then set the DISPLAY variable to :1.0
> > >
> > > This should take care of your problem and allow
> > you to keep batik's
> > > functionality.
> > >
> > > Regards,
> > > Jon
> > >
> > > - Original Message -
> > > From: "Carlos" <[EMAIL PROTECTED]>
> > > To: "cocoon users xml.apache.org"
> > <[EMAIL PROTECTED]>
> > > Sent: Wednesday, August 15, 2001 4:49 PM
> > > Subject: Getting read of the X server dependency
> > >
> > > > A while back some people gave solutions as to
> > how to remove the dependency
> > > > on a running X server. Some of them included
> > removing all the references
> > > to
> > > > Batik from the site map, others included
> > downloading a library that would
> > > > make X unnecessary, what's the name of the
> > library and where can I
> > > download
> > > > it from?
> > > >
> > > >
> > > > TIA
> > > > Carlos
> > > >
> > > > --
> > > > ---
> > > > P  |Carlos Araya
> > > > _  |WebCT Administrator/Trainer
> > > > G  |California Virtual Campus, Region 1
> > > >  C/O De Anza College
> > > > 10650 Bubb Road
> > > > Cupertino, CA 95014
> > > >
> > > > mail:   [EMAIL PROTECTED]
> > > > web:http://www.cvc1.

Re: Getting read of the X server dependency

2001-08-16 Thread Jon Peterson

Xvfb is what you need.  If you're running Linux, you may already have it
available (do which Xvfb or slocate Xvfb to check).  If not, go to
Xfree86.org and download either the Xvfb component of X (if you have XServer
installed) or grab the entire X Server and run Xinstall.sh.  If you're
running Solaris, go to
http://tmap.pmel.noaa.gov/home/ferret/FAQ/graphics/Solaris_Xvfb.html for the
binaries.

Once installed, on the command-line run

/usr/X11R6/bin/Xvfb :1 -screen 0 1152x900x8 &

and then set the DISPLAY variable to :1.0

This should take care of your problem and allow you to keep batik's
functionality.

Regards,
Jon

- Original Message -
From: "Carlos" <[EMAIL PROTECTED]>
To: "cocoon users xml.apache.org" <[EMAIL PROTECTED]>
Sent: Wednesday, August 15, 2001 4:49 PM
Subject: Getting read of the X server dependency


> A while back some people gave solutions as to how to remove the dependency
> on a running X server. Some of them included removing all the references
to
> Batik from the site map, others included downloading a library that would
> make X unnecessary, what's the name of the library and where can I
download
> it from?
>
>
> TIA
> Carlos
>
> --
> ---
> P  |Carlos Araya
> _  |WebCT Administrator/Trainer
> G  |California Virtual Campus, Region 1
>  C/O De Anza College
> 10650 Bubb Road
> Cupertino, CA 95014
>
> mail:   [EMAIL PROTECTED]
> web:http://www.cvc1.org (work)
> http://www.silverwolf-net.net (personal)
> PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756
>
> Don't let the fact that you can't do all you want to do Keep you from
> doing what you can do.
>
> And oftentimes, excusing of a fault doth make the fault the worse by the
> excuse; As patches set upon a little breach discredit more in
> hiding of the fault than did the fault before it was so patched.
> --Wm. Shakespeare
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Now you see ant, Now you don't

2001-07-30 Thread Jon Peterson

I'm having the same difficulty.  I've tried dos2unix, running the same
commands the script executes but from a clean shell, as well as modifying
build.sh to run "sh $PWD/bin/ant ..." all with the same result ...
$HOME/cocoon2/bin/ant - No such file or directory.  I've verified
permissions as correct and can run ant from outside the build.sh.  Is this
some obscure Bash bug (I'm using GNU bash, version 1.14.7(1)) or is there
something else I need to check?  I looked over the mail archives and FAQ's
for "Cocoon Downloads" but didn't find anything.  What am I missing?

I'm running RedHat 6.1, 2.2.16-3smp i686.

Thanks!
Jon

- Original Message -
From: "Mark Miller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 3:33 AM
Subject: Re: Now you see ant, Now you don't


> on 29/7/01 11:06 pm, Ryan Worley at [EMAIL PROTECTED] wrote:
>
> See the mail entitled "Cocoon Downloads"
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: Problems running Cocoon2

2001-07-27 Thread Jon Peterson

What servlet engine are you using?  You may want to run your engine's
"snoop" servlet to see the order of the classpath.  The Xerces jar contains
org.xml.sax classes which may also be included in other jars higher in the
classpath.  You'll need to be sure the Xerces version of org.xml.sax is
loaded first.

Regards,
Jon

- Original Message -
From: "Hewko, Doug" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 10:43 AM
Subject: RE: Problems running Cocoon2


> Thanks.
>
> I added "c:\xerces\xerces-1_4_2\xerces.jar" to the start of my CLASSPATH
> without any luck. There are two JAR files in that directory; xerces and
> xercesSamples. Did I enter the path incorrectly?
>
> -Original Message-
> From: Jon Peterson [mailto:[EMAIL PROTECTED]]
> Sent: July 27, 2001 10:36 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Problems running Cocoon2
>
>
> The Xerces library is not being loaded correctly.  Please refer to
> http://xml.apache.org/cocoon2/faq.html#faq-9 for further info.
>
> Jon
> - Original Message -
> From: "Hewko, Doug" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 27, 2001 10:14 AM
> Subject: Problems running Cocoon2
>
>
> > Help! I am trying to get Cocoon2 to work and am getting the following
> error:
> >
> > ** START OF ERROR MESSAGE
> > ***
> > type internal-servlet-error
> >
> > message Internal servlet error
> >
> > description Cocoon was not initialized.
> >
> > sender org.apache.cocoon.servlet.CocoonServlet
> >
> > source Cocoon servlet
> >
> > embedded exception stacktrace
> >
> > org.xml.sax.SAXException: Could not get valid parserNamespace not
> supported
> > by SAXParser
> > at
>
> 
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




Re: Problems running Cocoon2

2001-07-27 Thread Jon Peterson

The Xerces library is not being loaded correctly.  Please refer to
http://xml.apache.org/cocoon2/faq.html#faq-9 for further info.

Jon
- Original Message -
From: "Hewko, Doug" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 10:14 AM
Subject: Problems running Cocoon2


> Help! I am trying to get Cocoon2 to work and am getting the following
error:
>
> ** START OF ERROR MESSAGE
> ***
> type internal-servlet-error
>
> message Internal servlet error
>
> description Cocoon was not initialized.
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> embedded exception stacktrace
>
> org.xml.sax.SAXException: Could not get valid parserNamespace not
supported
> by SAXParser
> at
> org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:61)
> at org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
> at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
> at
>
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
> at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
> at
> org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
> at org.apache.tomcat.core.Handler.init(Handler.java:215)
> at
> org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
> at
>
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
> Interceptor.java, Compiled Code)
> at
> org.apache.tomcat.core.ContextManager.initContext(ContextManager.java,
> Compiled Code)
> at org.apache.tomcat.core.ContextManager.init(ContextManager.java,
> Compiled Code)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
>
>
> embedded exception
>
> org.xml.sax.SAXException: Could not get valid parserNamespace not
supported
> by SAXParser
>
> stacktrace
>
> org.apache.avalon.framework.configuration.ConfigurationException: Error
> trying to load configurations
> at org.apache.cocoon.Cocoon.configure(Cocoon.java:220)
> at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
> at
>
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
> at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
> at
> org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
> at org.apache.tomcat.core.Handler.init(Handler.java:215)
> at
> org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
> at
>
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
> Interceptor.java, Compiled Code)
> at
> org.apache.tomcat.core.ContextManager.initContext(ContextManager.java,
> Compiled Code)
> at org.apache.tomcat.core.ContextManager.init(ContextManager.java,
> Compiled Code)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
>
>
> exception
>
> org.apache.avalon.framework.configuration.ConfigurationException: Error
> trying to load configurations
>
>
>
> -Original Message-
> From: Dave Smith [mailto:[EMAIL PROTECTED]]
> Sent: July 27, 2001 9:43 AM
> To: [EMAIL PROTECTED]
> Subject: C2 using X11
>
>
> Well I got c2 ruuning with jetty (rm javax.xml.jaxp.jar and
> org.apache.crimson.jar from the lib directory and add xerces_1_4_1.jar)
> but now I am having another problem.
>
> I guess in the default config it uses svgxml,svg2jpeg .. etc and it must
> use the native java awt libraries that need to connect to an X11
> display. Is there any way to get around this? The machine running
> jetty/cocoon will not have one.
>
>
>
> java.lang.InternalError: Can't connect to X11 window server using ':0.0'
> as the value of the DISPLAY variable.
>  at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
>  at
> sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:58)
>  at java.lang.Class.forName0(Native Method)
>  at java.lang.Class.forName(Class.java:120)
>  at
>
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
> .java:58)
>  at sun.awt.motif.MToolkit.(MToolkit.java:57)
>  at java.lang.Class.forName0(Native Method)
>  at java.lang.Class.forName(Class.java:120)
>  at java.awt.Toolkit$2.run(Toolkit.java:498)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
>  at java.awt.SystemColor.updateSystemColors(SystemColor.java:342)
>  at java.awt.SystemColor.(SystemColor.java:335)
>  at
>
org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSy
> stemColorResolver.java:27)
>  at
> org.apache.batik.css.value.ColorFactory.(ColorFactory.java:75)
>  at
>
org.apache.batik.css.value.CommonValueFactoryMap.(CommonValueFactoryMa
> p.java:39)
>  at
>
org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:3

Re: Can not build Cocoon2

2001-07-26 Thread Jon Peterson

Yes, I ran into the same problem.  I simply changed the import statement and
all was fine.  For the Session error, you'll need to have the JavaMail 1.2
version.

Regards, Jon

- Original Message -
From: "Olga Agady" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 1:40 PM
Subject: Can not build Cocoon2


> Hi,
>
> I am going to replace Cocoon 1.8.2 with Cocoon2.
> However build.dat gives me the following error:
>
> [javac] H:\Cocoon2\WinCvs120\Source
> Code\xml-cocoon2\build\cocoon\src\org\apache\cocoon\acti
> ng\OraAddAction.java:24: Class
> oracle.jdbc.OracleResultSet not found in import.
> [javac] import oracle.jdbc.OracleResultSet;
> [javac]^
> [javac] H:\Cocoon2\WinCvs120\Source
> Code\xml-cocoon2\build\cocoon\src\org\apache\cocoon\acti
> ng\SendmailAction.java:83: Wrong number of arguments
> in method.
> [javac]   Session session =
> Session.getDefaultInstance(properties);
>
> I have Oracle 8i installed on my machine, however the
> OracleresultSet it is using is:
> oracle.jdbc.driver.OracleResultSet, not
> oracle.jdbc.OracleResultSet.
>
> Itried to find oracle.jdbc.OracleResultSet on
> Internet, it doesn't give me any result.
>
> Did someone have the same problem?
>
> Regards
> Olga
>
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

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