Error when attempting to install local web-based version of NHCS test tool

25 views
Skip to first unread message

earld...@gmail.com

unread,
Feb 7, 2019, 7:59:52 PM2/7/19
to National Health Care Survey Testing Tool
Greetings,

I am attempting to install a local web-based version of the NHCS Test Tool, and am encountering an error. The following steps were performed:

  • Installed Tomcat version 7 and Tomcat Manager on Ubuntu 16.04
  • Downloaded nhcsValidation12-1.1-20171108.tar.gz and extracted contents
  • Used Tomcat 7 Manager to deploy validationNHCS12.war
  • Navigated to the WEB-INF folder for the webapp and edited lines in web.xml to the proper path as instructed in the README
  • Restarted Tomcat
  • Launched the web-based validator application in a web browser
  • Clicked “Browse” (on Step 1) and selected a file for validation
  • Clicked “Validate” (on Step 2)
At this point, I receive the following error message from Tomcat:

HTTP Status 500 - /validationNHCS12/validationResultXml.jsp (line: 1, column: 63) The value for the useBean class attribute gov.nist.mu.validation.ValidationHelper is invalid.

Any help in understanding the error message and how to resolve this would be much appreciated.

Thank you,

Earl Evans (Drummond Group)


McCaffrey, Andrew (Fed)

unread,
Feb 8, 2019, 11:20:15 AM2/8/19
to earld...@gmail.com, National Health Care Survey Testing Tool
Hi,

Can you post any relevant messages in the catalina.out log file from
when this error occurs?

Thanks,
-Andrew

On 2/7/19 7:59 PM, earld...@gmail.com wrote:
> Greetings,
>
> I am attempting to install a local web-based version of the NHCS Test
> Tool, and am encountering an error. The following steps were performed:
>
> * Installed Tomcat version 7 and Tomcat Manager on Ubuntu 16.04
> * Downloaded nhcsValidation12-1.1-20171108.tar.gz and extracted contents
> * Used Tomcat 7 Manager to deploy validationNHCS12.war
> * Navigated to the WEB-INF folder for the webapp and edited lines in
> web.xml to the proper path as instructed in the README
> * Restarted Tomcat
> * Launched the web-based validator application in a web browser
> * Clicked “Browse” (on Step 1) and selected a file for validation
> * Clicked “Validate” (on Step 2)
>
> At this point, I receive the following error message from Tomcat:
>
> *HTTP Status 500 - /validationNHCS12/validationResultXml.jsp (line: 1,
> column: 63) The value for the useBean class attribute
> gov.nist.mu.validation.ValidationHelper is invalid.*
>
> Any help in understanding the error message and how to resolve this
> would be much appreciated.
>
> Thank you,
>
> Earl Evans (Drummond Group)
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "National Health Care Survey Testing Tool" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
> national-health-care-surve...@googlegroups.com
> <mailto:national-health-care-surve...@googlegroups.com>.
> To post to this group, send email to
> national-health-care...@googlegroups.com
> <mailto:national-health-care...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/national-health-care-survey-testing-tool/a46ec9d2-892f-42c8-915c-8310d73ecebd%40googlegroups.com
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fnational-health-care-survey-testing-tool%2Fa46ec9d2-892f-42c8-915c-8310d73ecebd%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C9435112be382486df73a08d68d60c3a5%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636851844082036475&sdata=pGY5OnW522aYDbj16sHOlKRXd7b7BprtpHsN066rGf8%3D&reserved=0>.
> For more options, visit https://groups.google.com/d/optout
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C9435112be382486df73a08d68d60c3a5%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636851844082046482&sdata=O22MlvvMXdd79nfJQdeKg3ei1Se1L%2Bi0nRxjqVXdI5Y%3D&reserved=0>.

earld...@gmail.com

unread,
Feb 8, 2019, 12:02:20 PM2/8/19
to National Health Care Survey Testing Tool


On Friday, February 8, 2019 at 8:20:15 AM UTC-8, Andrew McCaffrey wrote:
Hi,

Can you post any relevant messages in the catalina.out log file from
when this error occurs?

