RE: XML to WML

2001-07-24 Thread Paul Nock

This sounds like something weird that happens to me with the UP simulator...

Try exiting the UP simulator, starting it again and then accesing your page.

I've found that there's some peculiar behavior that something somewhere
'remembers' the user-agent of the most recent request from this IP address.
If you have IE and UP running at the same time, access page.xml with IE,
_then_ access page.xml with UP, you get HTML sent to the user-agent.

If you kill and restart UP after anytime you access page.xml from IE, then
it'll come up fine in UP.

Also, if you explicitly do a page.xml?user-Agent=UP in the request, I think
it'll work OK too.

Paul

-Original Message-
From: Seth Bunke [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 1:36 PM
To: [EMAIL PROTECTED]
Subject: XML to WML


I am having problems with trying to generate content dymanically
for wml and html browsers in a manner similar to that which is
included in the cocoon/samples/wap directory for Cocoon 1.
I believe that my Apache/Tomcat/Cocoon (Windows 98) setup and
configuration is correct because I am able to access
cocoon/wap/example-portfolio.xml properly with both IE and
Phone.com's UP.Simulator - all of the questions/answers
on the mailing list concerning this issue suggest to people
that there is probably something wrong with their
setup/configuration. While I am able to access my xml
document properly with IE, the simulator presents a
"Content-type Error" statement to the screen. When examining
the DOS window for the simulator it states that:

Uncompiled data from HTTP is 2590 bytes.
...found Content-Type: text/html
Content-Type: text/html is not handled by UP.Simulator.
No translator for content-type: text/html

I believe that this is the crux of my problem. My xml file
(test.xml) is located at webapps/cocoon/test/test.xml. I have attempted
to move it to within the cocoon/samples directory (along with
its corresponding xsl files), but this has not solved the problem.
I have included the contents of my xml and xsl files below.
I do not know anyone that is working with Cocoon and consequently
do not have any resources for advice or help on this matter.
Any information that you can provide me on dealing with this
problem will be greatly appreciated.

Thank you,
Seth Bunke

===







This is the html page
This is the wml page

===


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

type="text/html"

This is just a test of the html written in
the xsl







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

type="text/wml"



Card1
Card2



this is just the text of Card1





this is just the text of Card2









-
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: URGENT help needed:from all Cocoonites

2001-07-24 Thread Paul Nock

>3)How can I be assured that I"ll get support if I get
>into some problem while working with Cocoon ?
>MY ANSWER: there is this mailing list which helps you
>24hrs a day unlike those companies which charge you
>HUGE amounts,this is free peer-peer support.

Well, you can't. This is always Big Software's argument against open source.
The thing is though you do have the source code. This isn't necessarily for
everyone, but it's a very good advantage for a competent IT department.
We've had at least 2 cases where we've been able to fix things to work how
we wanted to without:
1. waiting weeks or months for Big Software Corp. to agree that it's a
problem
2. waiting weeks or months for Big Software Corp. to fix the problem

So, in our case actually paying money for the support would actually have
been worse than just fixing the problem.

>4)Which version of Cocoon should i use in my company ?
>MY ANSWER:Use Cocoon 1.8.2 bcoz there are many who
>have used this and people have exhausted all the
>possible problems with 1.8.2 and so quick help is
>easily available from the cocoon-archives.

We use 1.8.3.

>7)Did anyone do any work using Cocoon+VoiceXml  ?

Yes. Works very well.


Paul


-
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-users@xml.apache.org

2001-07-23 Thread Paul Nock

This is kind of off-topic here I suspect, but ...

What type of phone are you using? Are cookies supported through your WAP
gateway and to the device? If not you need to use URL rewriting to make sure
the sessionid is in the URL, not in a cookie.

The on-topic part of the answer is that you can use the linkencode processor
to do that for you.

Paul

