Re: developing/installing custom actions without restarting app server?

2002-11-14 Thread Charles Brewster
Josema Alonso wrote:


Hi, all.

I'm writing some actions for XMLForms. Everytime I modify the file to make
some tests, I have to stop Tomcat, copy the action to the correct
subdirectory under WEB-INF/classes and start it again. If not, Tomcat uses
the old action.

I'm wondering, is being cached somewhere? Is there a way to install the
action and make it work without restarting the server?


If you are using tomcat 4.1.12 there is a nice GUI ../manager/html/list 
which allows you to start/stop the applications without taking down the 
main tomcat server.

The compiled files (cache) are in directories that look something like 
/work/Standard Engine/localhost/ appname.
I have stopped an app cleared the "work' directories and restarted the app.

The package with manager is "tomcat4-admin-webapps-4.1.12"

(I may not be exact because I switched to another release)


-
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: html to pdf problem

2002-11-13 Thread Charles Brewster




saikat wrote:

  
  
  
  Hi,
  I'm facing problems with converting
a html file to pdf format.I'm using cocoon2.0 ,tomcat4.0.3 &
j2sdk1.4.0
   
  while running the file it is giving
following error -->
   
  
  org.apache.cocoon.ProcessingException: Could not read resource file:/C:/jakarta-tomcat-4.0.3/webapps/cocoon/mount/html-pdf/pageTwo.xml: java.lang.RuntimeException: org.apache.fop.apps.FOPException: 'master-name' (page) must be unique across page-masters and page-sequence-masters
  so please tell me wat to do
  with regards
  saikat
  

Did you create the all files as given in;

http://localhost:8080/cocoon/documents/howto/howto-html-pdf-publishing.html


What is in your pageTwo.xml file ?




Re: bad class file exception

2002-11-13 Thread Charles Brewster




McNeil, Shane wrote:

  
  
  bad class file exception
  Hi, 
  I am attempting to call a custom Java API from an
XSP document as follows (simplified)... 
       
      http://apache.org/xsp"> 
       
     
SIM.Zapi.* 
       
       
      public String getSimDoc() 
      { 
      ZAssociation za  = new
ZAssociation("localhost:7810"); 
      return "OK"; 
      } 
       
       
     
getSimDoc() 
       
       
  
  Can anyone tell me why I am getting the following
error... 
      Language Exception 
      Line 66, column 4: cannot access class
ZAssociation; bad class file (java.lang.RuntimeException: class file:
SIM.Zapi.ZAssociation contains wrong class: SIM.ZApi.ZAssociation)

The upper case "A"  in the ZApi does not agree with thw lower case in
Zapi earlier.
It appears to find the jar file or class file it is just a disagreement
between the class name inside the code and the file name.


      Line 66, column 27: constructor
ZAssociation(java.lang.String) not found in class SIM.Zapi.ZAssociation 
      Line 0, column 0: 
      2 errors 
  
  I can call the API from a standard Java application
successfully. 
  Regards, 
  Shane McNeil 
  Analyst Programmer 
  Corporate Document Technologies 
  STANDARDS AUSTRALIA 
  

-
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: null pointer exception in servlet

2002-11-12 Thread Charles Brewster
Jenny Brown wrote:


On Tue, 12 Nov 2002, Charles Brewster wrote:

I was pretty sure the XML was fine since it came from example code, but
that doesn't help me much in solving my actual problem.  I'm looking for
why Cocoon is throwing a null pointer exception, as in, what do I even
try to debug or look into to figure this out?

I am running 1.4.0 jdk on a mandrake linux box:

java version "1.4.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)

 

A trivial point, not to be insulting, :-)  but did you install the vm14 
download version of cocoon built for 1.4.0



-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.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/faq/index.html>

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




Re: null pointer exception in servlet

2002-11-12 Thread Charles Brewster
Jenny Brown wrote:


I'm having trouble with a recently set up cocoon instance, processing an
example xml and xslt file.  This seems to be happening inside Cocoon, so
I am not sure how to fix it.


org.apache.cocoon.ProcessingException:
Exception during processing of
http://jenny.myinfogenic.net/sitebuilder/simple.xsl:
 

Jenny I downloaded your two files simple.x?l to my own coccon 
installation and they run fine.

I am running tomcat 4 and see you are on 3.3 .. Don't know what jdk you 
are using but it seems to be an installation prob as your xml is fine


-
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: Installing: javax.servlet.ServletException: Servlet.init()

2002-11-12 Thread Charles Brewster




Murray Cumming wrote:

  On Tue, 2002-11-12 at 05:17, Geoff Howard wrote:
  
  
Yes, that was the specific error that people were
getting when the older jars distributed with the jdk
were not properly overridden.

http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=103692889710176&w=2

  
  
So do you see anything wrong in those installation notes?
http://www.murrayc.com/temp/cocoon_install_notes.txt
Clearly copying the jars has had some effect.

  

Murray For what its worth I finally pitched the rpms in favor of the
Sun JWSDP package. I could not get soap running for the same  dreaded
error., and spent a week chasing xerces, endorsed libs, etc etc. Within
five minutes of downloading jwsdp_1_0_01 I had a tomcat system running
with soap then cocoon.  I had installed both on NT side with tomcat 4
no problem. So There is something IMHO in the rpms . Although all my
other apps worked fine.