-
Notifications
You must be signed in to change notification settings - Fork 383
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
CLDR-14399 move to OpenLiberty, add API server #936
Conversation
@@ -78,6 +78,8 @@ public static String getRelativeFileName(Class<?> class1, String filename) { | |||
return resourceString.substring(5); | |||
} else if (resourceString.startsWith("jar:file:")) { | |||
return resourceString.substring(9); | |||
} else if (resourceString.startsWith("wsjar:file:")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yumaoka did i redo it right?
(context: ICU4J had the exact same bug and fix…)
|
||
@Path("/xpath") | ||
public class XPathAPI { | ||
@GET @Path("{hexId}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yumaoka surveytool gets dragged into the 2010's … :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this API doesn't validate quite yet.
TO SET UP: | ||
Create a "server.env" file next to this xml | ||
(that is, tools/cldr-apps/src/main/liberty/config/server.env) | ||
with the following: | ||
|
||
MYSQL_USER=surveytool | ||
MYSQL_PASSWORD=yourpassword | ||
MYSQL_DB=cldrdb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interim setup instructions…
@btangmu this is now working w/ the DB |
I'll clean this up and get it ready to be a real draft PR… |
0150da1
to
8006220
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
Still need to figure out the deployment mechanism (actions and such). so i guess this is still draft. |
8006220
to
b5655a2
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
09bfdfc
to
0b13d2f
Compare
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
I've quickly looked through the changes and LGTM though I certainly don't understand it all. Seems worthwhile. How should we test? |
|
||
@Path("/xpath") | ||
public class XPathAPI { | ||
@GET @Path("{hexId}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this API doesn't validate quite yet.
@@ -0,0 +1,4 @@ | |||
# copy this to server.env and set the password properly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@btangmu if you copy this file to server.env
(with appropriate DB changes) then you can start the server with mvn -pl cldr-apps liberty:dev
and it will fire up a dev server on port localhost:9080 until you hit control-C ..
0b13d2f
to
a2e2664
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
#936 (comment) says how to do a local test. we should walk through that sometime. |
a2e2664
to
f614e8d
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
f614e8d
to
52d2e8a
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
52d2e8a
to
13c7068
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
13c7068
to
941e7a6
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
941e7a6
to
4a4529d
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
4a4529d
to
0405eb7
Compare
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
This is ready to review.
|
Following …/cldr-apps/README.md, I get:
Does the "CLDRURLS.toHTML" error ring any bells? Is JavaSE 11 really required? |
it sounds like possibly an out of date package. Can you Try running this first:
The liberty:dev may only look at code within cldr-apps for rebuild.
Hm, yes, I think it may be required. CLDR-14311 proposes a bump to 11 LTS. easy way to add it to the command line or eclipse:
|
I switched to java version "11.0.2"
and then
|
Then I pasted into browser address bar: http://192.168.0.120:9080/cldr-apps/
|
it sounds like it might just need a clean build… let's discuss on the call? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't able to get it working in Eclipse. I think we need that before merging this to master.
I tried installing this: https://github.com/OpenLiberty/open-liberty-tools/files/5363408/openlibertytools-20.0.0.9.v2020-10-09_1337-with-fix.zip Referenced from here: OpenLiberty/open-liberty-tools#407 I tried to create a new server by right-clicking in the Servers tab, but Open Liberty isn't one of the options. More links: |
I did the same install.
…On Fri, Jan 22, 2021 at 2:31 PM Tom Bishop ***@***.***> wrote:
I tried installing this:
https://github.com/OpenLiberty/open-liberty-tools/files/5363408/openlibertytools-20.0.0.9.v2020-10-09_1337-with-fix.zip
Referenced from here: OpenLiberty/open-liberty-tools#407
<OpenLiberty/open-liberty-tools#407>
I tried to create a new server by right-clicking in the Servers tab, but
Open Liberty isn't one of the options.
More links:
OpenLiberty/blogs#791 <OpenLiberty/blogs#791>
OpenLiberty/open-liberty-tools#410
<OpenLiberty/open-liberty-tools#410>
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#936 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGQZM5XNSQVF4DSQYMGLLTS3HODXANCNFSM4WDELENQ>
.
|
0405eb7
to
30c24b5
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
30c24b5
to
b3fdd1e
Compare
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
- deployment is now different, but the github action has been updated - for local dev: see cldr-apps/README.md
b3fdd1e
to
07014bf
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since your last change adding "localconnector-1.0" to server.xml (I guess that's what made the difference, though I'm not sure), the server finally appears to be running semi-normally for me in debug mode in Eclipse
The java console does have various errors like:
[WARNING ] table cldr_review_hide_40 did exist.
[ERROR ] J2CA0081E: Method cleanup failed while trying to execute method cleanup on ManagedConnection WSRdbManagedConnectionImpl@7f7753d9 from resource jdbc/SurveyTool. Caught exception: com.ibm.ws.rsadapter.exceptions.DataStoreAdapterException: DSRA0080E: An exception was received by the Data Store Adapter. See original exception message: Cannot call 'cleanup' on a ManagedConnection while it is still in a transaction..
at com.ibm.ws.rsadapter.impl.WSRdbManagedConnectionImpl.cleanupTransactions(WSRdbManagedConnectionImpl.java:3177)
at [internal classes]
at org.unicode.cldr.web.DBUtils.closeDBConnection(DBUtils.java:155)
at org.unicode.cldr.web.DBUtils.close(DBUtils.java:950)
at org.unicode.cldr.web.DBUtils.hasTable(DBUtils.java:479)
at org.unicode.cldr.web.ReviewHide.createTable(ReviewHide.java:29)
at org.unicode.cldr.web.UserRegistry.setupDB(UserRegistry.java:626)
at org.unicode.cldr.web.UserRegistry.createRegistry(UserRegistry.java:586)
@btangmu thanks for the thorough check, lets get this merged and then i'll work on the items mentioned above |
here's the ansible log of updating smoketest… |
CLDR-14399 move to OpenLiberty, add API server