Thanks,
-Andrew


There does not appear to be any indication of this in the catalina.out file; however, there is an entry in the localhost log file:

Feb 08, 2019 8:54:22 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [/validationNHCS12] threw exception [/validationNHCS12/validationResultXml.jsp (line: 1, column: 63) The value for the useBean class attribute gov.nist.mu.validation.ValidationHelper is invalid.] with root cause
org.apache.jasper.JasperException: /validationNHCS12/validationResultXml.jsp (line: 1, column: 63) The value for the useBean class attribute gov.nist.mu.validation.ValidationHelper is invalid.
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:43)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:443)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:149)
at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1305)
at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1196)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2444)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2450)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:474)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392)
at org.apache.jasper.compiler.Generator.generate(Generator.java:3581)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:251)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:400)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:344)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:221)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

Thank you very much,

- Earl
 

Earl Evans

unread,
Feb 8, 2019, 12:06:13 PM2/8/19
to National Health Care Survey Testing Tool
On Fri, Feb 8, 2019 at 9:02 AM <earld...@gmail.com> wrote:


On Friday, February 8, 2019 at 8:20:15 AM UTC-8, Andrew McCaffrey wrote:
Hi,

Can you post any relevant messages in the catalina.out log file from
when this error occurs?

Thanks,
-Andrew




As a follow-up to this, would it be possible to post a quick bullet-point review of the installation process. The README indicates a deploy of the WAR file and editing of the web.xml file - I would like to ensure I'm not missing any steps in the process.

Thanks very much,

- Earl
 

McCaffrey, Andrew (Fed)

unread,
Feb 8, 2019, 4:59:33 PM2/8/19
to earld...@gmail.com, National Health Care Survey Testing Tool
Just as a sanity check, did you restart Tomcat after editing the web.xml
file? What version of Java are you running?

Can you verify that the war deployed correctly and that
WEB-INF/classes/gov/nist/mu/validation/ contains
SchemaValidationErrorHandler.class, ValidationHelper.class and
Validator.class?

Alternatively, can you remove the current installation by deleting the
war file and its directory and try installing the app manually without
using Tomcat Manager (i.e. by copying the .war file into the webapps
directory)?

Thanks,
-Andrew
> --
> You received this message because you are subscribed to the Google
> Groups "National Health Care Survey Testing Tool" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
> national-health-care-surve...@googlegroups.com
> <mailto:national-health-care-surve...@googlegroups.com>.
> To post to this group, send email to
> national-health-care...@googlegroups.com
> <mailto:national-health-care...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/national-health-care-survey-testing-tool/ad9a5b7b-330c-4caa-bec2-db37280a43ac%40googlegroups.com
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fnational-health-care-survey-testing-tool%2Fad9a5b7b-330c-4caa-bec2-db37280a43ac%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C391e7dad052144f6c0f908d68de73a60%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636852421586271495&sdata=nn6coK7CY242u0adiv4cevpvrWtF3Znfb00xkxpCN6Q%3D&reserved=0>.
> For more options, visit https://groups.google.com/d/optout
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C391e7dad052144f6c0f908d68de73a60%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636852421586281491&sdata=qBSH%2FvOcdCPP06ZyvH1eTjiG1fo2SxkerMAoY8URNXQ%3D&reserved=0>.

earld...@gmail.com

unread,
Feb 8, 2019, 7:12:22 PM2/8/19
to National Health Care Survey Testing Tool

On Friday, February 8, 2019 at 1:59:33 PM UTC-8, Andrew McCaffrey wrote:
Just as a sanity check, did you restart Tomcat after editing the web.xml
file?  What version of Java are you running?

I did restart Tomcat following the editing of web.xml.

Java version:
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
 

Can you verify that the war deployed correctly and that
WEB-INF/classes/gov/nist/mu/validation/ contains
SchemaValidationErrorHandler.class, ValidationHelper.class and
Validator.class?

The Tomcat manager UI seems to indicate that the WAR deployed and is operational.

The folder you reference appears to contain those class files:
user@system:/var/lib/tomcat7/webapps/validationNHCS12/validationNHCS12/WEB-INF/classes/gov/nist/mu/validation$ ls
SchemaValidationErrorHandler.class  ValidationHelper.class  Validator.class
 
Alternatively, can you remove the current installation by deleting the
war file and its directory and try installing the app manually without
using Tomcat Manager (i.e. by copying the .war file into the webapps
directory)?

I also attempted this method of deployment, with the same result.

Thank you very much for your continued assistance,

- Earl

McCaffrey, Andrew (Fed)

unread,
Feb 12, 2019, 2:26:00 PM2/12/19
to earld...@gmail.com, National Health Care Survey Testing Tool
Hmmmmmmmm... Running out of things to try. When the app is deployed,
does the catalina.out file show that the deploy was successful? Are
there any indications that it is running correctly before the crash?

Looking around, I've found a few references such as this:
<https://code.i-harness.com/en/q/2e267b> It suggests using "type"
instead of "class" in the jsp.

Try editing validationResultXml.jsp so that it reads

type="gov.nist.mu.validation.ValidationHelper"

instead of

class="gov.nist.mu.validation.ValidationHelper"

Thanks,
-Andrew
> --
> You received this message because you are subscribed to the Google
> Groups "National Health Care Survey Testing Tool" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
> national-health-care-surve...@googlegroups.com
> <mailto:national-health-care-surve...@googlegroups.com>.
> To post to this group, send email to
> national-health-care...@googlegroups.com
> <mailto:national-health-care...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/national-health-care-survey-testing-tool/b0c9d6e5-80ab-41f6-8af9-0b3e6a85161e%40googlegroups.com
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fnational-health-care-survey-testing-tool%2Fb0c9d6e5-80ab-41f6-8af9-0b3e6a85161e%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C0a38b08ee0014e20c85d08d68e234b8b%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636852679577015596&sdata=hnqEsNu1%2FichXWYEQrdYXAYd2enokd1chS2ofcOQZ4c%3D&reserved=0>.
> For more options, visit https://groups.google.com/d/optout
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C0a38b08ee0014e20c85d08d68e234b8b%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636852679577035617&sdata=KGvji%2BDRp4CW86g85gU9XNXs%2BOQuCPwN3OMitU8tb1o%3D&reserved=0>.

earld...@gmail.com

unread,
Feb 20, 2019, 1:35:57 PM2/20/19
to National Health Care Survey Testing Tool


On Tuesday, February 12, 2019 at 11:26:00 AM UTC-8, Andrew McCaffrey wrote:
Hmmmmmmmm...  Running out of things to try.  When the app is deployed,
does the catalina.out file show that the deploy was successful?  Are
there any indications that it is running correctly before the crash?


I'm wondering if this is a platform issue somehow. Can you provide a description of a known working stack (OS, Tomcat, Java versions), and I'll set up the platform accordingly?

Thanks very much for your continued help on this,

- Earl
 

McCaffrey, Andrew (Fed)

unread,
Feb 22, 2019, 3:58:12 PM2/22/19
to earld...@gmail.com, National Health Care Survey Testing Tool
Hi,

There's a copy running with:

CentOS release 6.10
Java version "1.8.0_172"
Tomcat 7.0.86

Another is running

Ubuntu 16.04
Java version "1.8.0_191"
Tomcat 8.5.12

-Andrew
> --
> You received this message because you are subscribed to the Google
> Groups "National Health Care Survey Testing Tool" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
> national-health-care-surve...@googlegroups.com
> <mailto:national-health-care-surve...@googlegroups.com>.
> To post to this group, send email to
> national-health-care...@googlegroups.com
> <mailto:national-health-care...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/national-health-care-survey-testing-tool/5defb86e-89c6-4753-8d73-c6764e583631%40googlegroups.com
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fnational-health-care-survey-testing-tool%2F5defb86e-89c6-4753-8d73-c6764e583631%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C34c244f418864871a81e08d6976248a2%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636862845716217822&sdata=fLidrMqMBQU3qOhCIT%2B2N%2BL1T44dSGgRufrL2OxzXiQ%3D&reserved=0>.
> For more options, visit https://groups.google.com/d/optout
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C34c244f418864871a81e08d6976248a2%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636862845716227830&sdata=aJtCIiIZ4UY56dUTsejdlx2gyvkhXXgx2P1vO78qOtM%3D&reserved=0>.

earld...@gmail.com

unread,
Feb 26, 2019, 11:15:51 AM2/26/19
to National Health Care Survey Testing Tool


On Friday, February 22, 2019 at 12:58:12 PM UTC-8, Andrew McCaffrey wrote:
Hi,

There's a copy running with:

CentOS release 6.10
Java version "1.8.0_172"
Tomcat 7.0.86

Another is running

Ubuntu 16.04
Java version "1.8.0_191"
Tomcat 8.5.12



I tried with a very similar platform and the result still failed:

Ubuntu 16.04
java version "1.8.0_201"
Tomcat 8.5.38

I'm now wondering if something is not right with the deploy. When I copy the WAR file into the webapps folder and restart Tomcat (or do a deploy with the Manager application), the validationNHCS12 appears twice (nested) in the path:

/var/lib/tomcat7/webapps/validationNHCS12/validationNHCS12/

Note that this differs from the paths expected in the web.xml file, where only one validationNHCS12 folder is shown, not two nested folders of the same name. Could this be causing the problem?

- Earl

 

McCaffrey, Andrew (Fed)

unread,
Feb 26, 2019, 5:46:52 PM2/26/19
to earld...@gmail.com, National Health Care Survey Testing Tool
Hi,

I've never seen that behavior before, but that could definitely be
causing a problem if it means that Tomcat can't find the correct
location for the WEB-INF/classes/ path... Can you try copying the
directory "up" one level so that there is a

/var/lib/tomcat7/webapps/validationNHCS12/WEB-INF/classes path?

-Andrew

On 2/26/19 11:15 AM, earld...@gmail.com wrote:
>
>
> On Friday, February 22, 2019 at 12:58:12 PM UTC-8, Andrew McCaffrey wrote:
>
> Hi,
>
> There's a copy running with:
>
> CentOS release 6.10
> Java version "1.8.0_172"
> Tomcat 7.0.86
>
> Another is running
>
> Ubuntu 16.04
> Java version "1.8.0_191"
> Tomcat 8.5.12
>
>
>
> I tried with a very similar platform and the result still failed:
>
> Ubuntu 16.04
> java version "1.8.0_201"
> Tomcat 8.5.38
>
> I'm now wondering if something is not right with the deploy. When I copy
> the WAR file into the webapps folder and restart Tomcat (or do a deploy
> with the Manager application), the validationNHCS12 appears twice
> (nested) in the path:
>
> /var/lib/tomcat7/webapps/*validationNHCS12/**validationNHCS12/*
>
> Note that this differs from the paths expected in the web.xml file,
> where only one validationNHCS12 folder is shown, not two nested folders
> of the same name. Could this be causing the problem?
>
> - Earl
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "National Health Care Survey Testing Tool" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
> national-health-care-surve...@googlegroups.com
> <mailto:national-health-care-surve...@googlegroups.com>.
> To post to this group, send email to
> national-health-care...@googlegroups.com
> <mailto:national-health-care...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/national-health-care-survey-testing-tool/c350f947-8cb2-4f7e-a2b6-1b5b662ac743%40googlegroups.com
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fnational-health-care-survey-testing-tool%2Fc350f947-8cb2-4f7e-a2b6-1b5b662ac743%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C23db49d00416445e94ff08d69c05b430%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636867945641105298&sdata=HZ3mVyVSY621GUbCVwcIwUDetGmEnvHt6gJPI7UwoR4%3D&reserved=0>.
> For more options, visit https://groups.google.com/d/optout
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C23db49d00416445e94ff08d69c05b430%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636867945641115303&sdata=M6xziwcxsDuJMedN9HaP5c5MeGtSuF72OW6Lmg1cBNE%3D&reserved=0>.
Reply all
Reply to author
Forward
0 new messages