Weblogic 6.1 sp1 and cocoon2

2001-10-22 Thread Le, Vincent
Title: Weblogic 6.1 sp1 and cocoon2





Hi,


I'm quite new with cocoon xml framework.  I was setup and running cocoon 1.8.2 successfully with weblogic server.  I want to move to cocoon 2.0, but get the following error messages.  After doing the build and copy cocoon.war file into applications directory, weblogic can't deploy cocoon with below error.  If you are familiar with the problem, please help.  Thank you very much in advance.

Vincent


java.lang.IllegalArgumentException: Prefix string too short
    at java.io.File.createTempFile(File.java:1237)
    at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:95)
    at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3356)
    at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3327)
    at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:854)
    at weblogic.servlet.internal.WebAppServletContext.(WebAppServletContext.java:807)
    at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
    at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
    at weblogic.j2ee.Application.addComponent(Application.java:160)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
    at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
    at $Proxy30.addWebDeployment(Unknown Source)
    at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1094)

    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:279)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:233)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:193)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
    at $Proxy29.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2734)

    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:362)
    at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:154)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
    at $Proxy38.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:480)

    at weblogic.management.Admin.startApplicationManager(Admin.java:1151)
    at weblogic.management.Admin.finish(Admin.java:570)
    at weblogi

Re: Catching XMLSerializer O/P

2001-10-22 Thread Shailendra Vasale


hi Sébastien,


   Thanks for your reply.

   What I'm trying to do is - I want to save the result 
which is getting displayed on the browser in a file.
   So I'm catching the events in XMLSerializer,when I catch the characters event I get 
the whole document content inside each element.What I understand is - the 
TraxTansformer inputs a ResultSet tree of XML doc to XMLSerializer.

   Here is the sample code of XML,XSL and output file --

XML.xml 
-


Hello

This is my first Cocoon2 b02 page! 



-

XSL.xsl
-

http://www.w3.org/1999/XSL/Transform";>






  
   

   
  

  
   
 

   


-

The saved file should be -

xmlFile.xml
-


Hello
This is my first Cocoon2 b02 page! 



-

The XMLSerializer for this is -

-
import org.apache.avalon.excalibur.pool.*;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.sax.*;
import javax.xml.transform.stream.StreamResult;
import java.io.*;
import org.apache.cocoon.serialization.*;
import org.xml.sax.*;
import org.apache.cocoon.components.store.FilesystemStore;
import java.util.Vector;
import java.util.StringTokenizer;
import org.apache.avalon.framework.logger.Loggable;
import javax.xml.transform.sax.SAXResult;
import org.apache.cocoon.xml.XMLConsumer;
import com.sun.xml.tree.*;

public class XMLSerializer1 extends AbstractTextSerializer implements 
Serializable,Poolable,XMLConsumer{

private TransformerHandler handler;
private FileWriter xmlFile;

public XMLSerializer1() {
}

  public void setOutputStream(OutputStream out) {
 try {
XmlDocument xmlDoc = new XmlDocument();
super.setOutputStream(out);
this.handler = getTransformerFactory
().newTransformerHandler();
format.put(OutputKeys.METHOD,"xml");
handler.setResult(new StreamResult(out));
handler.getTransformer().setOutputProperties
(format);
super.setContentHandler(handler);
super.setLexicalHandler(handler);
this.setContentHandler(handler);
this.setLexicalHandler(handler);
} catch (Exception e)
{
System.out.println("Error in XMLSerializer1 : "+e);
   throw new RuntimeException(e.toString());
}
}
 
  public void characters(char[] ch, int start, int length) throws SAXException {
this.contentHandler.characters(ch, start, length);
 Writing element value in final xmlFile
try{
String value = new String(ch);
char buffer[] = new char[value.length()];
value.getChars(0,value.length(),buffer,0);
xmlFile.write(buffer);
}catch(Exception e)
{
System.out.println("Error : "+e);
}
  }

 public void endDocument() throws SAXException {
   this.contentHandler.endDocument();
try
{
xmlFile.close();
}catch(Exception e)
{
System.out.println("Error : "+e);
}

  }

   public void endElement(String namespaceURI, String localName, String rawName)
throws SAXException
  {
  /** Writing endElement in final xmlFile**/
  try{
String endTag = "";
char buffer[] = new char[endTag.length()];
endTag.getChars(0,endTag.length(),buffer,0);
xmlFile.write(buffer);
}catch(Exception e)
{
System.out.println("Error : "+e);
}
this.contentHandler.endElement(namespaceURI, localName, rawName);
  }

   public void startDocument() throws SAXException {
this.contentHandler.startDocument();
try
{
xmlFile = new FileWriter("xmlFile.xml",true);
String pi = "";
char buffer[] = new char[pi.length()];
pi.getChars(0,pi.length(),buffer,0);
xmlFile.write(buffer);
}catch(Exception e)
{
System.out.println("Error : "+e);
}
  }

/**
  Receive notification of ignorable whitespace in element content.
*/ 
  public void ignorableWhitespace(char[] ch, int start, int length)
throws SAXException

AW: Generate static HTML with Cocoon

2001-10-22 Thread Jörn Heid

The problem of those web spiders is using of dynamic links (e.g. via
JavaScript or Flash).

I'm currently developing a little tool on top of Cocoon which generates
static content via a mapping xml file. There you can define all of your urls
and their dependencies to xml and xsl files. So if you change an xsl file
the tool downloads only that urls which could have changed. Aftre that it
can upload the newest files.

I want to support ftp and WebDAV. But the project just startet yesterday ;)

JOERN_HEID

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von
Bertrand Delacretaz
Gesendet: Dienstag, 23. Oktober 2001 08:25
An: [EMAIL PROTECTED]
Betreff: Re: Generate static HTML with Cocoon


On Tuesday 23 October 2001 08:12, Holger Danske wrote:
> We want to use Cocoon to generate static HTML.

wget (www.gnu.org/software/wget), a command-line utility, is very good at
creating static versions of dynamic web sites.

--
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- web technologies consultant - OO, Java, XML, C++






-
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: Generate static HTML with Cocoon

2001-10-22 Thread Bertrand Delacretaz

On Tuesday 23 October 2001 08:12, Holger Danske wrote:
> We want to use Cocoon to generate static HTML.

wget (www.gnu.org/software/wget), a command-line utility, is very good at 
creating static versions of dynamic web sites. 

-- 
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- web technologies consultant - OO, Java, XML, C++






-
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]>




AW: Generate static HTML with Cocoon

2001-10-22 Thread Jörn Heid

In one of my projects I used a web spider (OfflineExplorer) to get a static
copy of my webserver.

Second possibility: Write your own transformer (or serializer) which saves
the output to a file.

There might be more. Hope this helps.

JOERN_HEID

-Ursprüngliche Nachricht-
Von: Holger Danske [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 23. Oktober 2001 08:13
An: [EMAIL PROTECTED]
Betreff: Generate static HTML with Cocoon


Hello Cocoon-User.

We want to use Cocoon to generate static HTML.

Bachground:
Our customer don't want to work with Cocoon, but we
want. So we want to use Cocoon for our work and
generate the HTML for the customer.

Is there an possibiltity to do that with Cocoon.

TIA

JD

__

Es ist soweit: das Nokia Game beginnt. Sei bereit für das multimediale
Abenteuer. Melde dich bis zum 3. November bei
http://de.promotions.yahoo.com/info/nokiagame an!

-
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]>




Generate static HTML with Cocoon

2001-10-22 Thread Holger Danske

Hello Cocoon-User.

We want to use Cocoon to generate static HTML.

Bachground:
Our customer don't want to work with Cocoon, but we
want. So we want to use Cocoon for our work and
generate the HTML for the customer.

Is there an possibiltity to do that with Cocoon.

TIA

JD

__

Es ist soweit: das Nokia Game beginnt. Sei bereit für das multimediale Abenteuer. 
Melde dich bis zum 3. November bei http://de.promotions.yahoo.com/info/nokiagame an!

-
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]>




cocoon2 - problem with REDIRECT

2001-10-22 Thread sergi

i would like to redirect to other url, in case if someone requests uri with
wrong parameters... this will be the way of validation of request
parameters... which is the best way to do?
in sitemap or in my .xsp... and, ofcourse, how?
please help...


-
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]>




cocoon2 jakarta-4.0.1 on redhat7.1 sitemap error

2001-10-22 Thread Truong,Hoang C.

