Re: [XFC] Could not initialize class com.xmlmind.xmledit.cssparser.ParseUtil on live Linux

2017-02-14 Thread Hussein Shafie

On 02/13/2017 07:12 PM, Tim Butterworth wrote:

Many thanks - I think the correct route is that I have now restarted the server 
using the -c parameter on the server - and we can now see if that is now 
allowing the access that we need.



Unfortunately, I'm not sure that this will work on your Linux server.



--> The basic idea behind our controlapp and the bundled Jetty 7 Servlet 
Container is to let *Windows* users quickly deploy XMLmind XSL Server.


On Windows, controlapp can start the bundled Jetty 7 Servlet Container 
as a native service. See "Run XMLmind XSL Server as a Windows® native 
service", 
http://www.xmlmind.com/foconverter/_distrib/xslsrv/doc/help/nativeService.html#nativeService




--> On Linux, the situation is different: controlapp cannot start the 
bundled Jetty 7 Servlet Container as a native Unix daemon.


We explain this in the documentation "Running XMLmind XSL Server as a 
Unix daemon", 
http://www.xmlmind.com/foconverter/_distrib/xslsrv/doc/help/unixDaemon.html#unixDaemon


---
Currently controlapp does not allow to run XMLmind XSL Server as a Unix 
daemon. On the Mac and on Linux, you may use controlapp to configure 
XMLmind XSL Server but after that, you'll need to write the init script 
by hand and then install this script in the proper place.

---

However we have no idea about how to write a Unix init script or install 
this script in the proper place. We never did that. We never tested that.




--> On Linux, it's recommended to install a Tomcat server as a Unix 
daemon. How to do this should be well documented on the Web. (This is 
what our own Unix sysadmin has done on our http://www.xmlmind.com/ server.)


After you manage to do that and have Tomcat server running as a Unix 
daemon, simply deploy XMLmind XSL Server as any normal web app.


If you prefer to use a .war file for that, building xslsrv.war is very 
simple:


---
$ cd xslsrv_install_dir/xslsrv

$ ls
addon
mime.types
resource
WEB-INF

$ jar cvf ../xslsrv.war *
---

(xslsrv.war is expected to directly contain addon/, mime.types, 
resource/, WEB-INF/)





--
XMLmind FO Converter Support List
xfc-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xfc-support


Re: [XFC] Could not initialize class com.xmlmind.xmledit.cssparser.ParseUtil on live Linux

2017-02-14 Thread Tim Butterworth
Many thanks - I think the correct route is that I have now restarted the server 
using the -c parameter on the server - and we can now see if that is now 
allowing the access that we need. 

Many thanks
Tim


> On 13 Feb 2017, at 17:49, Hussein Shafie  wrote:
> 
> On 02/13/2017 04:27 PM, Rajesh Kumar Chaudhary wrote:
>> 
>> I would like to inform you  regarding below issue
>> let me explain when issue is coming?
>> 1)  On   local machine with window OS it's working fine in  case
>> 
>> 2) On server OS  centos
>> 
>> 
>> [^566D601D7F358F6809EB21EAE74E795515C24D5FB4942CD69C^pimgpsh_fullsize_distr.png]
> 
> You are using OpenJDK 1.8.0_45. We only support Oracle Java. But let's 
> suppose this is not a problem.
> 
> 
> 
> 
>> 
>> 
>> if on live server start server using command line *(**nohup java -jar
>> start.jar**)*
> 
> Starting our *bundled*, *customized*, Jetty using simply "java -jar 
> start.jar" is not documented in XMLmind XSL Server - Manual, 
> http://www.xmlmind.com/foconverter/_distrib/xslsrv/doc/manual/index.html
> 
> You are free to do it your way but in such case, we cannot help you.
> 
> 
> 
> 
>> and try to convert xhtml to pdf
>> then getting error as  : Could not initialize class
>> com.xmlmind.xmledit.cssparser.ParseUtil
>> if we will start the server directly  *bin\controlapp * then it's
>> working fine with above case which was you have already tested  but
>> issue is coming once we closed the windows it's automatically shut down
>> the server
> 
> I cannot reproduce this issue on my openSUSE Linux box.
> 
> May be the Jetty servet engine is killed when you close the terminal window 
> which is associated to it. (The terminal window which is associated to it was 
> the one used to run controlapp.)
> 
> 
> 
> 
> 
>> so we need to follow the command line procedure and in this process we
>> are getting issue
> 
> Note that controlapp may be used as a command-line tool (no GUI window). 
> Simply pass it the "-c" option for that:
> 
> ---
> $ xslsrv_install_dir/server/bin/controlapp -c
> ---
> 
> See 
> http://www.xmlmind.com/foconverter/_distrib/xslsrv/doc/help/consoleMode.html#consoleMode
> 
> 
> 
>> 
>> http://dev2.eecsoftware.com/clientlibrary/sailingholidays/emailtemplate/eticketdetail.html
>> http://web2.eecsoftware.com:8086/xslsrv/exec
>> please it and and let me  know even same html working fine on local machine
> 
> Please don't loose your time with our controlapp facility and with our 
> *bundled*, *customized* Jetty servlet engine. These tools are not adapted to 
> your use on your (headless?) Linux Centos server.
> 
> Please deploy another servlet engine on your server (e.g. Apache Tomcat or 
> *STOCK* Jetty). Make sure this servlet engine works OK in the context of your 
> Linux Centos server (no screen, no terminal, etc). Then deploy the "xslsrv" 
> Web app as explained in:
> 
> Chapter 3. Manually deploying the WebApp on your existing Servlet Container
> 
> http://www.xmlmind.com/foconverter/_distrib/xslsrv/doc/manual/deploy2.html#deploy2
> 
> 
> 


