Error : 500 Internal Servlet Error

2002-02-13 Thread Shailendra Vasale


hi All,


   I'm running c2 on tomcat3.2.3.When I call my xml file in c2 using serverpages 
generator.I get the following error.

Error: 500
Location: /cocoon/show123/style.xml
Internal Servlet Error:

java.lang.ClassFormatError: org/apache/cocoon/www/docs/samples/styles/style_xml (Code 
of a method longer than 65535 bytes)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at 
org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.loadClass(ClassLoaderManagerImpl.java:64)
at 
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram(JavaLanguage.java:121)
at 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:144)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:320)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:271)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:188)
at 
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:170)
at 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:146)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:239)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:277)
at 
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40049C(sitemap_xmap.java:6499)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2990)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2551)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:591)
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:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.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)



   Can anyone help me out.

   TIA.

Regards,
SHAILENDRA.


 


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

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




C2 : HttpServletResponse

2001-11-09 Thread Shailendra Vasale


hi, 


  Why HttpServletResponse object not working with 
logicsheet in C2? Even when I type cast the 
org.apache.cocoon.environment.http.HttpResponse  
object to HttpServletResponse,it throws an exception - 

org.apache.cocoon.ProcessingException: 
Exception in ServerPagesGenerator.generate(): 
java.lang.ClassCastException: 
org.apache.cocoon.environment.http.HttpResponse 

 How can use HttpServletResponse object? 

 Thanks in advance. 

Regadrs, 
SHAILENDRA. 
 


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

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




C2 Logicsheet : HttpServletResponse

2001-11-08 Thread Shailendra Vasale


hi Friends,


   Why it's not possible to use HttpServletRequest object in logicsheet in C2? Even 
when I type cast the 
org.apache.cocoon.environment.http.HttpResponse  to HttpServletReusest,it throws an 
exception -

org.apache.cocoon.ProcessingException: 
Exception in ServerPagesGenerator.generate(): 
java.lang.ClassCastException: 
org.apache.cocoon.environment.http.HttpResponse 

  How can use HttpServletResponse object?

  Thanks in advance.

Regadrs,
SHAILENDRA. 


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

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




Re: C2 Logicsheet : HttpServletResponse

2001-11-08 Thread Shailendra Vasale


hi,

  
   I actually misstyped while composing the message.It's HttpServletResponse object 
not HttpServletRequest.

SHAILENDRA.

On Fri, 09 Nov 2001 Shailendra  Vasale wrote :
 
 hi Friends,
 
 
Why it's not possible to use HttpServletRequest 
 object in logicsheet in C2? Even when I type cast the 
 org.apache.cocoon.environment.http.HttpResponse  to 
 HttpServletReusest,it throws an exception -
 
 org.apache.cocoon.ProcessingException: 
 Exception in ServerPagesGenerator.generate(): 
 java.lang.ClassCastException: 
 org.apache.cocoon.environment.http.HttpResponse 
 
   How can use HttpServletResponse object?
 
   Thanks in advance.
 
 Regadrs,
 SHAILENDRA. 
 
 
 -
 -
 Please check that your question has not already been 
 answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.h-
 tml
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 ache.org
 For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 


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

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




Re: Catching XMLSerializer O/P

2001-10-23 Thread Shailendra Vasale
='ISO-8859-1'?;
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
  {
this.contentHandler.ignorableWhitespace(ch, start, length);
  }

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

 /**
 * Recycle the serializer. GC instance variables
 */
public void recycle() {
super.recycle();
this.handler = null;
}
}
-

  I'm getting the xmlFile.xml somewhat like -

xmlFile.xml
-
?xml version=1.0 encoding=UTF-8?
hellopageHello
   This is my first Cocoon2 b02 page! 
titleHello
   This is my first Cocoon2 b02 page! 
  /title
paraHello
 This is my first Cocoon2 b02 page! 
/para
/hellopage
-

   Hope this helps to understand my problem.

   Thanks.

Regards,
Shailendra Vasale

shailendra vasale wrote:

 I'm trying to catch the events in XMLSerializer(which is getting displayed on 
browser)
 but what I get is - When I catch the startElement and endElement events I get the 
elements
 as specified in XSL.
 But when I catch the characters event I get the entire content of XML in each 
element
 instead of getting the respecive element content.
 
 Can anyone pls help me out? How can catch these events which is displayed on the
 browser either in Serializer or Transformer.

Are you using start and len in public void characters(char c[], int
start, int len)?
Can you send a 5-15 lines code sample where you get the entire content
of your XML
document?

-- 
Sébastien Koechlin - IVision - [EMAIL PROTECTED]
 


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

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