Hi,
I am a newbie to this cocoon.  I have problem access cocoon page on my
redhat 7.1 linux box.  I did the same thing for window 2000, and it
worked.  Here are my linux box conf info:
- redhat 7.1
- jakarta-tomcat-4.0.1
- cocoon-2.0b1
- jdk1.3.1 from SUN

Can anyone help me to fix this problem?  Thanks

Hoang Truong

this is the error:

Cocoon 2 - Internal server error



type internal-server-error

message The sitemap handler's sitemap is not available.

description org.apache.cocoon.ProcessingException: The sitemap handler's
sitemap is not available.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

exception

org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is
not available.

path-info



stacktrace

org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is
not available.
at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
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.java:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
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:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
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:566)
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:1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:484)

-
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: Fastest Platform (softwarewise)?

2001-10-22 Thread Phil Blake

Hi,

We run apache/tomcat/cocoon on 3 server platforms, Linux, AIX and MacOS 
X.

Linux on a dual PIII 550, OSX on a PPC-G4 450 and AIX on a 4x250MHz 
PPC-G3.

Bang for buck, a G4 running OSX wins hands down. However, believe it or 
not, the dual PIII comes in second (AIX don't come close... too 
expensive for real consideration and Windows is not a server operating 
system in practice, only in marketing).

The Dual PIII was about 10% more than the G4 (after adding SCSI) and 
about 70-80% the performance.

Although theory has it that a G4 500MHz has about the same performance 
as a PIII 1.5GHz (ie triple the performance), I've found that it's 
really more like double the performance, not triple.

Phil


-
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: [C2] Howto ... IF in sitemap ...

2001-10-22 Thread SANSONE, AARON M [Non-Pharmacia/1000]

Eduardo,

Actions work within a block structure.  If the action itself returns NULL,
then the action fails and the tags within the action block are not
processed.  You can use this to create a type of IF logic such that IF the
action fails (returns NULL) then the code within the block structure
execute.  Here is your modified example (note that the  is
moved to within the action block):


  


  
  


  


  
  
  



HTH,
Aaron


-Original Message-
From: Eduardo Godoy Vega [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 11:20 AM
To: Cocoon-Users
Subject: [C2] Howto ... IF in sitemap ...


Hi,
I want to use some kind of "IF-ELSE" into sitemap...

right now, I have this code ...















"unveil_result" is a number returned by my action, and I want to choose a
different XSP page if unveil_result is zero or if unveil_result equal one or
if unveil_result is bigger than one ...
I don't want to use java inside XSP pages ... so ... Is it possible to do in
sitemap ??


Thanks
Eduardo.


-
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: [C2] Howto ... IF in sitemap ...

2001-10-22 Thread Eduardo Godoy Vega

What I'm doing wrong ?
here is my sitemap


http://apache.org/cocoon/sitemap/1.0";>




























  










  












And I get this error msg:

ERROR   (2001-10-22) 16:58.21:585   [cocoon  ]
(/cocoon/unveil/process-unveil) Thread-13/sitemap_xmap: Sitemap
org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
ComponentSelector could not find the component for hint: parameter
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Unkn
own Source)
at
org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSe
lector.java:51)
at
org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSe
lector.java:54)
at
org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSe
lector.java:54)
at
org.apache.cocoon.www.unveil.sitemap_xmap.isSelected(sitemap_xmap.java:159)
at
org.apache.cocoon.www.unveil.sitemap_xmap.wildcardMatchN400044(sitemap_xmap.
java:551)
at org.apache.cocoon.www.unveil.sitemap_xmap.process(sitemap_xmap.java:358)
at org.apache.cocoon.www.unveil.sitemap_xmap.process(sitemap_xmap.java:310)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:116)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400233(sitemap_xmap.java:29
82)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2310)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2212)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:116)
at org.apache.cocoon.Cocoon.process(Cocoon.java:495)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:534)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)



Eduardo.


-
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]>




Help! Cocoon 2: Problem with connection to remote Oracle DB

2001-10-22 Thread Skladov, Victor

Hello friends!

I use Tomcat 4.0.1, Cocoon 2 on Linux (SuSe 7) and try to get a
connection to Oracle 8.1.6 DB, which is located on another server. SuSe
server has no Oracle-Client installed.
I've made the folllowing entries in configuration files:
In cocoon.xconf:



  
  oracle:jdbc:thin:@server.his.de:1521:mydb
  admin
  pass

  

in web.xml:

  
  load-class
  
  

oracle.jdbc.driver.OracleDriver

  


I have renamed the Oracle-Driver zip file classes12.jar and put it in
WEB-INF/lib folder.

And I get the following message in cocoon.log file:

java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:537)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance
(Unknown Source)
at
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown
Source)
at
org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(Un
known Source)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(Un
known Source)
at
org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown
Source)
at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown
Source)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

I tried the connection also with Java-Application on the same server and
it runs!
I don't know what else I must do. Has anyone already experienced this or
has any idea or suggestions?
I would be very grateful for your help!

Regards,
Viktor Skladovs
mailto:[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: AW: Help! Cocoon 2: Problem with connection to remote Oracle DB

2001-10-22 Thread Berin Loritsch

"Skladov, Victor" wrote:
> 
> Thanks Berin!
> 
> But why does it run with Java-Application?
> If there had been something wrong with the username,password, port etc,
> it would not have run with Java too or am I wrong? Do I have to install
> the Oracle-Client on the Server?

The Java Application is a test to make sure your connection properties are
correct.  Depending on the driver type (like the non-thin driver), you may
have to make more entries to map database names with the server.  For instance,
in my installation, even though the default name for the Oracle database is
ORADB, on the server it's name was BORG.  That required a change in the
connection string.

> 
> Regards,
> Viktor
> 
> -Ursprungliche Nachricht-
> Von: Berin Loritsch [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 22. Oktober 2001 18:23
> An: [EMAIL PROTECTED]
> Betreff: Re: Help! Cocoon 2: Problem with connection to remote Oracle DB
> 
> "Skladov, Victor" wrote:
> >
> > I tried the connection also with Java-Application on the same server
> and
> > it runs!
> > I don't know what else I must do. Has anyone already experienced this
> or
> > has any idea or suggestions?
> > I would be very grateful for your help!
> 
> When I originally wrote the connection pooling code, I tested against a
> remote JDBC connection.  There is probably something wrong in the setup.
> Please verify all your settings, and test a simple connection to the
> server until you find what is wrong.  Everything looks ok in your config
> files, and the fact that it runs when the server is on the same machine
> points to a larger error.
> 
> Ensure that the username/password exists on the remote server, that the
> DSN entry for the machine is correct (i.e. host.company.com), that the
> connection port is correct, etc.
> 
> -
> 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]>

-
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: Using Custom Component in Cocoon2

2001-10-22 Thread Berin Loritsch

Alexander Smirnoff wrote:
> 
> O-o, I've missed the wall... Sorry for stupid question...
> 
> But I have possible candidate for another one:
> 
> In my application I have  heavily relly on database connection pool. I've
> look into xsp esql file and see that the way you get Database Connection is
> via DataSourceComponent select method. So I don't have to use
> JdbcConnectionPool directly? How all working behind JdbcDataSource? Are any
> monitoring options exist?


Correct.  The Cocoon.xconf file has an entry to describe multiple datasources,
and get the pool of connections by name.  Once your Component is Composed
(i.e. implements Composable and receives the ComponentManager), you can lookup
the following role:

ComponentSelector selector =
(ComponentSelector) manager.lookup(DataSourceComponent.ROLE + "Selector");

DataSourceComponent datasource = (DataSourceComponent) selector.select("poolname");
Connection conn = datasource.getConnection();

// ... do your stuff

conn.close();



As to monitoring options, there is a keepalive query that happens behind the scenes.
It performs a quick query to see if the connection is still open.  Beyond that, there
isn't anything else at this point.

-
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: Help! Cocoon 2: Problem with connection to remote Oracle DB

2001-10-22 Thread Russell Castagnaro

Hello Victor,

The url you are using is wrong!

try:

jdbc:oracle:thin:@server.his.de:1521:mydb


;)

Monday, October 22, 2001, 6:00:38 AM, you wrote:

SV> Hello friends!

SV> I use Tomcat 4.0.1, Cocoon 2 on Linux (SuSe 7) and try to get a
SV> connection to Oracle 8.1.6 DB, which is located on another server. SuSe
SV> server has no Oracle-Client installed.
SV> I've made the folllowing entries in configuration files:
SV> In cocoon.xconf:

SV> 
SV> 
SV>   
SV>   oracle:jdbc:thin:@server.his.de:1521:mydb
SV>   admin
SV>   pass
SV> 
SV>   

SV> in web.xml:

SV>   
SV>   load-class
SV>   
  
SV> 
SV> oracle.jdbc.driver.OracleDriver

SV>   
SV> 

SV> I have renamed the Oracle-Driver zip file classes12.jar and put it in
SV> WEB-INF/lib folder.

SV> And I get the following message in cocoon.log file:

SV> org.apache.avalon.excalibur.datasource.JdbcConnection: could not be
SV> instantiated.
SV> java.sql.SQLException: No suitable driver
SV> at java.sql.DriverManager.getConnection(DriverManager.java:537)
SV> at java.sql.DriverManager.getConnection(DriverManager.java:177)
SV> at
SV> org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance
SV> (Unknown Source)
SV> at
SV> org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown
SV> Source)
SV> at
SV> org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(Un
SV> known Source)
SV> at
SV> org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(Un
SV> known Source)
SV> at
SV> org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown
SV> Source)
SV> at
SV> org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown
SV> Source)
SV> at
SV> org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(Unknown
SV> Source)
SV> at java.lang.Thread.run(Thread.java:484)

SV> I tried the connection also with Java-Application on the same server and
SV> it runs!
SV> I don't know what else I must do. Has anyone already experienced this or
SV> has any idea or suggestions?
SV> I would be very grateful for your help!

SV> Regards,
SV> Viktor Skladovs
SV> mailto:[EMAIL PROTECTED]




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

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



-- 
Best regards,
 Russellmailto:[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: [C2] Howto ... IF in sitemap ...

2001-10-22 Thread Sylvain Wallez



Eduardo Godoy Vega a écrit :
> 
> Hi,
> I want to use some kind of "IF-ELSE" into sitemap...
> 
> right now, I have this code ...
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> "unveil_result" is a number returned by my action, and I want to choose a
> different XSP page if unveil_result is zero or if unveil_result equal one or
> if unveil_result is bigger than one ...
> I don't want to use java inside XSP pages ... so ... Is it possible to do in
> sitemap ??
> 
> Thanks
> Eduardo.
> 
You can use the "parameter" builtin selector, allowing the following
construct in your sitemap (Count should be a String) :


 
  
   
   
 
   
   
 
   
   

   
  
  http://www.anyware-tech.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]>




AW: Help! Cocoon 2: Problem with connection to remote Oracle DB

2001-10-22 Thread Skladov, Victor

Thanks Berin!

But why does it run with Java-Application?
If there had been something wrong with the username,password, port etc,
it would not have run with Java too or am I wrong? Do I have to install
the Oracle-Client on the Server?

Regards,
Viktor

-Ursprungliche Nachricht-
Von: Berin Loritsch [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 22. Oktober 2001 18:23
An: [EMAIL PROTECTED]
Betreff: Re: Help! Cocoon 2: Problem with connection to remote Oracle DB


"Skladov, Victor" wrote:
> 
> I tried the connection also with Java-Application on the same server
and
> it runs!
> I don't know what else I must do. Has anyone already experienced this
or
> has any idea or suggestions?
> I would be very grateful for your help!

When I originally wrote the connection pooling code, I tested against a
remote JDBC connection.  There is probably something wrong in the setup.
Please verify all your settings, and test a simple connection to the
server until you find what is wrong.  Everything looks ok in your config
files, and the fact that it runs when the server is on the same machine
points to a larger error.

Ensure that the username/password exists on the remote server, that the
DSN entry for the machine is correct (i.e. host.company.com), that the
connection port is correct, etc.

-
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: Help! Cocoon 2: Problem with connection to remote Oracle DB

2001-10-22 Thread Luca Morandini

Viktor,

it may be silly, but... Since, your DBURL is:

oracle:jdbc:thin:@server.his.de:1521:mydb

I wonder whther mydb is the correct name of the Oracle instance you want to
use.

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Skladov, Victor [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 22, 2001 6:38 PM
> To: [EMAIL PROTECTED]
> Subject: AW: Help! Cocoon 2: Problem with connection to remote Oracle DB
>
>
> Hello Gary!
>
> The problem seems to be not with loading of the driver itself - it has
> been loaded. The problem. I think, is with DB URL - Cocoon seems not to
> like my URL - or with something else. Any idea?
>
> Thanks,
> Viktor
>
> -Ursprüngliche Nachricht-
> Von: Gapinski, Gary (GEL, MSX) [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 22. Oktober 2001 18:14
> An: '[EMAIL PROTECTED]'
> Betreff: RE: Help! Cocoon 2: Problem with connection to remote Oracle DB
>
>
> While I have not tried locating the renamed classes12 file in
> WEB-INF/lib
> directory, I have used it successfully when it is placed in the
> CATALINA_HOME/common/lib directory.
>
> -
> 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]>
>


-
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: Help! Cocoon 2: Problem with connection to remote Oracle DB

2001-10-22 Thread Gapinski, Gary (GEL, MSX)

The errors you mention in your original message seem to indicate that the
Oracle JDBC driver is not being found. I have only had success (in the
Tomcat environment) when I renamed classes12.zip to classes12.jar and placed
the renamed file in the CATALINE_HOME/common/lib directory (as I have other
non-Cocoon web apps that also use Oracle JDBC). While I have not tried in a
while, I recall having problems when the classes12.jar file was located
subordinate to a WEB-INF directory.

The Cocoon log files (under WEB-INF/logs) should have some error messages
regarding the failed creation of the database connection pool.

-
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]>




Pb installing cocoon2 : javax TransformerException

2001-10-22 Thread LEUZINGER Claude (DSIT-EX)

 Hello, 
 I try to install the version 2.0rc1a of cocoon 2  with tomcat 3.2.2. and
windows
 NT4.0. 
 I have a javax.xml.transform.Transformer exception when i access the URI
'http://localhost:8080/cocoon/'.  (it works well with the previous version
of cocoon 2.0b1)

 
Thanks in advance,

 Claude.



javax.xml.transform.TransformerException
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1269)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3070)
at java.lang.Thread.run(Thread.java:484)
-
java.lang.NullPointerException
at
org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:253)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2251)
at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:166)
at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja
va:499)
at
org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:228)
at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja
va:499)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:193)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2251)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
637)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2251)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2134)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1246)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3070)
at java.lang.Thread.run(Thread.java:484)
request-uri
/cocoon/
exception
org.apache.cocoon.ProcessingException: Exception in Handler:
javax.xml.transform.TransformerException
path-info
stacktrace
org.apache.cocoon.ProcessingException: Exception in Handler:
javax.xml.transform.TransformerException
at
org.apache.cocoon.sitemap.Handler.throwEventualException(Handler.java:244)
at org.apache.cocoon.sitemap.Handler.regenerate(Handler.java:155)
at org.apache.cocoon.sitemap.Manager.getHandler(Manager.java:232)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:109)
at org.apache.cocoon.Cocoon.process(Cocoon.java:495)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:534)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
javax.xml.transform.TransformerException
at
org.apache.xalan.transformer.TransformerImpl.waitTransformThread(Transformer
Impl.java:2954)
at
org.apache.xalan.stree.SourceTreeHandler.endDocument(SourceTreeHandler.java:
469)
at
org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518)
at
org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518)
at
org.apache.xerces.parsers.SAXParser.endDocument(SAXParser.java:1230)
at
org.apache.xerces.validators.common.XMLValidator.callEndDocument(XMLValidato
r.java:1079)
at
org.apache.xerces.framework.XMLDocumentScanner$EndOfInputDispatcher.dispatch
(XMLDocumentScanner.java:1555)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generat
eCode(LogicsheetCodeGenerator.java:130)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generate
Code(AbstractMarkupLanguage.java:291)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:313)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:275)
at
org.apache.cocoon.components.language.generator.Prog

AW: Help! Cocoon 2: Problem with connection to remote Oracle DB

2001-10-22 Thread Skladov, Victor

Hello Gary!

The problem seems to be not with loading of the driver itself - it has
been loaded. The problem. I think, is with DB URL - Cocoon seems not to
like my URL - or with something else. Any idea?

Thanks,
Viktor