--
XMLmind FO Converter Support List
xfc-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xfc-support


Re: [XFC] Could not initialize class com.xmlmind.xmledit.cssparser.ParseUtil on live Linux

2017-02-13 Thread Rajesh Kumar Chaudhary
Hi Hussein,

I hope you are doing well,

I would like to inform you  regarding below issue
let me explain when issue is coming?
1)  On   local machine with window OS it's working fine in  case

2) On server OS  centos

  [cid:0264ebb1-b554-4e12-9a48-c002c7905afe]

if on live server start server using command line (nohup java -jar start.jar)
and try to convert xhtml to pdf
then getting error as  : Could not initialize class 
com.xmlmind.xmledit.cssparser.ParseUtil
if we will start the server directly  bin\controlapp  then it's working fine 
with above case which was you have already tested  but issue is coming once we 
closed the windows it's automatically shut down  the server
so we need to follow the command line procedure and in this process we are 
getting issue

http://dev2.eecsoftware.com/clientlibrary/sailingholidays/emailtemplate/eticketdetail.html
http://web2.eecsoftware.com:8086/xslsrv/exec
please it and and let me  know even same html working fine on local machine


Thanks,

Rajesh Chaudhary | PHP Team Lead
Email: rajeshku...@virtualemployee.com |  Skype: ve.rajeshkumar





India: (+91) 120 6628591 | USA: (+1) 877 697 8006 | Canada: (+1) 416 915 8941
UK: (+44) 203 478 5941 | Australia : (+61) 280 733 418




From: Hussein Shafie 
Sent: 08 February 2017 22:49
To: Rajesh Kumar Chaudhary
Cc: xfc-support@xmlmind.com
Subject: Re: Could not initialize class com.xmlmind.xmledit.cssparser.ParseUtil 
on live Linux

If it works on "local system(window)" and not on "live(Linux)", may be
there is a problem with "live(Linux)".

There is no problem with Linux in general. See for example attached
eticketdetail.pdf. It was generated on my Linux box this morning using
XMLmind XSL Server 5.4.3/Apache Tomcat 8 (not bundled Jetty)/Latest
Oracle Java 1.8.

I remember having the same kind of false java.lang.NoClassDefFoundError
exceptions with Jetty when, by mistake, I used an old Java 1.6 runtime
to run my server tests.

Switching to a recent Oracle Java 1.8 fixed the problem.

This requirement is documented here:
---
Before you begin

Make sure to have a Java™ runtime 1.7+ installed on your computer.
---
http://www.xmlmind.com/foconverter/_distrib/xslsrv/doc/manual/deploy1.html

If switching to a recent Oracle Java 1.8 does not fix the problem, then
I cannot help you as I have no way to reproduce the problem here at XMLmind.





Rajesh Chaudhary wrote:
>
> we have install the  software on both  live(Linux) and local system(window), 
> we are trying convert  form xml, xsl fo file pdf and it's preforming well in 
> this on both server server live and local
>
> bur we have issue in case conv=xhtmlToPDF  it's working fine on local system
>
> not working on live (Linux)system showing error
>
> Start
> 5 steps
> Step #0
> Information: Converting 
> "http://XXX/clientlibrary/demo1/Client%20Documents/eticketdetail.html;; to 
> "/tmp/jetty-0.0.0.0-8086-xslsrv-_xslsrv-any-/cache/1419/xfc.pdf" using 
> conversion specification "xhtmlToPDF"...
> Step #1
> Information: Preprocessing XHTML file 
> "http://XXX/clientlibrary/demo1/Client%20Documents/eticketdetail.html;; and 
> saving result to 
> "/tmp/jetty-0.0.0.0-8086-xslsrv-_xslsrv-any-/tmp/xslu1165404559927637330/xslu6861662141941910701.tmp"...
> Stop
> Error: Unexpected end of job #1,419:
> java.lang.NoClassDefFoundError: Could not initialize class 
> com.xmlmind.xmledit.cssparser.ParseUtil
> +---
> | com.xmlmind.xmledit.cssparser.Parser.simple_selector(Parser.java:816)
> | com.xmlmind.xmledit.cssparser.Parser.selector(Parser.java:752)
> | com.xmlmind.xmledit.cssparser.Parser.ruleset(Parser.java:704)
> | com.xmlmind.xmledit.cssparser.Parser.stylesheet(Parser.java:239)
> | com.xmlmind.xmledit.cssparser.Parser.parse(Parser.java:120)
> | com.xmlmind.xmledit.cssparser.Parser.parse(Parser.java:106)
> | com.xmlmind.xmledit.stylesheet.StyleParser.parse(StyleParser.java:233)
> | com.xmlmind.xmleditext.xhtml.csstoxsl.CSSToXSL.annotate(CSSToXSL.java:263)
> | com.xmlmind.xmleditext.xhtml.csstoxsl.CSSToXSL.annotate(CSSToXSL.java:285)
> | com.xmlmind.xmleditext.xhtml.csstoxsl.CSSToXSL.annotate(CSSToXSL.java:227)
> | com.xmlmind.xmleditext.xhtml.csstoxsl.CSSToXSL.process(CSSToXSL.java:122)
> | com.xmlmind.xmleditext.xhtml.csstoxsl.CSSToXSL.process(CSSToXSL.java:109)
> | com.xmlmind.xslutil.ConvertTask.processXHTML(ConvertTask.java:724)
> | com.xmlmind.xslutil.ConvertTask.doRun2(ConvertTask.java:538)
> | com.xmlmind.xslutil.ConvertTask.doRun(ConvertTask.java:136)
> | com.xmlmind.xslsrv.ConvertJobTask.doRun(ConvertJobTask.java:62)
> | com.xmlmind.xslutil.ConvertTask.run(ConvertTask.java:113)
> | com.xmlmind.xslsrv.ConvertJob.run(ConvertJob.java:159)
> | 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> | 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>
>
> here is xhtml template path 
> 

Re: [XFC] Could not initialize class com.xmlmind.xmledit.cssparser.ParseUtil on live Linux

2017-02-08 Thread Hussein Shafie
If it works on "local system(window)" and not on "live(Linux)", may be 
there is a problem with "live(Linux)".


There is no problem with Linux in general. See for example attached 
eticketdetail.pdf. It was generated on my Linux box this morning using 
XMLmind XSL Server 5.4.3/Apache Tomcat 8 (not bundled Jetty)/Latest 
Oracle Java 1.8.