-Original Message-
From: cyan Tillo [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 21, 2001 12:43 AM
To: [EMAIL PROTECTED]
Subject: session &WML


hello readers
 i am developing a wap site.. but the session is not working.. i am creating
WML using servlets...
when it calls the next servlet the session is read as new
pls help me to solve this

cyan



http://www.monsterindia.com - The Best Jobs. For the Best Minds.




-
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: hi - TO TurbinePool or not.

2001-07-16 Thread Paul Nock



Here's 
the .bat file I use to start tomcat3.2/Cocoon1.8.3 on my WindowsME system. I use 
the same basic setup on Linux too, with appropriate changes in filenames.  
If you just try to cut and paste this, notice that I've put some things in a 
\lib\183\.. directory that you'll need to modify for your local 
setup.
 
I use 
Saxon XSLT out of choice, but it also works with Xalan 1.2 if you 
prefer.
 
Your 
mileage may vary, but this works fine for me.
 
Paul
 
++
set TOMCAT_HOME=c:\apache\tc32set 
JAVA_HOME=c:\java\122set 
PATH=%JAVA_HOME%\bin;C:\WINDOWS;C:\WINDOWS\COMMAND
 
set CLASSPATH=.set 
CLASSPATH=%TOMCAT_HOME%\classes
 
set 
CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xerces_1_3.jar
 
set 
CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet_2_2.jarset 
CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\183\turbine-pool.jar
 
rem Using xalan, must use 1.2rem 
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xalan_1_2_D02.jarrem USING SAXON 
(6.2.1)set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\saxon.jar
 
set 
CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\183\bsf.jarset 
CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\183\bsfengines.jarset 
CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\183\fop_0_15_0.jar
set 
CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\183\cocoon.jar
set 
CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
java 
-Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 
%8 %9
++

-Original Message-From: Benjamin Cramer 
[mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 7:59 
AMTo: '[EMAIL PROTECTED]'Subject: RE: 
hi

  tomK,
   
      Thanks for the suggestions. I have confirmed that 
  the Turbine-pool.jar contains the TurbineResourceService.class. I copied the 
  jars in the %TOMCAT_HOME%/lib to a new /lib folder under cocoon/WEB-INF 
  directory as you suggested. Unfortunately, there has been no change after 
  restarting Tomcat.
   
      I was hoping to get Cocoon1.8 off the ground. If you 
  think it would better serve my time, I would be willing to put Cocoon2 in 
  place. However, I hadn't thought about it. Seemed that 1.8 would have been 
  more successful. I would like to get going in Cocoon ASAP.
   
  Ben
  
-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 
9:46 AMTo: [EMAIL PROTECTED]Subject: RE: 
hi
I'm a bit on a wild goose chase here, because I 
don't use Cocoon1.8...
 
Does this turbine-pool.jar contain a file 
TurbineResourceService.class? (I can't find a reference to this jar file on 
the turbine site).
 
If 
not, download the TDK from the Turbine website, and take the 
turbine-2.2-dev.jar (or a similar one, if you use a different version). This 
contains TurbineResourceService.class (I just checked).
 
If 
you're absolutely certain this class is in one of the .jars of your lib, try 
copying all contents of %TOMCAT_HOME%/lib to 
%TOMCAT_HOME%/webapps/cocoon/WEB-INF/lib (every tomcat version seems to use 
a different lib dir for your webapps, and copying your jars in all possible 
lib dirs doesn't seem to hurt most of the time :) )
 
 
tomK

  -Original Message-From: Benjamin Cramer 
  [mailto:[EMAIL PROTECTED]]Sent: maandag 16 juli 2001 
  16:15To: '[EMAIL PROTECTED]'Subject: RE: 
  hi
  tomK,
   
      I have Turbine-pool as part of my %TOMCAT_HOME%/lib. 
  My /lib directory has the following in it:
  
    ant.jar    
ant_1_1.jar    bsf.jar    
bsfengines.jar    cocoon.jar    
fesi.jar    fop_0_15_0.jar    
jasper.jar    jaxp.jar    
sax-bugfix.jar    servlet.jar    
servlet_2_2.jar    
stylebook-1.0-b2.jar    test    
turbine-pool.jar    w3c.jar    
webserver.jar    
xalan_1_2_D02.jar    xerces.jar    
xt.jar    zparser.jar    
zxml.jar
      I believe that I have all the necessary 
  components and renamed those that conflict. Cocoon is running because it 
  generated the error. Any help is much appreciated.
   
  Ben
  
 

-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 
8:58 AMTo: [EMAIL PROTECTED]Subject: RE: 
hi
Did you try adding the Turbine classes to your 
lib? If so, what happened then?
 
hth,
tomK

  -Original Message-From: Benjamin Cramer 
  [mailto:[EMAIL PROTECTED]]Sent: maandag 16 juli 
  2001 15:55To: 
  '[EMAIL PROTECTED]'Subject: RE: 
  hi
  Raghu,
   
      This list is of little use to either 
  of us. I have posted the exact same question (twice) without any 
  response, and in searching the archives found another unanswered 
  question posing the same problem.
 

Sylvain: was ... RE: broken build?

2001-06-18 Thread Paul Nock

Hmmm...
Is your patch correct?

I see it's changed to...

private boolean isValidName (String name) {
if (name != null) {
return false;
}
.

I found my stylesheets no longer had s working properly with the
20010618104654 C1 build.  Looking at the code, this would seem to be the
correct check:
private boolean isValidName (String name) {
if (name == null) {
return false;
}
.

With the second version, my stylesheets seem to work OK again.


Paul
-Original Message-
From: Sylvain Wallez [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 9:14 AM
To: [EMAIL PROTECTED]
Subject: Re: broken build?




Dan J Fraser a écrit :
>
> None of the dev snapshots want to build.
>
> I want a cocoon with xinclude that works, but also with caching that
works.
> So, 1.8 release is out, and 1.8.2 release is out.  I'm trying to build a
> 1.8.3-dev, but I get this:
>
> [javac]
> /usr/local/xml-cocoon/build/src/org/apache/cocoon/processor/xslt/XSLTP
> rocessor.java:163: Incompatible type for !. Can't convert java.lang.String
> to boolean.
> [javac] if (!name) {
> [javac] ^
>
> Perhaps I'm doing something wrong?  I've tried all the snapshots in the
> snapshots directory.  Same error on each.
>
> --
> Dan J. Fraser <[EMAIL PROTECTED]>
> PGP: 0xF3972A01 (17 B7 24 90 27 05 B8 92  4F 7F 61 18 B9 D1 17 CE)
> "I haven't lost my mind, it's backed up on tape somewhere."
>

This was a typo. I patched the Cocoon 1 CVS which should now be OK.

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


-
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: log files

2001-06-11 Thread Paul Nock

I use Tomcat logging in my logicsheet, e.g:




...

...
//  Import the tomcat logging classes...
org.apache.tomcat.logging.*



...
//Declare a LogHelper
//   "session_log" is the tomcat log file to use (see your
server.conf),
//   "Prefix" is a prefix to use in the log file for this
message:
private LogHelper loghelper = new LogHelper("session_log",
"Prefix");
...
  

...


//  Then just log your messages wherever you want:
   loghelper.log( log your message here );


Don't know if it's the best way, but it works fine.

Paul


-Original Message-
From: Oskar Werewka [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 10, 2001 3:15 PM
To: [EMAIL PROTECTED]
Subject: log files



Hej cocooners,

How can I use a log file, and which one?
 From cocoon or from tomcat?

A bit of code, or a place where can I learn about it will be niece.

Regards,
Oskar Werewka



--

Kamera wideo Sony, 5000 zl
wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ]


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