-Ursprüngliche Nachricht-
Von: Gapinski, Gary (GEL, MSX) [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 22. Oktober 2001 18:14
An: '[EMAIL PROTECTED]'
Betreff: RE: Help! Cocoon 2: Problem with connection to remote Oracle DB


While I have not tried locating the renamed classes12 file in
WEB-INF/lib
directory, I have used it successfully when it is placed in the
CATALINA_HOME/common/lib directory.

-
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: Using Custom Component in Cocoon2

2001-10-22 Thread Alexander Smirnoff

O-o, I've missed the wall... Sorry for stupid question...

But I have possible candidate for another one:

In my application I have  heavily relly on database connection pool. I've
look into xsp esql file and see that the way you get Database Connection is
via DataSourceComponent select method. So I don't have to use
JdbcConnectionPool directly? How all working behind JdbcDataSource? Are any
monitoring options exist?

Thanks,
Alex.

- Original Message -
From: "Berin Loritsch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 22, 2001 9:15 AM
Subject: Re: Using Custom Component in Cocoon2


> Alexander Smirnoff wrote:
> >
> > Hi,
> >
> > I have made custom Component and trying to access it from XSP file. It
seems
> > that it passes OK all main steps of
> > composition/configuration/initialization, but somehow at the end I
getting
> > the next exception:
>
>
> The most basic reason of all.  Your component must implement Component.
Otherwise
> it cannot possibly return it to you.  The return type for the lookup()
command
> is a Component.  Component is a marker interface (no methods):
>
> org.apache.avalon.framework.component.Component
>
> >
> > org.apache.avalon.framework.component.ComponentException: Could not
access
> > the Component
> > at
> >
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Unkno
> > wn Source) <-- Why ? It seems that it found it ?
> > at
> > org.apache.cocoon.www.xsp.messages_xsp.generate(messages_xsp.java:278)
> > at
> >
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
> > tor.java:175)
> > at
> >
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
> > entPipeline.java:214)
> > ...
> >
> > thats the way how I look for it in XSP file:
> >
> > com.gwvas.manager.Manager myComponent = (com.gwvas.manager.Manager)
> > manager.lookup("com.gwvas.manager.Manager");
> >
> > thats the way how I defined it in cocoon.xconf
> >
> >  > class="com.gwvas.manager.DBCoreManager">
> > documents
> > 
> >
> > Component itself is attached to this email... Any ideas?
> >
> > Thanks,
> > alex
> >
>
  --
