CheerPJ not showing anything

There is a class file in my code named AbstractPageBean which returns 404 when I run the page using cheerpj server side. 1- I am not sure if I implemented the server side correctly but in one of my applets, it says missing in myapplet$x.class, and in another says missing for AbstractPageBean 2- The code runs perfectly with CheerPJ extention 3- I use JSP and this is my code:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui:page binding="#{Chart.page1}" id="page1">
<ui:html binding="#{Chart.html1}" id="html1">
<ui:head binding="#{Chart.head1}" id="head1">
<ui:link binding="#{Chart.link1}" id="link1" url="resources/CommonStyle.css"/>
<ui:script binding="#{Chart.script1}" id="script1" url="/resources/CommonScript.js"/>
<ui:script binding="#{Chart.script3}" id="script3" url="/resources/ajax.js"/>
<ui:script id="script4" url="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"/>
</ui:head>
<ui:body binding="#{Chart.body1}" id="body1" style="background-color: rgb(222, 231, 195); -rave-layout: grid; direction: rtl;">
<APPLET
archive="WEB-INF/lib/TwainApplet.jar"
code="WEB-INF/classes/patient/ChartApplet"
height="550"
width="540"
></APPLET>
<script>
cheerpjInit();
</script>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui:page binding="#{Chart.page1}" id="page1">
<ui:html binding="#{Chart.html1}" id="html1">
<ui:head binding="#{Chart.head1}" id="head1">
<ui:link binding="#{Chart.link1}" id="link1" url="resources/CommonStyle.css"/>
<ui:script binding="#{Chart.script1}" id="script1" url="/resources/CommonScript.js"/>
<ui:script binding="#{Chart.script3}" id="script3" url="/resources/ajax.js"/>
<ui:script id="script4" url="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"/>
</ui:head>
<ui:body binding="#{Chart.body1}" id="body1" style="background-color: rgb(222, 231, 195); -rave-layout: grid; direction: rtl;">
<APPLET
archive="WEB-INF/lib/TwainApplet.jar"
code="WEB-INF/classes/patient/ChartApplet"
height="550"
width="540"
></APPLET>
<script>
cheerpjInit();
</script>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
1 Reply
apignotti
apignotti8mo ago
I cannot provide feedback on the JSP code, it would be better to show how to final HTML looks like. In particular I am not sure if the APPLET tag will be dynamically inserted in the final page. It would be best to call cheerpjInit earlier in the page to make sure runtime Java detection is correctly spoofed by CheerpJ If you see that .class files are not found, that is a strong indication that there is some path problem, but then it's unlikely that the page works with the CheerpJ Applet Runner extension, so there must be some difference If you can make the page accessible on the public internet we could take a look, otherwise we can provide limited help Hi, can you share some additional information? We want to help, but currently we are not able to do so.
Want results from more Discord servers?
Add your server