HC not working using a separate server

The forum to discuss the Headless version of Servoy. Web, Java and Servlet development questions can all be posted here.

Re: HC not working using a separate server

Postby Foobrother » Wed Feb 25, 2009 12:27 pm

I've got some news.

Because of Harjo's question, I've re-installed Servoy on the server with the headless client sample option ticked.
Then, I've tried again my solution, running the client from my laptop, but same result :(
So I've tried to run it on the server using Developer on the server, and it doesn't work as well. However it works using developer on my laptop. :roll:

It means that there is definitely something wrong with the server :cry:
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: HC not working using a separate server

Postby Foobrother » Wed Feb 25, 2009 1:10 pm

Another update!

Now I've setup the Servoy Application Server on my laptop and run the client on the Server machine: it worked!
So, the server has something wrong somewhere :?

And I don't really see any difference between my laptop and the server machine, except that the laptop is running under Vista and the server under Windows server 2003.
Servoy version is exactly the same (same installer file). I'll try to re-install it again on the server machine, with every option ticked to see if there is any difference :roll:
Otherwise I'll have to wipe it and start from scratch :(
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: HC not working using a separate server

Postby Harjo » Wed Feb 25, 2009 8:59 pm

in the past, you needed to install the java JDK instead of the JRE to make the headless client work, because of some tools.jar.
Maybe this is still the case?

I'm not sure......

look here: viewtopic.php?f=25&t=5193&p=25944
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: HC not working using a separate server

Postby Foobrother » Thu Feb 26, 2009 10:37 am

Yesterday I've tried to uninstall the JRE, then install the JDK (with the JRE option).
But it still didn't work. So I have uninstall everything again and reinstall the JDK without the JRE option.
But it still didn't work. :cry:

Today I'll try to wipe the server. And install servoy with all options! (like on my laptop).
Do I need the JRE or the JDK only is enough for Servoy? I not sure but I think in the past I had a Java project where the JDK was needed for the development but then the JRE was need for running it or something like that. :roll:
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: HC not working using a separate server

Postby Foobrother » Thu Feb 26, 2009 12:45 pm

I've just finished to reinstall everything and I get another weird thing: when I checkout solutions in Servoy Developer I don't have the Headless Client Demo in the list.
I had selected everything in the installation options including the headless client example. :shock:

Another question: on my laptop, which is working fine in Developer and Server mode, I've modified my code to work with the database. As a result, the Headless client now makes queries to the database to find which file it has to convert.
This new version is working well using developer. But when I shut it down, start Servoy Application Server service, import the new solution and try it using another machine as client, it gets stuck like when I use the server machine! :(
Exactly the same issue: stuck without any error raised anywhere in any log :evil:
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: HC not working using a separate server

Postby Andrei Costescu » Thu Feb 26, 2009 4:08 pm

Please add a case to the support system that contains the HC solution that does not work.
http://crm.servoy.com/servoy-webclient/solutions/solution/servoy_support

Maybe it's something the solution does... We'll have to see.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm

Re: HC not working using a separate server

Postby Andrei Costescu » Thu Feb 26, 2009 4:47 pm

I also see this in the JSP you initially posted:
Code: Select all
<meta http-equiv="refresh" content="2;url=doc2pdf3.jsp?idnb=<%= request.getParameter("idnb") %>; charset=UTF-8">

Does it work if you remove it or increase the delay before refresh?
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm

Re: HC not working using a separate server

Postby Foobrother » Thu Feb 26, 2009 5:35 pm

I have changed the refresh value to 50 and I have waited 1min but still stuck.

I have posted my problem in the support system. If you have difficulties to run or understand the solution, don't hesitate to ask!

Thanks :)
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: HC not working using a separate server

Postby Foobrother » Fri Feb 27, 2009 11:32 am

I just saw that since the start I didn't have any tools.jar in my lib folder! :oops:

So I've just copied the one of my Java\jdk1.6.0_12\lib, but nothing changed. Still working using Developer but not with server service :(

EDIT: on the server I've reinstalled everything, installed the headleass_client_demo which works perfectly on both developer and server service. I have modified it to make it generate a pdf from a local file (no database and second form used) and it also works perfectly on both developer and server service. I have modified the code again to make it generate a pdf from a source in the database and here is work with developer but not using the server service.

So I'm at the same point as using my laptop now :?
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: HC not working using a separate server

Postby lvostinar » Fri Feb 27, 2009 4:07 pm

If you enable java console there are not any errors there (when running the smart client)? Also maybe there is something different in servoy.properties between server and laptop ?
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1062
Joined: Tue Feb 19, 2008 10:53 am

Re: HC not working using a separate server

Postby Foobrother » Fri Feb 27, 2009 4:41 pm

lvostinar wrote:If you enable java console there are not any errors there (when running the smart client)?

I've tried it with the console ON on both client and server. But on the client there is nothing in the console because everything is done on the Server (by the headless client). And on the server, the console doesn't pop-up but I should get the same stuff has in Tomcat and Servoy logs anyway. :roll:

lvostinar wrote:Also maybe there is something different in servoy.properties between server and laptop ?

I never touched this file "directly" on both machines. But the configuration is the same, as I use the same database, same Servoy and same code. But now I'm at the same stage on both of them anyway: solution works on Developer but not using Server service.


The only difference between the version of my program which works on both modes and the version which causes a problem with the Server service, is the use of a database and the creation of a second form (linked to the table I need) to be able to work with the tables I want.

EDIT: I've modified my code to have only one form, but I get the same result :(
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: HC not working using a separate server

Postby Foobrother » Mon Mar 02, 2009 11:54 am

I've noticed something interesting.

If I don't start Open Office service (service used for the pdf generation), the program will run normaly on both modes (developer and server service). But obviously no file generated!
As soon as I start the Open Office service using this command (typed manually in MS-DOS command line): "soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard", it's not working anymore with the Server service. However it works well using Developer. :roll:
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: HC not working using a separate server

Postby lvostinar » Mon Mar 02, 2009 12:06 pm

Maybe a port conflict then ?
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1062
Joined: Tue Feb 19, 2008 10:53 am

Re: HC not working using a separate server

Postby Foobrother » Mon Mar 02, 2009 12:27 pm

lvostinar wrote:Maybe a port conflict then ?

Actually, I didn't have the port 8100 open on the server. And in fact it shouldn't matter as it is the headless client which is requesting the generation to OpenOffice. So the server itself.
Now it's open, but same problem. :cry:
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: HC not working using a separate server

Postby lvostinar » Mon Mar 02, 2009 2:54 pm

I tried your sample but it works for me (if i don't take the document location from database as that part is missing from solution). So, I just use a test from C:\test.doc and I can transform it to test.pdf . This works from developer and application server. Maybe you can try to modify some network settings to see if it works ? Or try without firewall. Also, I see some errors in the log you sent me; what errors do you have now when running application server ?
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1062
Joined: Tue Feb 19, 2008 10:53 am

PreviousNext

Return to Servoy Headless Client

Who is online

Users browsing this forum: No registered users and 7 guests