--
> >  Name: DBCoreManager.java
> >DBCoreManager.javaType: Java Class (java/*)
> >  Encoding: quoted-printable
> >
>
  --
--
> > -
> > 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]>
>


-
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: Help! Cocoon 2: Problem with connection to remote Oracle DB

2001-10-22 Thread Berin Loritsch

"Skladov, Victor" wrote:
> 
> I tried the connection also with Java-Application on the same server and
> it runs!
> I don't know what else I must do. Has anyone already experienced this or
> has any idea or suggestions?
> I would be very grateful for your help!

When I originally wrote the connection pooling code, I tested against a
remote JDBC connection.  There is probably something wrong in the setup.
Please verify all your settings, and test a simple connection to the
server until you find what is wrong.  Everything looks ok in your config
files, and the fact that it runs when the server is on the same machine
points to a larger error.

Ensure that the username/password exists on the remote server, that the
DSN entry for the machine is correct (i.e. host.company.com), that the
connection port is correct, etc.

-
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]>




[C2] Howto ... IF in sitemap ...

2001-10-22 Thread Eduardo Godoy Vega

Hi,
I want to use some kind of "IF-ELSE" into sitemap...

right now, I have this code ...















"unveil_result" is a number returned by my action, and I want to choose a
different XSP page if unveil_result is zero or if unveil_result equal one or
if unveil_result is bigger than one ...
I don't want to use java inside XSP pages ... so ... Is it possible to do in
sitemap ??


Thanks
Eduardo.


-
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: Help! Cocoon 2: Problem with connection to remote Oracle DB

2001-10-22 Thread Gapinski, Gary (GEL, MSX)

While I have not tried locating the renamed classes12 file in WEB-INF/lib
directory, I have used it successfully when it is placed in the
CATALINA_HOME/common/lib directory.

-
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]>




Help! Cocoon 2: Problem with connection to remote Oracle DB

2001-10-22 Thread Skladov, Victor

Hello friends!

I use Tomcat 4.0.1, Cocoon 2 on Linux (SuSe 7) and try to get a
connection to Oracle 8.1.6 DB, which is located on another server. SuSe
server has no Oracle-Client installed.
I've made the folllowing entries in configuration files:
In cocoon.xconf:



  
  oracle:jdbc:thin:@server.his.de:1521:mydb
  admin
  pass

  

in web.xml:

  
  load-class
  
  

oracle.jdbc.driver.OracleDriver

  


I have renamed the Oracle-Driver zip file classes12.jar and put it in
WEB-INF/lib folder.

And I get the following message in cocoon.log file:

org.apache.avalon.excalibur.datasource.JdbcConnection: could not be
instantiated.
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:537)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance
(Unknown Source)
at
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown
Source)
at
org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(Un
known Source)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(Un
known Source)
at
org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown
Source)
at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown
Source)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

I tried the connection also with Java-Application on the same server and
it runs!
I don't know what else I must do. Has anyone already experienced this or
has any idea or suggestions?
I would be very grateful for your help!

Regards,
Viktor Skladovs
mailto:[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]>




C2: FO example with XML file

2001-10-22 Thread Mark S. Kent

I'm migrating from my C1 tests to C2 and attempting to get my previously
working FO (PDF) examples to work.  I had a namespace defined in my C1 file
that the C2 serializer doesn't like:

code:
http://www.w3.org/1999/XSL/Transform";>

error:
FOTreeBuilder: Unknown formatting object
http://www.w3.org/1999/XSL/Transform^stylesheet

So, I've commented that out.  Problem is, I need to reference my XML data
being created from a database.  The FO example shipped with C2 examples only
used static data to create the example.

Am I missing something very obvious here?

Thanks!
Mark


-
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: where is context.setAttribute?

2001-10-22 Thread Sylvain Wallez



Paolo a écrit :
> 
> How can we set context attributes with cocoon2? Why did the authors
> implement getAttribute function but not the setAttribute?
> 
> ByeBye,
> Paolo Scaffardi
> AIRVENT SAM S.p.A.
> 
This feature has recently been added and will be part of the next
release. If you need it now, you can get the latest sources using CVS.

-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.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]>




RE: Re[2]: [C2] Accessing CLOBs as Documents

2001-10-22 Thread Marty McClelland

> Hmm.. So ar you saying that if my clobs didn't have the " version="1.0" encoding="UTF-8"?>"  then get-xml would work?
Removing the top PI worked for me - and it makes sense after thinking
about it since it is only valid when it is the first line in the
document.  When the get-xml is executed, the result is to add a node to
the current document with the value of get-xml. 

marty 




> 
> When I tried:
>
> It didn't work, but perhaps that is because it is a document.
> Thursday, October 18, 2001, 7:13:50 AM, you wrote:
> 
> MM> I have a similar application - but the clob is an xml 
> fragment ( meaning
> MM> it doesn't have processing instruction tags ).  So I can 
> use get-xml
> MM> instead of the get-ascii you use.  Then I can access data 
> in the xml
> MM> fragment with the XSL stylesheet.
> 
> MM> marty
> 
> >> -Original Message-
> >> From: Russell Castagnaro [mailto:[EMAIL PROTECTED]]
> >> Sent: Thursday, October 18, 2001 12:48 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: [C2] Accessing CLOBs as Documents
> >> 
> >> 
> >> Hello cocoon-users,
> >> 
> >>   I've got a problem.
> >> 
> >>   I have a table that has a few fields and a clob in it.  I want to
> >>   use the esql taglibs or SQLTransfromer to access this as 
> a document.
> >>   The column 'doc_content' is
> >> 
> >>   currently I'm using xml like this:
> >> 
> >> 
> >> 
> >>  >>   language="java"
> >>   xmlns:xsp="http://apache.org/xsp";
> >>   xmlns:esql="http://apache.org/cocoon/SQL/v2";
> >> >
> >> 
> >>   
> >>A Database XML DOC Page
> >>
> >> 
> >> 
> >>  fun
> >>  
> >>Select * from XML_DOC where doc_id in 
> >> (select max(doc_id) from xml_doc) 
> >> 
> >>  
> >> 
> >> 
> >> >> column="doc_content"/>
> >>
> >>  
> >>
> >>  
> >>
> >> 
> >>
> >>   
> >> 
> >> 
> >> 
> >> the 'doc_content' field'  is returned escaped out:
> >> 
> >>   
> >> /templates/seattletimes/  
> >>   
> >>  >> handleError="false">header.jsp  
> >>  >> handleError="true">donation2.jsp  
> >>  >> handleError="false">footer.jsp  
> >>   
> >> error2.jsp  
> >> 
> >> 
> >> 
> >> 
> >> Is there any way to have this content integrated into the document?
> >> 
> >> 
> >> Thanks,
> >> rrc
> >> 
> >> -- 
> >> Best regards,
> >>  Russell  mailto:[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]>
> >> 
> >> 
> 
> MM> 
> -
> MM> Please check that your question has not already been 
> answered in the
> MM> FAQ before posting. 
> 
> MM> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> MM> For additional commands, e-mail: 
> <[EMAIL PROTECTED]>
> 
> 
> 
> 
> -- 
> Best regards,
>  Russellmailto:[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]>
> 
> 

-
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: about sitemap

2001-10-22 Thread Martijn Bouterse

sergi wrote:
> 
> is there any relyable documentation about sitemap tags

You can find some information in the official Apache Cocoon 2
documentation. This documentation isn't updated very often. Better try
the documentation that comes with the Cocoon 2 distribution.

If you've downloaded the source packages you can build the HTML docs in
the cocoon directory with:

./build.sh docs

or on windows systems:

./build.bat docs

You need at least JDK 1.2.x and Apache Ant. See the build.xml in the
cocoon2 source directory.

For Debian Linux there is also a pre-compiled cocoon2-doc package. Which
may be available for other Linux flavors as well.

However, the latest version of Cocoon2 source (including the
documentation) can best be obtained via CVS. See the Apache Cocoon 2
website how to do that.

Martijn Bouterse

-
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: majix and teixlite

2001-10-22 Thread Rupert Barrow

Hi,

For RTF conversion, take a look at RTF2FO from NovoSoft (the guys at the
heart of UML in ArgoUML) : http://www.novosoft-us.com

HTH,
Rupert

le 18/10/01 11:35, florentmom à [EMAIL PROTECTED] a écrit :

> Hi, if someone used majix to convert rtf to xml with the teixlite dtd, can
> you send me the templates convert configuration you make for it please???
> Florent.
> 
> 
> -
> 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 during cocoon2 installation

2001-10-22 Thread Luca Morandini

Hi Folks,

I apologize to all of you, ,y previouse message was meant to be sent to
the private address of Alessandra, hence the use of Italian and HTML...
sorry for this.

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-

-Original Message-
From: Luca Morandini [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 3:51 PM
To: [EMAIL PROTECTED]
Subject: RE: Problems during cocoon2 installation


Alessandra,

dovrebbe essere incluso nella distribuzione di Red-hat, oppure
scaricabile dal loro sito all'indirizzo:

http://www.redhat.com/swr/i386/XFree86-Xvfb-4.0.3-5.i386.html

Ciao,



-
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 during cocoon2 installation

2001-10-22 Thread Luca Morandini



Alessandra,
 
    dovrebbe essere incluso nella distribuzione di Red-hat, 
oppure scaricabile dal loro sito all'indirizzo:
 
http://www.redhat.com/swr/i386/XFree86-Xvfb-4.0.3-5.i386.html
 
Ciao,
 
-   
Luca 
Morandini   
GIS 
Consultant  
[EMAIL PROTECTED]http://utenti.tripod.it/lmorandini/index.html-  


  -Original Message-From: Alessandra Donnini 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, October 22, 2001 3:30 
  PMTo: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Subject: Re: Problems during cocoon2 
  installation
  Luca, do you know where I can find Xvfb (that is 
  the pseudo-X-server to install in place of a real one)?
  Thank a lot
  Alessandra DonniniSmarten Software Spa
  
- Original Message - 
From: 
Luca Morandini 

To: [EMAIL PROTECTED] 

Sent: Monday, October 22, 2001 12:59 
PM
Subject: RE: Problems during cocoon2 
installation

Alessandra,
 
    there is a FAQ entry about Cocoon giving an error like 
this when X11 is not running. It is Batik that expects X11 to be in place, 
but there is a workaround for this nuisance, as described in the 
FAQ.
 
Best regards,
 
-   
Luca 
Morandini   
GIS 
Consultant  
[EMAIL PROTECTED]http://utenti.tripod.it/lmorandini/index.html-  


  -Original Message-From: Alessandra Donnini 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, October 22, 2001 
  12:42 PMTo: Cocoon Mailing ListSubject: Problems 
  during cocoon2 installation
  
  Hi people, I need help because I don't know how to 
  start!
   
  Our configuration is:
  Linux redhat 6.2
  Apache 1.3.20
  jakarta-tomcat-3.2.3
  Cocoon 2
   
  When we try to start cocoon2 for the first time the 
  browser shows this message
  "the sitemap handler's sitemap is not 
  available".
  Looking for the reason in the cocoon.log.000.. file I 
  can find these two errors (and errors stacks):
   
  --1>
  ERROR (2001-10-19) 15:23.02:110 [cocoon ] (/cocoon/) Thread-17/Handler: 
  Error compiling sitemap
  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:59)
  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:512)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503)
  at java.awt.SystemColor.updateSystemColors(SystemColor.java:342)
  at java.awt.SystemColor.(SystemColor.java:335)
  at 
  org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSystemColorResolver.java:27)
  at 
  org.apache.batik.css.value.ColorFactory.(ColorFactory.java:75)
  at 
  org.apache.batik.css.value.CommonValueFactoryMap.(CommonValueFactoryMap.java:39)
  at 
  org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:39)
  at 
  org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:32)
  at 
  org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.java:79)
  at 
  org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.java:59)
  at 
  org.apache.batik.dom.svg.SAXSVGDocumentFactory.(SAXSVGDocumentFactory.java:59)
  at 
  org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:44)
  at 
  org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:46)
  at java.lang.Class.newInstance0(Native Method)
  at java.lang.Class.newInstance(Class.java:237)
  at 
  org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown 
  Source)
  at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown 
  Source)
  at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown 
  Source)
  at 
  org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown 
  Source)
  at 
  org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(Unknown 
  Source)
  at 
  org.apache.avalon.excalibur.compon

RE: Second run error

2001-10-22 Thread SebRose

Is this the 'locked DB problem' as describe in the FAQ?

Edit webapps/cocoon/web-inf/db/cocoondb.properties
and set modified=no

Seb

-Original Message-
From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
Sent: 22 October 2001 14:24
To: [EMAIL PROTECTED]
Subject: RE: Second run error


Kenny,

Not really a solution, but I've seen the same error.  It went away when I
deleted the cocoondb.backup file in the WEB-INF\db folder.  I've only seen
it again once or twice and solved it with the same solution.

Mark

-Original Message-
From: Kenny Chow [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 10:05 PM
To: [EMAIL PROTECTED]
Subject: Second run error


The first time I deployed the C2 war file on Tomcat4,
everything ran smoothly. But the 2nd time tomcat
starts, it gives me the following error. Would someone
give me a hint?

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
Server.run/init: java.sql.SQLException: File
input/output error: C:\tomcat40\webapps\cocoon\WEB-INF\db\cocoondb.backup
java.sql.SQLException: File input/output error:
C:\tomcat40\webapps\cocoon\WEB-INF\db\cocoondb.backup
at org.hsqldb.Trace.getError(Trace.java:180)
at org.hsqldb.Trace.getError(Trace.java:144)
at org.hsqldb.Trace.error(Trace.java:205)
at org.hsqldb.Log.restoreBackup(Log.java:731)
at org.hsqldb.Log.open(Log.java:212)
at org.hsqldb.Database.(Database.java:96)
at org.hsqldb.Server.run(Server.java:137)
at org.hsqldb.Server.main(Server.java:78)
at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:101)
at java.lang.Thread.run(Thread.java:484)


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.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]>


Intelligent Finance is a division of Halifax plc, Registered in England No. 2367076, 
Registered Office: Trinity Road, Halifax, West Yorkshire HX1 2RG.



-
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]>




AW: about map:action and about sitemap

2001-10-22 Thread Jörn Heid

http://xml.apache.org/cocoon2/

-Ursprüngliche Nachricht-
Von: sergi [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 22. Oktober 2001 15:35
An: [EMAIL PROTECTED]
Betreff: about map:action


i'm not sure what this does... is anyone there who could explain me...


-
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]>




about sitemap

2001-10-22 Thread sergi

is there any relyable documentation about sitemap tags

-
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]>




about map:action

2001-10-22 Thread sergi

i'm not sure what this does... is anyone there who could explain me... 


-
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 during cocoon2 installation

2001-10-22 Thread Alessandra Donnini



Luca, do you know where I can find Xvfb (that is 
the pseudo-X-server to install in place of a real one)?
Thank a lot
Alessandra DonniniSmarten Software Spa

  - Original Message - 
  From: 
  Luca Morandini 
  To: [EMAIL PROTECTED] 
  Sent: Monday, October 22, 2001 12:59 
  PM
  Subject: RE: Problems during cocoon2 
  installation
  
  Alessandra,
   
      there is a FAQ entry about Cocoon giving an error like this 
  when X11 is not running. It is Batik that expects X11 to be in place, but 
  there is a workaround for this nuisance, as described in the 
  FAQ.
   
  Best regards,
   
  -   
  Luca 
  Morandini   
  GIS 
  Consultant  
  [EMAIL PROTECTED]http://utenti.tripod.it/lmorandini/index.html-  
  
  
-Original Message-From: Alessandra Donnini 
[mailto:[EMAIL PROTECTED]]Sent: Monday, October 22, 2001 
12:42 PMTo: Cocoon Mailing ListSubject: Problems 
during cocoon2 installation

Hi people, I need help because I don't know how to 
start!
 
Our configuration is:
Linux redhat 6.2
Apache 1.3.20
jakarta-tomcat-3.2.3
Cocoon 2
 
When we try to start cocoon2 for the first time the 
browser shows this message
"the sitemap handler's sitemap is not 
available".
Looking for the reason in the cocoon.log.000.. file I 
can find these two errors (and errors stacks):
 
--1>
ERROR (2001-10-19) 15:23.02:110 [cocoon ] (/cocoon/) Thread-17/Handler: 
Error compiling sitemap
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:59)
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:512)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503)
at java.awt.SystemColor.updateSystemColors(SystemColor.java:342)
at java.awt.SystemColor.(SystemColor.java:335)
at 
org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSystemColorResolver.java:27)
at 
org.apache.batik.css.value.ColorFactory.(ColorFactory.java:75)
at 
org.apache.batik.css.value.CommonValueFactoryMap.(CommonValueFactoryMap.java:39)
at 
org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:39)
at 
org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:32)
at 
org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.java:79)
at 
org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.java:59)
at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.(SAXSVGDocumentFactory.java:59)
at 
org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:44)
at 
org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:46)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown 
Source)
at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown 
Source)
at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown 
Source)
at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown 
Source)
at 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(Unknown 
Source)
at 
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Unknown 
Source)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(Unknown 
Source)
at 
org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(SitemapComponentSelector.java:91)
at 
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:231)
at 
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap.java:1412)
at 
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:829)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown 
Source)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(Unknown 
Source)
at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelecto

RE: cocoon-disable-caching instruction

2001-10-22 Thread Vincent

hi and thanks for your response, but with that solution i will have no more 
cache at all..
And cocoon will "die" under requests :-(




>Hi Vincent:
>
> You can try with this sentence in cocoon.properties.
>
>
>#uncomment this to disable ALL page caching
>cache = org.apache.cocoon.cache.NoCache
>
>
>I hope you be able to solve the problem with it.
>
> Jose de Miguel
> Madrid
> España
> 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]>



-
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: Second run error

2001-10-22 Thread Mark S. Kent

Kenny,

Not really a solution, but I've seen the same error.  It went away when I
deleted the cocoondb.backup file in the WEB-INF\db folder.  I've only seen
it again once or twice and solved it with the same solution.

Mark

-Original Message-
From: Kenny Chow [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 10:05 PM
To: [EMAIL PROTECTED]
Subject: Second run error


The first time I deployed the C2 war file on Tomcat4,
everything ran smoothly. But the 2nd time tomcat
starts, it gives me the following error. Would someone
give me a hint?

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
Server.run/init: java.sql.SQLException: File
input/output error: C:\tomcat40\webapps\cocoon\WEB-INF\db\cocoondb.backup
java.sql.SQLException: File input/output error:
C:\tomcat40\webapps\cocoon\WEB-INF\db\cocoondb.backup
at org.hsqldb.Trace.getError(Trace.java:180)
at org.hsqldb.Trace.getError(Trace.java:144)
at org.hsqldb.Trace.error(Trace.java:205)
at org.hsqldb.Log.restoreBackup(Log.java:731)
at org.hsqldb.Log.open(Log.java:212)
at org.hsqldb.Database.(Database.java:96)
at org.hsqldb.Server.run(Server.java:137)
at org.hsqldb.Server.main(Server.java:78)
at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:101)
at java.lang.Thread.run(Thread.java:484)


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.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]>




Re: HELP for Cocoon2 and Unix

2001-10-22 Thread Lajos Moczar

Comment out the 3 svg* serializers from the  section 
and the pipeline entries that use those serializers.

Lajos
galatea.com

Andreas Grünhagen wrote:

> Hello,
> when I start cocoon2 (with Tomcat 3.3 Beta 2) under Linux or Solaris it 
> always tries to establish a connection to a running XServer. 
> How can I avoid this ?
> 
> thanks in advance
> 
> andreas
> 
> -
> 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]>




HELP for Cocoon2 and Unix

2001-10-22 Thread Andreas Grünhagen

Hello,
when I start cocoon2 (with Tomcat 3.3 Beta 2) under Linux or Solaris it 
always tries to establish a connection to a running XServer. 
How can I avoid this ?

thanks in advance

andreas

-
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: Using Custom Component in Cocoon2

2001-10-22 Thread Berin Loritsch

Alexander Smirnoff wrote:
> 
> Hi,
> 
> I have made custom Component and trying to access it from XSP file. It seems
> that it passes OK all main steps of
> composition/configuration/initialization, but somehow at the end I getting
> the next exception:


The most basic reason of all.  Your component must implement Component.  Otherwise
it cannot possibly return it to you.  The return type for the lookup() command
is a Component.  Component is a marker interface (no methods):

org.apache.avalon.framework.component.Component

> 
> org.apache.avalon.framework.component.ComponentException: Could not access
> the Component
> at
> org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Unkno
> wn Source) <-- Why ? It seems that it found it ?
> at
> org.apache.cocoon.www.xsp.messages_xsp.generate(messages_xsp.java:278)
> at
> org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
> tor.java:175)
> at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
> entPipeline.java:214)
> ...
> 
> thats the way how I look for it in XSP file:
> 
> com.gwvas.manager.Manager myComponent = (com.gwvas.manager.Manager)
> manager.lookup("com.gwvas.manager.Manager");
> 
> thats the way how I defined it in cocoon.xconf
> 
>  class="com.gwvas.manager.DBCoreManager">
> documents
> 
> 
> Component itself is attached to this email... Any ideas?
> 
> Thanks,
> alex
> 
>   
>
>  Name: DBCoreManager.java
>DBCoreManager.javaType: Java Class (java/*)
>  Encoding: quoted-printable
> 
>   
>
> -
> 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: cocoon-disable-caching instruction

2001-10-22 Thread Jose de Miguel

Hi Vincent:

You can try with this sentence in cocoon.properties.


#uncomment this to disable ALL page caching
cache = org.apache.cocoon.cache.NoCache


I hope you be able to solve the problem with it.

Jose de Miguel
Madrid
España
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]>




cocoon-disable-caching instruction

2001-10-22 Thread Vincent

Hi,

I'm using cocoon 1.8 with tomcat 3.2. I've got an xsp which retrieve the 
date.. But the xsp is in cache !
So i've often have the date of three or four days ago..! not so cool !
Anyone knows how to avoid this ?

I've tried  but, with no success !

Thanks fo help !
Vincent Majer
http://www.medisite.fr



-
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]>




Cocoon 1.8 + Tomcat 3.3 + IIS 5 ?

2001-10-22 Thread thorsten . sommer

Please, I need help:
Could someone tell me, how to install Cocoon 1.8 + Tomcat 3.3 + IIS 5?

Thanx
Thorsten

-
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]>




Java interpreter dies running samples

2001-10-22 Thread SebRose

System: Windows NT 4 SP6
JDK: 1.2.2
Tomcat 3.2.3 (standalone) - modified as per Coccon instructions
Cocoon 2.0 rc 1a - built using '.\build.bat -Dinclude.webapp.libs=yes
-Dinstall.war={path-to-webapps-dir} install' and placed in webapps folder.
IE 5.00.2919.6307CO
Tomcat starts up fine, and the test servlets respond as expected. When I go
to http://localhost:8080/cocoon/ I get an application error:
java.exe Exception: access violation (0xc005,... )

The cocoon log file looks like this:

DEBUG   (2001-10-22) 11:10.35:186   [cocoon  ] (/cocoon/) Thread-17/Cocoon:
DEBUGGING INFORMATION:
REQUEST: /cocoon/

CONTEXT PATH: /cocoon
SERVLET PATH: /
PATH INFO: null

REMOTE HOST: localhost
REMOTE ADDRESS: 127.0.0.1
REMOTE USER: null
REQUEST SESSION ID: null
REQUEST PREFERRED LOCALE: en_GB
SERVER HOST: localhost
SERVER PORT: 8080

METHOD: GET
CONTENT LENGTH: -1
PROTOCOL: HTTP/1.1
SCHEME: http
AUTH TYPE: null

CURRENT ACTIVE REQUESTS: 1
MAXIMUM ACTIVE REQUESTS: 1

REQUEST PARAMETERS:


SESSION ATTRIBUTES:


DEBUG   (2001-10-22) 11:10.35:202   [cocoon  ] (/cocoon/)
Thread-17/DefaultComponentFactory: ComponentFactory creating new instance of
org.apache.cocoon.components.source.SourceHandlerImpl.
DEBUG   (2001-10-22) 11:10.35:202   [cocoon  ] (/cocoon/)
Thread-17/DefaultComponentFactory: no logger attribute available, using
standard logger
DEBUG   (2001-10-22) 11:10.35:202   [cocoon  ] (/cocoon/)
Thread-17/SourceHandlerImpl: Getting the SourceFactories
DEBUG   (2001-10-22) 11:10.35:202   [cocoon  ] (/cocoon/) Thread-17/Handler:
Beginning sitemap regeneration
DEBUG   (2001-10-22) 11:10.35:202   [cocoon  ] (/cocoon/)
Thread-17/URLFactoryImpl: Making URL from
file:/C:\seb\web\jakarta-tomcat-3.2.3\webapps\cocoon\sitemap.xmap
DEBUG   (2001-10-22) 11:10.35:202   [cocoon  ] (/cocoon/)
Thread-17/URLFactoryImpl: Making URL from
file:/C:/seb/web/jakarta-tomcat-3.2.3/webapps/cocoon/
DEBUG   (2001-10-22) 11:10.35:217   [cocoon  ] (/cocoon/)
Thread-17/URLFactoryImpl: Making URL from
file:/C:\seb\web\jakarta-tomcat-3.2.3\webapps\cocoon\sitemap.xmap
DEBUG   (2001-10-22) 11:10.35:248   [cocoon  ] (/cocoon/)
Thread-17/ExcaliburComponentSelector: UnnamedSelector: ComponentSelector
could not find the component for hint: org\apache\cocoon\www\sitemap_xmap
DEBUG   (2001-10-22) 11:10.35:248   [cocoon  ] (/cocoon/)
Thread-17/GeneratorSelector: Could not access component for hint:
org\apache\cocoon\www\sitemap_xmap
DEBUG   (2001-10-22) 11:10.35:248   [cocoon  ] (/cocoon/)
Thread-17/ProgramGeneratorImpl: The instance was not accessible from the
internal cache. Proceeding.
DEBUG   (2001-10-22) 11:10.35:327   [cocoon  ] (/cocoon/)
Thread-17/DefaultComponentFactory: ComponentFactory creating new instance of
org.apache.cocoon.www.sitemap_xmap.
DEBUG   (2001-10-22) 11:10.35:327   [cocoon  ] (/cocoon/)
Thread-17/DefaultComponentFactory: no logger attribute available, using
standard logger
DEBUG   (2001-10-22) 11:10.35:327   [cocoon  ] (/cocoon/)
Thread-17/DefaultRoleManager: looking up shorthand hsqldb-server, returning
null
DEBUG   (2001-10-22) 11:10.35:327   [cocoon  ] (/cocoon/)
Thread-17/DefaultRoleManager: looking up shorthand store, returning null
DEBUG   (2001-10-22) 11:10.35:342   [cocoon  ] (/cocoon/)
Thread-17/DefaultRoleManager: looking up shorthand store-janitor, returning
null
DEBUG   (2001-10-22) 11:10.35:342   [cocoon  ] (/cocoon/)
Thread-17/DefaultRoleManager: looking up shorthand xslt-processor, returning
null
DEBUG   (2001-10-22) 11:10.35:342   [cocoon  ] (/cocoon/)
Thread-17/DefaultRoleManager: looking up shorthand url-factory, returning
null
DEBUG   (2001-10-22) 11:10.35:342   [cocoon  ] (/cocoon/)
Thread-17/DefaultRoleManager: looking up shorthand source-handler, returning
null
DEBUG   (2001-10-22) 11:10.35:342   [cocoon  ] (/cocoon/)
Thread-17/DefaultRoleManager: looking up shorthand program-generator,
returning null
DEBUG   (2001-10-22) 11:10.35:342   [cocoon  ] (/cocoon/)
Thread-17/DefaultRoleManager: looking up shorthand jsp-engine, returning
null
DEBUG   (2001-10-22) 11:10.35:342   [cocoon  ] (/cocoon/)
Thread-17/DefaultRoleManager: looking up shorthand programming-languages,
returning null
DEBUG   (2001-10-22) 11:10.35:342   [cocoon  ] (/cocoon/)
Thread-17/DefaultRoleManager: looking up shorthand classloader, returning
null
DEBUG   (2001-10-22) 11:10.35:342   [cocoon  ] (/cocoon/)
Thread-17/DefaultRoleManager: looking up shorthand markup-languages,
returning null
DEBUG   (2001-10-22) 11:10.35:342   [cocoon  ] (/cocoon/)
Thread-17/DefaultRoleManager: looking up shorthand datasources, returning
null
DEBUG   (2001-10-22) 11:10.35:342   [cocoon  ] (/cocoon/)
Thread-17/DefaultRoleManager: looking up shorthand stream-pipeline,
returning org.apache.cocoon.components.pipeline.StreamPipeline
DEBUG   (2001-10-22) 11:10.35:342   [cocoon  ] (/cocoon/)
Thread-17/ExcaliburComponentManager: Adding component
(org.apache.cocoon.components.pipeline.StreamPipeline =
org.apache.cocoon.components.pipeline.CachingStreamPipeline)
DEBUG   (2001

RE: Problems during cocoon2 installation

2001-10-22 Thread Luca Morandini



Alessandra,
 
    there is a FAQ entry about Cocoon giving an error like this 
when X11 is not running. It is Batik that expects X11 to be in place, but there 
is a workaround for this nuisance, as described in the FAQ.
 
Best regards,
 
-   
Luca 
Morandini   
GIS 
Consultant  
[EMAIL PROTECTED]http://utenti.tripod.it/lmorandini/index.html-  


  -Original Message-From: Alessandra Donnini 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, October 22, 2001 12:42 
  PMTo: Cocoon Mailing ListSubject: Problems during 
  cocoon2 installation
  
  Hi people, I need help because I don't know how to 
  start!
   
  Our configuration is:
  Linux redhat 6.2
  Apache 1.3.20
  jakarta-tomcat-3.2.3
  Cocoon 2
   
  When we try to start cocoon2 for the first time the 
  browser shows this message
  "the sitemap handler's sitemap is not 
  available".
  Looking for the reason in the cocoon.log.000.. file I can 
  find these two errors (and errors stacks):
   
  --1>
  ERROR (2001-10-19) 15:23.02:110 [cocoon ] (/cocoon/) Thread-17/Handler: 
  Error compiling sitemap
  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:59)
  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:512)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503)
  at java.awt.SystemColor.updateSystemColors(SystemColor.java:342)
  at java.awt.SystemColor.(SystemColor.java:335)
  at 
  org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSystemColorResolver.java:27)
  at 
  org.apache.batik.css.value.ColorFactory.(ColorFactory.java:75)
  at 
  org.apache.batik.css.value.CommonValueFactoryMap.(CommonValueFactoryMap.java:39)
  at 
  org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:39)
  at 
  org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:32)
  at 
  org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.java:79)
  at 
  org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.java:59)
  at 
  org.apache.batik.dom.svg.SAXSVGDocumentFactory.(SAXSVGDocumentFactory.java:59)
  at 
org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:44)
  at 
  org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:46)
  at java.lang.Class.newInstance0(Native Method)
  at java.lang.Class.newInstance(Class.java:237)
  at 
  org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown 
  Source)
  at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown 
  Source)
  at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown 
  Source)
  at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown 
  Source)
  at 
  org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(Unknown 
  Source)
  at 
  org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Unknown 
  Source)
  at 
  org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(Unknown 
  Source)
  at 
  org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(SitemapComponentSelector.java:91)
  at 
  org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:231)
  at 
  org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap.java:1412)
  at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:829)
  at 
  org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown 
  Source)
  at 
  org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(Unknown 
  Source)
  at 
  org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:143)
  at 
  org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:348)
  at 
  org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:183)
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
  at java.lang.Thread.run(Thread.java:484)
  --2>
  ERROR (2001-10-19) 15:51.46:397 [cocoon ] (/cocoon/) Thread-17/Handler: 
  Error compiling sitemap
 

Problems during cocoon2 installation

2001-10-22 Thread Alessandra Donnini




Hi people, I need help because I don't know how to 
start!
 
Our configuration is:
Linux redhat 6.2
Apache 1.3.20
jakarta-tomcat-3.2.3
Cocoon 2
 
When we try to start cocoon2 for the first time the 
browser shows this message
"the sitemap handler's sitemap is not available".
Looking for the reason in the cocoon.log.000.. file I can 
find these two errors (and errors stacks):
 
--1>
ERROR (2001-10-19) 15:23.02:110 [cocoon ] (/cocoon/) Thread-17/Handler: Error 
compiling sitemap
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:59)
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:512)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503)
at java.awt.SystemColor.updateSystemColors(SystemColor.java:342)
at java.awt.SystemColor.(SystemColor.java:335)
at 
org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSystemColorResolver.java:27)
at 
org.apache.batik.css.value.ColorFactory.(ColorFactory.java:75)
at 
org.apache.batik.css.value.CommonValueFactoryMap.(CommonValueFactoryMap.java:39)
at 
org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:39)
at 
org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:32)
at 
org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.java:79)
at 
org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.java:59)
at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.(SAXSVGDocumentFactory.java:59)
at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:44)
at 
org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:46)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown 
Source)
at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown 
Source)
at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown 
Source)
at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown 
Source)
at 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(Unknown 
Source)
at 
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Unknown 
Source)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(Unknown 
Source)
at 
org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(SitemapComponentSelector.java:91)
at 
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:231)
at 
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap.java:1412)
at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:829)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown 
Source)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(Unknown 
Source)
at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:143)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:348)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:183)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
at java.lang.Thread.run(Thread.java:484)
--2>
ERROR (2001-10-19) 15:51.46:397 [cocoon ] (/cocoon/) Thread-17/Handler: Error 
compiling sitemap
java.lang.NoClassDefFoundError
at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.(SAXSVGDocumentFactory.java:59)
at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:44)
at 
org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:46)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown 
Source)
at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown 
Source)
at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown 
Source)
at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown 
Source)
at 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(Unknown 
Source)
at 
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Unknown 
Source)
at 
org.

RE: Reloading Cocoon2 / Custom Generator

2001-10-22 Thread Karl Oie

i am not sure if the SimpleClassLoader can load from jars, but if it can it
could work, the classloader is the object that actually gets classes from
disk to the jvm, so if the SimpleClassLoader can load the classes from a
jar, then it should work.

please tell me if you can find a Classloader that can load from jars, i
would be thankful!

mvh karl



-Original Message-
From: Martin Kavalar [mailto:[EMAIL PROTECTED]]
Sent: 20. oktober 2001 03:11
To: [EMAIL PROTECTED]
Subject: Re: Reloading Cocoon2 / Custom Generator


I have a jar with all the classes my generator employs in it. Is there
no way to get cocoon to reload every class that has changed from disk in
this jar?

Karl Oie wrote:

>all classes are loaded by a classloader, by creating your own classloader
>you can nullify it after use and the class will have to load from disk
>again, included is a example of a custom classloader, here is an example of
>how to use it:
>
>
>
>SimpleClassLoader sc = new SimpleClassLoader( "/opt/java/classes" );
>try {
>   somecoolclass cool =
>(somecoolclass)(sc.loadClass( "somecoolclass.class" )).newInstance();
>   cooo.doCoolThings();
>   }
>catch (Exception e) {
>   System.out.println( "aarr, classloader failed = " +
>e.getMessage() );
>   e.printStackTrace();
>   }
>sc = null;
>
>
>
>so you will have to wrap the functionality you want to be dynamicaly
>reloaded in the somecoolclass.class and create a generator wrapper that
uses
>the classloader to load your class and then kill the classloader at the end
>of each execution run.
>
>
>mvh karl oie
>
>
>
>-Original Message-
>From: Martin Kavalar [mailto:[EMAIL PROTECTED]]
>Sent: 19. oktober 2001 16:50
>To: Cocoon Mailing List
>Subject: Reloading Cocoon2 / Custom Generator
>
>
>Hello,
>i was wondering if it is possible to reload cocoon or a custom build
>generator after its been recompiled without restarting tomcat. If yes,
>i'd like to know how, and if not, then id like to know if theres another
>way to speed up the compiling / testing process somehow because always
>waiting about 30 seconds (restarting tomcat, reloading cocoon..) after
>changing the java code slows down my dev. cycle quite a bit.
>Tanks a lot, if you can help, you make my life easiert ;)
>martin
>
>
>-
>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]>
>




-
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: cocoon2 generator implementation query

2001-10-22 Thread Laurens M. Fridael

Hi,


Here are my thoughts.

For the sake of convenience you should derive your Generator from
"AbstractGenerator" (or any of its descendants). The protected field
"contentHandler" lets you send SAX events down the pipeline. The protected
field "source" represents the URI according to the mapping defined in the
Sitemap. You can use the protected field "resolver" to resolve the source
into a SAX InputSource.

Here's the code from my own DocumentGenerator class. This class generates a
simple document structure from a text file using a DocumentReader(an
XMLReader implementation that converts a text file into a stream of SAX
events). The DocumentGenerator is paired with a DocumentSerializer which can
produce a Palm PDB file from SAX events.

---
package distantcord.palm;

import distantcord.palm.DocumentReader;
import java.io.IOException;
import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.ResourceNotFoundException;
import org.apache.cocoon.generation.AbstractGenerator;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;

public class DocumentGenerator extends AbstractGenerator {

public void generate() throws IOException, SAXException,
ProcessingException {
// Obtain a SAX InputSource.
InputSource inp = resolver.resolve(source).getInputSource();
// Create a DocumentReader. This generates ContentHandler events.
DocumentReader docReader = new DocumentReader();
// Set the ContentHandler.
docReader.setContentHandler(contentHandler);
// Parse the InputSource. This starts off the stream of SAX events.
docReader.parse(inp);
}

}
---

The purpose of the class is beside the point. What I want to say is that you
should separate the parsing logic (the XMLReader implementation ) from the
Generator. This way you can reuse the parser in a standalone SAX
application. In fact, I think you could make a SAX-based Generator class
generic so that you could supply the class name of your XMLReader
implementation as an initialization parameter. You would then use
Class.newInstance() or another reflection mechanism to instantiate the class
at runtime.

There is no need to use a Transformer to convert your SAX events into an XML
stream first. You can send the SAX events down the pipeline immediately.

The mapping in your sitemap is wrong I think. The wildcard pattern must be
specified in  like this:


 
 
 



Regards
-Laurens

- Original Message -
From: "Bob Phillips" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 21, 2001 9:00 PM
Subject: cocoon2 generator implementation query


> I have been looking at making a cocoon2 generator and would be
> interested in advice or criticism about my strategy.



-
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: Anyone using Castor with Cocoon2

2001-10-22 Thread Frank Taffelt

Hi,

yes, you can place all your castor stuff (castor.jar, ...) right into
cocoon/WEB-INF/lib directory.
After that you can include and use castor like a normal library.

hth,
frank








-
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]>