Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile this project? #1

Open
arne-cl opened this issue Oct 6, 2015 · 7 comments
Open

How to compile this project? #1

arne-cl opened this issue Oct 6, 2015 · 7 comments

Comments

@arne-cl
Copy link

arne-cl commented Oct 6, 2015

Hi,

is there some way to compile this without having to install Eclipse?

Best regards,
Arne

@chris1010010
Copy link
Contributor

Hi,
Not that I know of. We use Eclipse (Kepler) with GWT plugin. Perhaps GWT has some documentation on how to compile using command line only.

Best regards,
Christian

@gmeligio
Copy link

Hi,
I'm trying to compile it with IntelliJ Idea but I'm getting the error
Error:(28, 41) java: cannot find symbol
symbol: class GwtDecimalFormatter
location: package org.primaresearch.shared.variable
Error:(181, 54) java: cannot find symbol
symbol: class GwtDecimalFormatter
location: class org.primaresearch.web.layouteditor.client.WebLayoutEditor
I search in prima-core-libs but there is not GwtDecimalFormatter class. Where I can find this class. I would appreciate some help.

Best regards,
Eligio

@chris1010010
Copy link
Contributor

chris1010010 commented Jul 23, 2017 via email

@bertsky
Copy link

bertsky commented Nov 13, 2020

I have cloned prima-gwt-lib and tried to import in Eclipse (with the GWT Eclipse Plugin V3, which bundles GWT 2.7.0 and 2.8.0 SDK), but get the following build errors from it:

The GWT SDK JAR gwt-servlet.jar is missing in the WEB-INF/lib directory	WEB-INF	/PrimaGwt/war
The web.xml file does not exist	WEB-INF	/PrimaGwt/war
Project 'PrimaGwt' is missing required library: 'lib/google-gson-2.2.2/gson-2.2.2.jar'
Project 'PrimaGwt' is missing required library: 'lib/mysql-connector-java-5.1.23/mysql-connector-java-5.1.23-bin.jar'
Project 'PrimaGwt' is missing required source folder: 'test'

If Eclipse is the only way to build this (and other PRImA components), and there are no prebuilt releases, then there should be at least some documentation for it. It's not straightforward (but I'm not a regular Eclipse user).

@bertsky
Copy link

bertsky commented May 20, 2021

I have cloned prima-gwt-lib and tried to import in Eclipse (with the GWT Eclipse Plugin V3, which bundles GWT 2.7.0 and 2.8.0 SDK), but get the following build errors from it:

Dug deeper: PRImA-Research-Lab/prima-gwt-lib#1 – still need help.

@chris1010010
Copy link
Contributor

Good morning, I've added a release with resources and war file

@bertsky
Copy link

bertsky commented May 25, 2021

I've added a release with resources and war file

Thank you very much!

I figured I now just had to:

  • install apache2 libapache2-mod-php tomcat8 openjdk-8-jre

  • adapt the local URL (to my Tomcat installation):

    sed -i "s,http://localhost:8888/WebLayoutEditor.html,http://localhost:8081/WebLayoutEditor," emop-dataset/config.inc
    
  • remove the authentication (because mcrypt is no longer supported by recent PHP):

    sed -i "/createAuthenticationToken/s,^,//,;/targeturl/s,[$]authenticationToken,," emop-dataset/gateway.php
    
  • copy the files into the server directories:

    sudo cp WebLayoutEditor.war /var/lib/tomcat8/webapps/
    sudo cp -r emop-dataset/ /var/www/html/
    
  • start tomcat and apache

  • open http://localhost/emop-dataset and click Using localhost

However, I still get Logon failed from Tomcat, and Apache's error.log shows:

[client 127.0.0.1:36212] PHP Notice:  Undefined variable: Did in /var/www/html/index.php on line 40
[client 127.0.0.1:36212] PHP Notice:  Undefined variable: Aid in /var/www/html/index.php on line 50
[client 127.0.0.1:36212] PHP Notice:  Undefined variable: Aid in /var/www/html/index.php on line 51
[client 127.0.0.1:36212] PHP Notice:  Undefined variable: Aid in /var/www/html/index.php on line 54
[client 127.0.0.1:36212] PHP Notice:  Undefined variable: Aid in /var/www/html/index.php on line 59
[client 127.0.0.1:36212] PHP Notice:  Undefined index:  in /var/www/html/gateway.php on line 12

Is this just a matter of migrating to newer PHP?

If you have any hints what might be going on, please help. (I'm volunteering to funnel the results into a documentation PR once I succeed.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants