War file on Servoy 2023.6.0

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

War file on Servoy 2023.6.0

Postby JuanMartin » Wed Sep 13, 2023 9:27 am

Hi

I update to Servoy 2023.6.0 and when I create the war file, at the end, I have this error:

"Could not create/copy Titanium NGClient resources"

The war file is create but with 0 size

I have checked "Export NG1 Client resources (by default only Titanium Client will be exported)"

And I have checked "allow running smart clients"

Thanks
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: War file on Servoy 2023.6.0

Postby JuanMartin » Wed Sep 13, 2023 8:11 pm

When make a .war, at the end I have this error:


./src/styles.css - Error: Module build failed (from ../node_modules/css-loader/dist/cjs.js):
Error: Can't resolve '~@fortawesome/fontawesome-free/css/all.css' in 'C:\Users\Juan\servoy_workspace2023030_new\.metadata\.plugins\com.servoy.eclipse.ngclient.ui\target\zylux_dist\src'

./src/styles.css?ngGlobalStyle - Error: Module build failed (from ../node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ../node_modules/css-loader/dist/cjs.js):
Error: Can't resolve '~@fortawesome/fontawesome-free/css/all.css' in 'C:\Users\Juan\servoy_workspace2023030_new\.metadata\.plugins\com.servoy.eclipse.ngclient.ui\target\zylux_dist\src'

The solution works fine in developer, in Ng and Smart

I delete the fontawesome module and install again, but the problem is the same

Any idea???
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: War file on Servoy 2023.6.0

Postby JuanMartin » Fri Sep 15, 2023 9:48 am

I have deleted everything including the repository and installed everything again and the error has disappeared

Tha application works fine in developer, in NG and smart.
In server, Ng works fine but in smart, in java console I have this error:

net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file. The application has not been initialized, for more information execute javaws/browser from the command line and send a bug report.
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:413)
at net.sourceforge.jnlp.Launcher.access$300(Launcher.java:71)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:660)
Caused by: java.lang.ClassNotFoundException: com.servoy.j2db.smart.J2DBClient
at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.lambda$loadClass$9(JNLPClassLoader.java:1449)
at java.util.Optional.orElseThrow(Optional.java:290)
at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.loadClass(JNLPClassLoader.java:1449)
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:386)
... 2 more

Thanks
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: War file on Servoy 2023.6.0

Postby JuanMartin » Tue Sep 19, 2023 9:08 am

I don't know if with this version you have to do something different for the smart to work, but I have done the same steps as always and when I try to open the smart with the Java 1.8 version it gives me the following error:

java.lang.UnsupportedClassVersionError: com/servoy/j2db/smart/J2DBClient has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0

If I try to open with java web start with java version 17 or 20, I get the following error:

[Usuario][ITW-CORE][2023-09-19 07:58:59.945 BST][DEBUG][net.sourceforge.jnlp.runtime.JNLPRuntime][Servoy Client#1a7e821e]: Waiting for exception dialog to be closed
[Usuario][ITW-CORE][2023-09-19 07:58:59.944 BST][DEBUG][net.sourceforge.jnlp.runtime.JNLPRuntime][Servoy Client#1a7e821e]: JNLPRuntime,exit()
[Usuario][ITW-CORE][2023-09-19 07:58:59.944 BST][ERROR][net.sourceforge.jnlp.Launcher][Servoy Client#1a7e821e]: Launch exception
[Usuario][ITW-CORE][2023-09-19 07:58:59.944 BST][ERROR][net.sourceforge.jnlp.AbstractLaunchHandler][Servoy Client#1a7e821e]: netx: Launch Error: Could not launch JNLP file. (com.servoy.j2db.smart.J2DBClient)
[Usuario][ITW-CORE][2023-09-19 07:58:59.944 BST][DEBUG][net.adoptopenjdk.icedteaweb.client.GuiLaunchHandler][Servoy Client#1a7e821e]: HandleLaunchError Sbow BasicExceptionDialog Fatal: Launch Error: Could not launch JNLP file. The application has not been initialized, for more information execute javaws/browser from the command line and send a bug report.
[Usuario][ITW-CORE][2023-09-19 07:58:59.941 BST][ERROR][net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader][Servoy Client#1a7e821e]: Error while trying to find class
[Usuario][ITW-CORE][2023-09-19 07:58:59.938 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\191\xmlreader.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.937 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\189\window.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.936 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\187\commons-collections-3.2.1.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.935 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\186\httpmime.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.934 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\185\htmlcleaner-2.24.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.933 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\184\PDFRenderer.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.933 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\183\svgSalamander-tiny.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.932 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\182\charts4j-1.4.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.931 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\181\velocity-tools-generic-2.0.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.930 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\180\velocity-1.7.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.929 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\179\commons-pool.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.928 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\178\commons-lang-2.4.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.927 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\176\iText-4.2.0.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.924 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\177\fs-ui-renderer.jar
[Usuario][ITW-CORE][2023-09-19 07:58:59.923 BST][DEBUG][net.sourceforge.jnlp.runtime.CachedJarFileCallback][Servoy Client#1a7e821e]: Class-Path attribute cleared for C:\Users\Usuario\.cache\icedtea-web\cache\0\175\velocit

Can someone tell me if I'm doing something wrong or if I need to do something different for this version 2023.06

Thanks
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: War file on Servoy 2023.6.0

Postby mboegem » Tue Sep 19, 2023 10:17 am

Hi Juan,

version 2023.6 requires Java 17 both serverside AND client side. (actually since 2022.12 https://wiki.servoy.com/display/DOCS/2022.12+Whats+new)
This is why you can not open smart client using Java 8 client side.

Java has removed support for Java webstart since v11.
In order to launch smart client in Java 17, you need to use Servoy's bootstrapper method and include Java 17 runtime.
This is documented here: https://wiki.servoy.com/pages/viewpage. ... d=23856169

Hope this helps
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1752
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam


Return to Programming with Servoy

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 21 guests