MeasureAuthoringTool / MeasureAuthoringTool_LatestSprint

A repo for the latest Sprint of MAT tool.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run

shiv223 opened this issue · comments

commented

Hi Team,
I am trying to setup the application by following the instruction you have provided.But while starting the application i am getting below error.
[ERROR] Hint: Check that the type name 'mat.client.Mat' is really what you meant
[ERROR] Hint: Check that your classpath includes all required source roots

Hi @shiv223. Thanks for your interest in the MAT!

We were not able to recreate your error that you were receiving, however, we did make a change to hopefully make the install process easier. You can find this change in the most recent commit to master. Try pulling the most recent master branch and see if that fixes your issue.

If you could post your logs from the application, run configurations, and the "problems" tab in Eclipse, we can help troubleshoot this issue.

commented

Hi Team,
Thanks for quick response.
Below is the log when i try to start the application.

Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -launcherDir, /Users/sacharya1/homework/MeasureAuthoringTool_LatestSprint-master/mat/mat.Bonnie, -logLevel, INFO, -style, OBFUSCATED, mat.Mat, mat.Login]
Super Dev Mode starting up
workDir: /var/folders/5h/dtn8b35n3nxg400g8q1m5_s8p1q_n1/T/gwt-codeserver-8171921251934859345.tmp
log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Loading Java files in mat.Mat.
Finding entry point classes
[ERROR] Hint: Check that the type name 'mat.client.Mat' is really what you meant
[ERROR] Hint: Check that your classpath includes all required source roots

Though before starting in my configuration were , i have removed one extra war from below argument as it was giving me error
-logLevel INFO -port 8888 -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -codeServerPort 9997 -war mat.Bonnie mat.Mat mat.Login

-Xmx512m -DVSAC_DRC_URL=https://vsac.nlm.nih.gov/vsac -DSERVER_TICKET_URL=https://vsac.nlm.nih.gov/vsac/ws/Ticket -DSERVER_SINGLE_VALUESET_URL=https://vsac.nlm.nih.gov/vsac/ws/RetrieveValueSet? -DSERVER_MULTIPLE_VALUESET_URL_NEW=https://vsac.nlm.nih.gov/vsac/svs/RetrieveMultipleValueSets? -DSERVICE_URL=http://umlsks.nlm.nih.gov -DENVIRONMENT=DEV -Dlog4j.ignoreTCL=true -DPROFILE_SERVICE=https://vsac.nlm.nih.gov/vsac/profiles -DVERSION_SERVICE=https://vsac.nlm.nih.gov/vsac/oid/ -D2FA_AUTH_CLASS=mat.server.twofactorauth.DefaultOTPValidatorForUser -DBONNIE_RESPONSE_TYPE=code -DBONNIE_REDIRECT_URI=https//yourredirectURI.com -DBONNIE_CLIENT_ID=1234567890 -DBONNIE_URI=https://bonnieURL.org -DALGORITHM=EncyptionAlgorithm -DPASSWORDKEY=PasswordKey -Dlog4j.configuration=somepath/log4j.properties

Hi @shiv223,

That extra war argument was one thing that we fixed in the most recent commit and what is pasted into your comment looks like something that could cause the issue you are seeing.

Try using the following:

-logLevel INFO -port 8888 -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -codeServerPort 9997 mat.Login mat.Mat mat.Bonnie -war \war mat.Login mat.Bonnie mat.Mat

Also, have you pulled the current master branch into your local repository?

commented

Hi Team,

Tried with latest code now i am getting error in different part.
Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -launcherDir, /Users/sacharya1/homework/Latest/mat/war, -logLevel, INFO, -style, OBFUSCATED, mat.Login, mat.Mat, mat.Bonnie, mat.Login, mat.Bonnie, mat.Mat] Super Dev Mode starting up workDir: /var/folders/5h/dtn8b35n3nxg400g8q1m5_s8p1q_n1/T/gwt-codeserver-2648441839806572595.tmp log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Loading Java files in mat.Login. Finding entry point classes [ERROR] Hint: Check that the type name 'mat.client.Login' is really what you meant [ERROR] Hint: Check that your classpath includes all required source roots

commented

image

Did you change the run configuration to the one in our previous response? Could you send your run configuration after the update?

The XSL Validations can be ignored. To run them off, you can do the following:

Project -> Properties -> Validation -> Check the Enable project specific settings -> Uncheck XML Schema Validator and XML Validator.

commented

Yes i am running with the updated command.below is the screenshot
image

commented

image

Thank you for sending those screenshots.

In the program argument box (the top one), could you replace the content with the following:

-logLevel INFO -port 8888 -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -codeServerPort 9997 mat.Login mat.Mat mat.Bonnie -war \war mat.Login mat.Bonnie mat.Mat

