Can't get it to work...

Forum to discuss the Web client version of Servoy.

Can't get it to work...

Postby ellenmeserow » Thu Sep 29, 2005 3:27 pm

I've installed 3.0a4 as a separate Servoy install on my mac, connected to my 2.2 sybase repository, created a test solution in it, went to my webbrowser and tried to go to http://localhost:8080/servoy-webclient but I get nothing. Tried Firefox and Safari. I can go to http://localhost/ so it's not a firewall issue... What am I doing wrong?

ellenmeserow
ellenmeserow
 
Posts: 366
Joined: Sat Aug 07, 2004 10:18 pm
Location: Seattle, WA USA

Postby pbakker » Thu Sep 29, 2005 4:39 pm

downloaded it as well, made a copy of my existing 2.2 final installation and installed the Alpha on top of it.

Then started Servoy Developer. Couple of things I saw happening:
- Loads of errors in the console
- Tried to open one of my complex solutions (with many splitPaneBenas/ToolBarBeans etc) in developer, but I got loads of errors
- Opened a simple solution in developer and that went fine
- Tried to go to the localhost url where I hoped to find the Webclient, but the local host didn't respond at all anymore. also the other Servoy pages there could not be accessed anymore.

All together, I had no success getting it up[ and running so far.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby maarten » Thu Sep 29, 2005 4:40 pm

What version of java are you running?
java 1.5 is required.
Maarten Berkenbosch
User avatar
maarten
 
Posts: 797
Joined: Wed Apr 23, 2003 10:52 pm
Location: Amersfoort, Netherlands

Postby pbakker » Thu Sep 29, 2005 4:49 pm

Aha, that would explain a lot. I'm on 1.4.2...

Will try again later with 1.5

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby pbakker » Fri Sep 30, 2005 9:10 am

1.5 did the trick. Got a clean installation running on 1.5 up and running. Checked out the CRM demo in the WebClient etc, looked good.

Imported a simple solution of myself, also worked fine.

Then imported a more complex solution, started it in Developer and got a lot of errors. I traced those back to the following:
In Servoy 2.2.1 and before, if you would pass forms['formname'] as a parameter to a plugin function that would take a JComponent object as parameter, it worked fine. The "forms['formname']" would give a pointer to the Java component that is the Servoy form. This behavior seems to have changed, because now I get errors like:
Cannot convert FormController[form: products, fs size:2, selected record: Record[DATA:Row[DATA:81,Menu Plugin Client License,2004-01-12 00:00:00.0,pbakker,2005-05-01 11:57:42.87,pbakker,2004-01-01 00:00:00.0,null,2,1, CALCULATIONS: {productname_translation=null, var1=null, table_entitytype=2}]] COLUMS: productid,productname,createdate,createdby,updatedate,updatedby,startdate,enddate,productgroupid,companyid,] to javax.swing.JComponent


Is my assumption correct that this is not supported anymore (in this way)? Is there another way to achieve the same?

In the Webclient this solution is completely screwed up, maybe because of the errors I also get in Developer, maybe because of the fact that this solution is using the technique of (hidden) TabPanels inside JSplitPane beans heavily.

Besides doing this testing on a fresh installation of Servoy 3.0a7, I also installed 3.0a7 on top of a copy of my 2.2 final installation. The installation went fine, but when I start Developer to get the server up and running and then go to the localhost url's Servoy hosts (index.html, servoy-admin, servoy-webclient etc), I only get error messages that the pages cannot be displayed. (Yes, this version is also running on Java 1.5 :) )

I see the following in the console, before I open any solution in Developer:
[main] - Creating new class loader
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\catalina-optional.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\catalina.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\commons-el.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\commons-modeler.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\jakarta-regexp-1.2.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\jasper-compiler.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\jasper-runtime.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\jsp-api.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\naming-factory.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\servlets-common.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\servlets-default.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\servlets-invoker.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\servlets-manager.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\servlets-snoop.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\servlets-webdav.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\template-handler.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\tomcat-ajp.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\tomcat-coyote.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\tomcat-http.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\tomcat-util.jar
[main] - Including jar file C:\Program Files\Servoy30A7\server\lib\warp.jar
[main] - Loading startup class
[main] - Setting startup class properties
[main] - Setting naming prefix=org.apache.naming
[main] - addRuleSet() with no namespace URI
[main] - addRuleSet() with no namespace URI
[main] - addRuleSet() with no namespace URI
[main] - addRuleSet() with no namespace URI
[main] - addRuleSet() with no namespace URI
[main] - addRuleSet() with no namespace URI
[main] - Digester for server.xml created 200
[main] - Parse Fatal Error at line -1 column -1: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at org.apache.catalina.startup.Catalina.load(Catalina.java:473)
at org.apache.catalina.startup.Catalina.start(Catalina.java:529)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.servoy.j2db.server.WebServer.startWebServer(Unknown Source)
at com.servoy.j2db.server.ApplicationServer.startWebServer(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.byte(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.for(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.servoy.j2db.startup.Bootstrap.main(Bootstrap.java:119)
at Servoy.main(Servoy.java:28)
[main] - Catalina.start using conf/server.xml:
org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at org.apache.catalina.startup.Catalina.load(Catalina.java:473)
at org.apache.catalina.startup.Catalina.start(Catalina.java:529)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.servoy.j2db.server.WebServer.startWebServer(Unknown Source)
at com.servoy.j2db.server.ApplicationServer.startWebServer(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.byte(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.for(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.servoy.j2db.startup.Bootstrap.main(Bootstrap.java:119)
at Servoy.main(Servoy.java:28)
[main] - Server startup in 0 ms
[TaskExecuter[3]] - Using dialect: net.sf.hibernate.dialect.Oracle9Dialect
[TaskExecuter[3]] - Using dialect: net.sf.hibernate.dialect.Oracle9Dialect


Any idea's?

Paul

PS: I hope this is the kind of feedback you expect here. If not, let me know and I'll shut up... 8)
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby pbakker » Fri Sep 30, 2005 7:21 pm

Well, I'll just continue to post my findings... :)

I got a bit further with the issue that all the URL's didn't work. Turns out that the server.xml was empty. I took a copy of it from the clean install folder and placed it into the folder where I installed 3.0a7 on top of 2.2final. The error I posted went away, but still the URL's do not work. No idea now how to continue...

In the clean installation, I commented out all code that passes forms['formname'] to a plugin. Now the solution starts properly in Developer. If I go to the webclient URL, I can also open the same solution, but it seems that TabPanels inside JSplitPane beans isn't supported (yet). Therefor, this particular solution doesn't really look like anything...

My findings so far...

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby Westy » Sun Oct 02, 2005 8:21 pm

Servoy Web Client generates HTML templates from a Form, which can be edited by a web designer

Should the HTML templates that are generated be visable on the server at:
"c:\program files\servoy\server\webapps\ROOT\servoy-webclient\templates\default\crm" ? I can not see them.

The only way I can see them is at:
"http://localhost:8080/servoy-webclient/templates/default/crm"
Westy
 
Posts: 852
Joined: Fri Feb 13, 2004 5:27 am
Location: Lynnfield, Massachusetts USA

Postby Harjo » Sun Oct 02, 2005 11:41 pm

No, that's webDAV technology. The files are not really there.
You can edit them with Dreamweaver, with the webDAV option on.
If you save than save them, than the file is physicly there
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

Postby grahamg » Mon Oct 03, 2005 12:03 am

Started to experiment with web client but now have a problem that when I try to connect to http://localhost:8080/servoy-webclient always get message: "The connection was refused when attempting to contact localhost:8080". Get similar message when trying just http://localhost/

I can ping localhost and 127.0.0.1 and localhost is defined in C:\windows\system32\drivers\etc\hosts

What have I done ?? :?

Graham Greensall
Worxinfo Ltd

Servoy Developer
Version 3.0a7-build 355
Java version 1.5.0_02-b09 (Windows XP)
grahamg
 
Posts: 752
Joined: Fri Oct 03, 2003 3:15 pm
Location: Midlands UK

Postby bruno » Mon Oct 03, 2005 11:42 pm

Graham, what port is your Developer running? Is it 8080? This error message says that the web service cannot be found.

What happen if you connect to http://localhost:8080 ?

Do you have a firewall active and running?


Bruno
User avatar
bruno
 
Posts: 29
Joined: Fri Jan 23, 2004 3:26 pm
Location: Munich, Germany

Postby grahamg » Tue Oct 04, 2005 12:20 am

Hi Bruno

Thanks for suggestions - had tried switching Firewall off but no difference. http://localhost:8080 also produced the error message.

During Bob's presentation I had made some notes including "Uncheck HTTP" - thought this might be the problem but switched back on again and no difference.

Have re-installed with default Preferences/Services settings and IT WORKS. But doesn't look right:

HTTP port = -1
Data service = 127.0.0.1
RMI = 1099
2 way socket = ticked
SSL support = ticked
data & http service in developer = ticked

Bob - when you've completed detox after a week of being forced to drink by unruly Servoyans could you post some notes on setups.

Thanks

Graham Greensall
Worxinfo Ltd
grahamg
 
Posts: 752
Joined: Fri Oct 03, 2003 3:15 pm
Location: Midlands UK

Postby pbakker » Tue Oct 04, 2005 8:01 am

As far as I remember, the comment of Bob about "Uncheck HTTP" had to do about running both Servoy Server and Servoy Developer on the same machine.

Basically, the experience Graham describes is the same as I have: When I install 3.0A7 on top of an existing installation (2.2 final) all the URL's of Servoy on the localhost go dead.

I also noticed "HTTP port = -1 " under preferences, but when I exit Servoy, alter the servoy.properties manually so that HTTP port = 8080 again and restart Servoy, that doesn't solve the problem.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby Harjo » Tue Oct 04, 2005 8:10 am

I spoke to Jan, yesterday, and there is still a bug in assigning the port number. If you mess with that, the server.xml file will become empty.
You can't use another one, because there where some significant changes in there. I have attached the working server.xml

drop it in your Servoy folder: /server/conf

start Servoy and don't touch the http setting again. It works for me.. :)
You do not have the required permissions to view the files attached to this post.
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

Postby pbakker » Tue Oct 04, 2005 9:06 am

Hi HJK,

Copying the server.xml from a fresh installation of the 3.0a7 was something I did before and that didn't solve the problem. I've now placed your server.xml in the ../server/conf/ directory, but unfortunally, that didn't solve the issue either.

Right after I copied your file to the correct location I started Developer, didn't open a solution and went to the URL.

When I to to any of the local host URL's (for example: http://localhost:8080/index.html) I get the following error message:
HTTP 404 - File not found
Internet Explorer


If I look at the preferences in Servoy, I see the HTTP Port is set to -1 again.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby grahamg » Tue Oct 04, 2005 9:38 am

Paul, thanks for clarifying the 'uncheck HTTP' issue.

Bob, it was my mistake and does not reflect on your EXCELLENT presentation - except maybe next time could we have simultaneous translation into English of your 'European voice' :)

Harjo, downloaded the server.xml file and works fine for me.

Paul, I also still have some issues with 'localhost' - http://localhost:8080/index.html) shows the 'Lauch Servoy Client' screen and then appears to start the servoy_client.jnlp download but nothing happens.

A few immediate notes using the CRM demo in browser:

- none of the buttons work (Company, Contacts etc)
- search boxes do not work
- must have Developer running or get 'connection refused' error - however do not need to load/select a solution

+ drop-down combo boxes work
+ tabs work
+ forward/back works
+ add address works

Already looking awesome technology - now for some testing of my own work :evil:


Graham Greensall
Worxinfo Ltd

Servoy Developer
Version 3.0a7-build 355
Java version 1.5.0_02-b09 (Windows XP)
grahamg
 
Posts: 752
Joined: Fri Oct 03, 2003 3:15 pm
Location: Midlands UK

Next

Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 9 guests