I remember having the same kind of false java.lang.NoClassDefFoundError 
exceptions with Jetty when, by mistake, I used an old Java 1.6 runtime 
to run my server tests.


Switching to a recent Oracle Java 1.8 fixed the problem.

This requirement is documented here:
---
Before you begin

Make sure to have a Java™ runtime 1.7+ installed on your computer.
---
http://www.xmlmind.com/foconverter/_distrib/xslsrv/doc/manual/deploy1.html

If switching to a recent Oracle Java 1.8 does not fix the problem, then 
I cannot help you as I have no way to reproduce the problem here at XMLmind.






Rajesh Chaudhary wrote:


we have install the  software on both  live(Linux) and local system(window), we 
are trying convert  form xml, xsl fo file pdf and it's preforming well in this 
on both server server live and local

bur we have issue in case conv=xhtmlToPDF  it's working fine on local system

not working on live (Linux)system showing error

Start
5 steps
Step #0
Information: Converting "http://XXX/clientlibrary/demo1/Client%20Documents/eticketdetail.html; to 
"/tmp/jetty-0.0.0.0-8086-xslsrv-_xslsrv-any-/cache/1419/xfc.pdf" using conversion specification 
"xhtmlToPDF"...
Step #1
Information: Preprocessing XHTML file 
"http://XXX/clientlibrary/demo1/Client%20Documents/eticketdetail.html; and saving result 
to 
"/tmp/jetty-0.0.0.0-8086-xslsrv-_xslsrv-any-/tmp/xslu1165404559927637330/xslu6861662141941910701.tmp"...
Stop
Error: Unexpected end of job #1,419:
java.lang.NoClassDefFoundError: Could not initialize class 
com.xmlmind.xmledit.cssparser.ParseUtil
+---
| com.xmlmind.xmledit.cssparser.Parser.simple_selector(Parser.java:816)
| com.xmlmind.xmledit.cssparser.Parser.selector(Parser.java:752)
| com.xmlmind.xmledit.cssparser.Parser.ruleset(Parser.java:704)
| com.xmlmind.xmledit.cssparser.Parser.stylesheet(Parser.java:239)
| com.xmlmind.xmledit.cssparser.Parser.parse(Parser.java:120)
| com.xmlmind.xmledit.cssparser.Parser.parse(Parser.java:106)
| com.xmlmind.xmledit.stylesheet.StyleParser.parse(StyleParser.java:233)
| com.xmlmind.xmleditext.xhtml.csstoxsl.CSSToXSL.annotate(CSSToXSL.java:263)
| com.xmlmind.xmleditext.xhtml.csstoxsl.CSSToXSL.annotate(CSSToXSL.java:285)
| com.xmlmind.xmleditext.xhtml.csstoxsl.CSSToXSL.annotate(CSSToXSL.java:227)
| com.xmlmind.xmleditext.xhtml.csstoxsl.CSSToXSL.process(CSSToXSL.java:122)
| com.xmlmind.xmleditext.xhtml.csstoxsl.CSSToXSL.process(CSSToXSL.java:109)
| com.xmlmind.xslutil.ConvertTask.processXHTML(ConvertTask.java:724)
| com.xmlmind.xslutil.ConvertTask.doRun2(ConvertTask.java:538)
| com.xmlmind.xslutil.ConvertTask.doRun(ConvertTask.java:136)
| com.xmlmind.xslsrv.ConvertJobTask.doRun(ConvertJobTask.java:62)
| com.xmlmind.xslutil.ConvertTask.run(ConvertTask.java:113)
| com.xmlmind.xslsrv.ConvertJob.run(ConvertJob.java:159)
| 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
| 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)


here is xhtml template path 
http://XXX/clientlibrary/demo1/Client%20Documents/eticketdetail.html

need to convert it in pdf

you can check error here

http://web2.eecsoftware.com:8086/xslsrv/exe?



eticketdetail.pdf
Description: Adobe PDF document

--
XMLmind FO Converter Support List
xfc-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xfc-support