Error while reloading package

Hello,

I’m using docker on a Integration Server when I run my container in our environment it’s work pretty well but when I try do run the same image on the client environment I have several problems.

It’s mainly configuration so I change my url and password in the JDBC adapter and in the JDBC pool, then I try to reload 2 of my package who are only partially loaded, but when I do this, the package is still only partially loaded and I get an error log :

“wm.server.packages:packageReload, Exception processing TLD at resource path /WEB-INF/jstl/c.tld in context /web/<packageName>
Caused by: java.net.UnknownHostException: java.sun.com

How can I fix this?

Hi Leroux,

this is a common well known error when deriving from packages when they contain TLDs.
The issue is within the WmTomcat package but I doubt that this will ever be resolved as it relates to the Tomcat version bundled in the Tomcat package.

To resolve this manually you will to copy the TLD to each package which requires it and adjust the WEB-INF/web.xml accordingly. Reload the packages afterwards.

I don´t think that this relates to the JDBC pools, neither Adapter nor internal pooling.

Regards,
Holger

Hi,

First of all thank you for your answer, but I’m not sure I have fully understood.
I’ve already got the “c.tld” file in “IntegrationServer/instances/<instance_name>/packages/<package_name>/web/WEB-INF/jstl” but no TLD file in the package WmTomcat (“IntegrationServer/instances/<instance_name>/packages/WmTomcat”) I don’t have any TLD. So i’m not sure what TLD I have to copy and where.

I have download the online “c.tld” and compared it to my local one and there is no difference between them. While comparing the files I found two URI inside : “http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd” and “Oracle Java Technologies | Oracle” those two URI have the same host than the Unknown Host Exception I have. It make me wonder if the problem is not that he try to get some files from online but can’t because the server where the Integration server run don’t have acces to internet.

Also I have found other errors when starting the Integration server and some of them says that the file “web-jsptaglibrary_1_2.dtd” could not be found, it’s the same file who is mentioned in c.tld.

jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [XMLSchema.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [datatypes.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [xml.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [web-app_2_2.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [web-jsptaglibrary_1_1.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [web-app_2_3.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [web-jsptaglibrary_1_2.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [j2ee_web_services_1_1.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [j2ee_web_services_client_1_1.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [web-app_2_4.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [web-jsptaglibrary_2_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [j2ee_1_4.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [jsp_2_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [web-app_2_5.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [web-jsptaglibrary_2_1.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [javaee_5.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [jsp_2_1.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [javaee_web_services_1_2.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
jvm 2    | ISSERVER|| 2021-02-11 16:55:54 UTC [ISS.0100.0008W] The XML schema [javaee_web_services_client_1_2.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.

Is there a way to directly download those files and put them in the Integration Server ?

Regards,

Hi Leroux,

please add a package dependency to the WmTomcat package in your custom package properties.

Additionally you might want to take a look at the JSP and Servlet Development Help Guide.

Regards,
Holger

Hi,

in my custom package I’ve already a dependency to the WmTomcat inside the “manifest.v3” file.

I have tracked the missing xml and they seem to be inside the “servelt-API.jar” who is inside my IS at “/is/IntegrationServer/instances/<instance_name>/packages/WmTomcat/code/jars/servlet-API.jar”

but for some reason webmethod don’t seem to load this.

Is there a way to fix this ?

Regards

Hi Leroux,

did you reload the WmTomcat package (will reload your custom package additionally) or restart your IS after setting the dependency?

Looks like class loading order issue.

Additionaly question:
Do you have the latest Fixes applied to your instance?
Might be that you are missing the Tomcat-package fix if available for your version.

Regards,
Holger

Hi,

Yes i have restarted the IS. To be more sure I have rebuild the docker image and deployed it back.
I don’t know how to check if the tomcat-package fix is installed, I’m currently in webMethods 10.5.
But normally the version should not be a problem because on our DEV environnement it work just fine and it’s only when we dockerize it deploy on the client environnement that we get the problem.

Regards

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.