commented

Hi Team,
Same error after updating the argument
image

It looks like you have the proper run configurations now.

Some other things to check:

Did you install the GWT plugin? If so, when you create a new run configuration, you will need to create a new GWT Development Mode application instead of a Java application.

Did you import the project as a Maven project?

We were able to recreate your issue when we ran the project as a Java Application. Running it as a GWT Development Mode application should fix this issue.

commented

Thanks Team,
That was the problem it seems,
Now i am getting something like this
image
image

This happens when GWT compilation didn't happen.

A couple things to try:

  1. Do a maven update, right click on the project -> Maven -> Update Project, ensure the force update is checked.

  2. Do a project clean -> you can do this by doing Project -> Clean

  3. Go to Project -> Properties -> GWT -> General Settings. Make sure that the GWT SDK version is 2.8.1.

commented

Hi Team,
I followed above steps still i am getting below logs
log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. [WARN] Server class 'org.springframework.web.SpringServletContainerInitializer' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/Users/sacharya1/.m2/repository/org/springframework/spring-web/5.0.6.RELEASE/spring-web-5.0.6.RELEASE.jar' to the web app classpath for this session [WARN] No startup URLs supplied and no plausible ones found -- use -startupUrl

commented

image

Hi @shiv223. Are you running the application in super dev mode? You can check this in the run configurations.

commented

image

This is the mode i am using

commented

Its running in legacy dev mode

@shiv223 Could you try running in super dev mode or do a GWT compile before running the application?

commented

Though i see different console logs this time but no difference in gwt dev mode console
`Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -launcherDir, /Applications/Eclipse.app/Contents/MacOS/war/war, -logLevel, INFO, -style, OBFUSCATED, mat.Login, mat.Mat, mat.Bonnie, mat.Login, mat.Bonnie, mat.Mat]
Super Dev Mode starting up
workDir: /var/folders/5h/dtn8b35n3nxg400g8q1m5_s8p1q_n1/T/gwt-codeserver-6704471671253024166.tmp
log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Loading Java files in mat.Login.
Ignored 8 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Module setup completed in 20394 ms
Loading Java files in mat.Mat.
Ignored 8 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Module setup completed in 2896 ms
Loading Java files in mat.Bonnie.
Ignored 27 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Module setup completed in 2214 ms
Loading Java files in mat.Login.
Ignored 8 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Module setup completed in 1762 ms
Loading Java files in mat.Bonnie.
Ignored 27 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Module setup completed in 1181 ms
Loading Java files in mat.Mat.
Ignored 8 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Module setup completed in 1679 ms

The code server is ready at http://127.0.0.1:9876/
Code server started in 30.60 s ms
[WARN] Server class 'org.springframework.web.SpringServletContainerInitializer' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/Users/sacharya1/.m2/repository/org/springframework/spring-web/5.0.6.RELEASE/spring-web-5.0.6.RELEASE.jar' to the web app classpath for this session
[WARN] No startup URLs supplied and no plausible ones found -- use -startupUrl
`
Do i need to provide any startuo urls?

commented

Is this up now?
image

commented

Still it says
image

commented

