I am not exactly sure if my problem is similar, but it wouldn't hurt to
share it. It seems to me that when acrobat says that "This file cannot be
opened because it has no pages," then it means it is getting a file of size
zero. Did you try downloading the file by right-clicking on the link and
clicking Save Target As?
I normally work on windows environment, and then transfer my work on an AIX
4.3 machine. I'm use cocoon 2.1.3 and tomcat 4.0.4. My transformation are
normally XML to XHTML. In windows it works perfect. In Unix, whenever I have
a transformation that produces a big XHTML file, then I get an empty page in
my browser. I read somewhere in this mailing list that some people had
problems getting cocoon to send big static files, and the solution was to
include the following line in the pipeline:
<map:parameter name="outputBufferSize" value="8192"/>
So I changed my pipeline to something like the following:
<map:pipeline>
<map:parameter name="outputBufferSize" value="8192"/>
<map:match pattern="foo.xhtml">
<map:generate src="foo.xml"/>
<map:transform src="foo.xsl">
<map:serialize type="xml" />
</map:match>
</map:pipeline>
It works for me. Hope it is related to your problem, and that it will help.
Hussain
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 12, 2003 8:14 PM
Subject: problem when I deploy my cocoon 2.1 application on Unix environment
>
>
>
>
> Hi
> I have problem when I deploy my cocoon application on Unix environment
>
>
> Iam working on a project, displaying XML file in PDF format using cocoon
> package from
> Apache.
> On my computer WSAD 5.0 is installed. I imported the cocoon.war generated
> from source
> provided by Apache into WSAD 5.0. I wrote xsl programs to convert XML
files
> into PDF files.
> These programs work in WSAD. I created websphere server 5.0 and websphere
> server 4.0 test environments in WSAD. My programs work in both websphere
> server 5.0 and websphere server 4.0.
> I exported the enterprise application consisting of cocoon and my programs
> into cocoonTest.EAR file. I deployed this cocoonTest.EAR on unix box (gsp
> server)
>
> When I point to gsp server url and click on link which invokes my
programs,
> It opens up
> adobe acrobat and finally I get message saying "This file cannot be opened
> because it has no pages".
>
> Same programs work on windows environment in WSAD, but when I deploy on
> unix machine it does not work. I made sure that all the required jar files
> which are in WSAD are in the cocoon.EAR which deployed on GSP server.
>
> is there any difference in WSAD environment and gsp server environment.
> What more I need to do to make my application work.
> When we deploy an application from windows environment onto UNIX
> environment, what else procedure do I need do. I spent considerable amount
> of time in doing these research, I appreciate any help in this regard.
>
> Thanks
> Uma
>
>
> Umamaheswar Munugala
> Product Lifecycle Management,
> DaimlerChrysler Corporation,
> Email: [EMAIL PROTECTED],
> T- line: 722-8941,
> Outside: (248) 512-8941.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]