Can't get it to work...

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

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

What version of java are you running?
java 1.5 is required.

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

Will try again later with 1.5

Paul

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)

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

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

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

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)

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

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

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

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.. :)

server.zip (888 Bytes)

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

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)

Good that you got it working… dOesn’t help me though :cry:

none of the buttons work (Company, Contacts etc)

I think this is due to the fact that these buttons normally show a popup, which is not yet supported. I did notice sometimes the related popup seems to be opened in Developer… (???)

The biggest miss (besides not really gettign it to work) for me are SplitPane support, but during the converence I spoke to Jan about it and I think he allready had some idea’s how to add support for them.

Paul

Good that you got it working… dOesn’t help me though

Have you tried doing a completely fresh instal of 3.07 in a new directory - this plus Harjo’s server.xml file has resolved problems for me - until I screw something else up :?

Graham Greensall
Worxinfo Ltd

Yep, a complete fresh installation works fine (as I mentioned before :-) )

It’s just when you install on top of an existing (in my case a 2.2 final) installation that all the URL’s go dead and remain dead whatever I do

Paul

Paul

Sorry I can’t give you solution, but to test I have just opened and closed the three versions of Servoy I’m working on - 2.2 Final b328, rc3 b332, and 3.0a7 b355 - and localhost still working. It would appear that they are not interacting on my machine.

Haven’t been brave enough to test on my Server yet as customers accessing - but will experiment over weekend.

Best of luck

Graham Greensall
Worxinfo Ltd

pbakker:

none of the buttons work (Company, Contacts etc)

I think this is due to the fact that these buttons normally show a popup, which is not yet supported. I did notice sometimes the related popup seems to be opened in Developer… (???)

Thats correct for the Report buttons, while the Companies, Contacts, Actions… are only overlapped by their labels, so they never get the focus.
Clicking on their edges fire them up. Though, despite the fact that in the headers (and in the logs) the requests seems to be sent back correctly (status code 200) the pages in the browser doesn’t change.
It seems like as all the buttons in the navigation panel are sending the same request.

May be the CRM solution is not the best one to start testing on the webClient.

Armando