While compiling i see below logs also
Rotating PersistentUnitCache file because only 6 files were added. Tracing compile failure path for type 'mat.model.clause.MeasureExport' Errors in 'file:/Users/sacharya1/homework/Latest/mat/src/main/java/mat/model/clause/MeasureExport.java' Line 209: XmlProcessor cannot be resolved to a type Line 210: XmlProcessor cannot be resolved to a type Line 191: XmlProcessor cannot be resolved to a type Line 22: The import mat.hibernate.HibernateConf cannot be resolved Line 91: HibernateConf cannot be resolved Line 192: XmlProcessor cannot be resolved to a type Line 214: XmlProcessor cannot be resolved to a type Line 204: XmlProcessor cannot be resolved to a type Line 201: XmlProcessor cannot be resolved to a type Line 49: XmlProcessor cannot be resolved to a type Line 195: XmlProcessor cannot be resolved to a type Line 213: XmlProcessor cannot be resolved to a type Line 205: XmlProcessor cannot be resolved to a type Line 51: XmlProcessor cannot be resolved to a type Line 47: XmlProcessor cannot be resolved to a type Line 200: XmlProcessor cannot be resolved to a type Line 196: XmlProcessor cannot be resolved to a type Line 23: The import mat.server.util.XmlProcessor cannot be resolved Checked 1 dependencies for errors. Tracing compile failure path for type 'mat.shared.FileInfomationObject' Errors in 'file:/Users/sacharya1/homework/Latest/mat/src/main/java/mat/shared/FileInfomationObject.java' Line 7: No source code is available for type org.apache.http.entity.ContentType; did you forget to inherit a required module? Checked 1 dependencies for errors. Tracing compile failure path for type 'mat.model.cql.validator.CQLIncludeLibraryValidator' Errors in 'file:/Users/sacharya1/homework/Latest/mat/src/main/java/mat/model/cql/validator/CQLIncludeLibraryValidator.java' Line 33: The method setValid(boolean) is undefined for the type CQLIncludeLibraryValidator Line 6: The import mat.server.util.CQLValidationUtil cannot be resolved Line 16: The method setValid(boolean) is undefined for the type CQLIncludeLibraryValidator Line 32: The method getMessages() is undefined for the type CQLIncludeLibraryValidator Line 51: CQLValidationUtil cannot be resolved Line 58: CQLValidationUtil cannot be resolved Line 9: Validator cannot be resolved to a type Line 44: CQLValidationUtil cannot be resolved Line 5: The import mat.server.Validator cannot be resolved Checked 1 dependencies for errors. Tracing compile failure path for type 'mat.client.measure.service.CQLService' Errors in 'file:/Users/sacharya1/homework/Latest/mat/src/main/java/mat/client/measure/service/CQLService.java' Line 194: CQLLinterConfig cannot be resolved to a type Line 23: The import mat.server.cqlparser.CQLLinterConfig cannot be resolved Checked 1 dependencies for errors. Tracing compile failure path for type 'mat.model.clause.CQLLibrary' Errors in 'file:/Users/sacharya1/homework/Latest/mat/src/main/java/mat/model/clause/CQLLibrary.java' Line 157: HibernateConf cannot be resolved Line 27: The import mat.hibernate.HibernateConf cannot be resolved Line 292: LocalDateTime cannot be resolved to a type Line 61: LocalDateTime cannot be resolved to a type Line 295: LocalDateTime cannot be resolved to a type Line 296: LocalDateTime cannot be resolved to a type Line 291: LocalDateTime cannot be resolved to a type Line 9: The import java.time cannot be resolved Checked 1 dependencies for errors. Tracing compile failure path for type 'mat.model.clause.MeasureXML' Errors in 'file:/Users/sacharya1/homework/Latest/mat/src/main/java/mat/model/clause/MeasureXML.java' Line 84: HibernateConf cannot be resolved Line 20: The import mat.hibernate.HibernateConf cannot be resolved Checked 1 dependencies for errors. Tracing compile failure path for type 'mat.model.MeasureValidationLog' Errors in 'file:/Users/sacharya1/homework/Latest/mat/src/main/java/mat/model/MeasureValidationLog.java' Line 120: No source code is available for type java.sql.SQLException; did you forget to inherit a required module? Line 120: No source code is available for type java.sql.Blob; did you forget to inherit a required module? Checked 1 dependencies for errors. Tracing compile failure path for type 'mat.shared.DateUtility' Errors in 'file:/Users/sacharya1/homework/Latest/mat/src/main/java/mat/shared/DateUtility.java' Line 135: No source code is available for type java.util.Calendar; did you forget to inherit a required module? Line 27: No source code is available for type java.text.SimpleDateFormat; did you forget to inherit a required module? Line 135: No source code is available for type java.util.GregorianCalendar; did you forget to inherit a required module? Checked 1 dependencies for errors.

It looks like you are using GWT Development Mode (CodeServer) instead of GWT Development Mode(DevMode).

Inside GWT Development Mode (DevMode), you find super dev mode.

commented

No i am currently using GWT Development Mode (DevMode) in super dev mode,
Below is the screenshot
image

Hi @shiv223,

We're not sure how to recreate the issue you are encountering. Due to some of the other errors that you encountered before, it might be a good idea to delete this project and re-import it a clean workspace in Eclipse.

We were able to go through the installation process without issues. We've attached some screenshots to maybe help with troubleshooting.

image

image

image

commented

One last question is there any specific reason why in my system the project is containing with so many errors?
image

commented

HI Team,
Right now i think i am able to run the mat application.Below is the screen i am getting now.
Is it correct one?
image
and in console i am getting this below warning
`Starting Jetty on port 8888
[WARN] Failed startup of context c.g.g.d.s.j.WebAppContextWithReload@6e40d2da{/,file:/Users/sacharya1/git/MeasureAuthoringTool_LatestSprint/mat/war/,STARTING}{/Users/sacharya1/git/MeasureAuthoringTool_LatestSprint/mat/war}
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]
Offending resource: ServletContext resource [/WEB-INF/applicationContext-security.xml]

at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:72)`

After clicking on login.html it says service is not available
image

It will be great of you , if you guys can help on this.