Cannot find the JRE for some reason - classpath

I have the following error - and I am getting a 404 problem. I think they are related. Is this a class path error?
Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;....

They're not related, the message is just a warning...
It's not saying JRE was not found. It just mentions where did it look for Apache Native, which is an optional speed-up you don't need I guess.

This warning is about the Tomcat native libraries which are optional. As the warning states, the native libraries can boost performance. This warning is probably unrelated to your HTTP 404 error. Please provide more detail about your 404 error. What is the url? What <servlet-mapping>s and <filter-mapping>s do you have defined in web.xml?

Related

JEE RESTfull web service tutorial ends with 404

I'm trying to run simple RESTfull service tutorial in Java Enterprise Edition and IntelliJ located here. I use GlassFish server 6.2.3 and OpenJDK 17.0.1. The application is very simple and strictly according to tutorial steps. But every time I start application the result is 404.
Server log is without errors (I can go into admin site on localhost:4848 and see my application loaded under Common tasks/Applications), but there are some errors in GlassFish Log:
Error while trying to load Bean Class com.example.restglassfishhelloworld.HelloApplication : java.lang.NoClassDefFoundError: javax/ws/rs/core/Application.]]
WELD-000119: Not generating any bean definitions from com.example.restglassfishhelloworld.HelloApplication because of underlying class loading error: Type javax.ws.rs.core.Application not found.
I suppose that this could be the reason for not working sites, but unfortunately don't understand it (the Application class exists) and don't know how to fix it. Or maybe there could be some other reason for the issue in Glassfish settings... Could somebody help me?
EDIT: link to project on GitHub
Based on comments from CrazyCoder (thank you) and this answer I was in the end able to run the JetBrains tutorial example with following combinations:
Tomcat 9 + OpenJDK 17 or OpenJDK 11 or JDK 1.8
Glassfish 4 + JDK 1.8
Important note for Windows users and Glassfish scenario - AS_JAVA variable should be added to asenv.bat instead of asenv.conf, it means add i.e. set AS_JAVA=C:\Program Files\Java\jdk1.8.0_321 (depends on your JDK installation path) to <glassfish root>\glassfish\config\asenv.bat
See this article.

Eclipse BIRT view report button not working

I saw lot of posts for this issue mentioned below.Either the proposed solution in the other websites are not working or some of the internet links are not working.
Do you have a concrete solution for this issue,I would like to know please?
HTTP ERROR: 500
Problem accessing /viewer/frameset. Reason:
Server Error
Powered by Jetty://
Not sure, but the answer is depending on your BIRT version.
I am using 4.2.1 for development. This requires JRE 6 (no more, no less) for viewing. You can specifiy the VM on the command line or in eclipse.ini.

Exception on install msmqdistributor for Enterprise Library 6

I am trying to install msmqdistributor service for Enterprise Library 6, but got this exception:
An exception occurred during the Install phase.
System.InvalidOperationException: Unable to get installer types in the C:\EntLib\MsmqDistributor.exe assembly.
The inner exception System.Reflection.ReflectionTypeLoadException was thrown with the following error message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..
That requested types it is looking for?
Thanks much for help in advance!
I Have solved it myself. Hope this may help other people who wanted to use MSMQ for logging out.
I re-downloaded the source code, and using the batch command to recompiled the whole Enterprise Library 6. This generated a working msmqdistributor.exe.
Please note, I also recompiled the source code from the LAB solution, and that did not work.

Myface CODI is not throwing exceptions in Eclipse

I do JSF development using Myfaces, Primefaces, Tomcat in Eclipse IDE. When testing thru I used to get exceptions thrown by Myfaces/Primefaces in the Eclipse Console.
Recently I enhanced my development environment by adding MyFaces CODI and OpenWebBeans. Ever since I have done this, I stopped gettting any error messages in my eclipse console. I have no idea why.
Even basic errors like nullpointerexception, method/variable not found etc. are not thrown. I have set Myface CODI stage as Development. I get MyFace CODI messages related to start and stop of conversations, but all exceptions and errors are never thrown.
It is frustrating to debug myfaces/primefaces/bean code to discover these simple errors.
Can somebody suggest what could I do to get the exceptions back again in the Eclipse environment.
Need some urgent help as this issue has slow down development very significantly.
That's an issue with your setup. We are using all of those libs as well and none of them can cause something like that.

GWT failed to get the serialization policy

When I deploy newer version of my GWT application, I get sometimes this log error:
SEVERE: GwtRpcEventSrvc: WARNING: Failed to get the SerializationPolicy 'www.host.com:22041/MYAPP/'; a legacy, 1.3.3 compatible, serialization policy will be
a result.
Question 1) Is it a problem of serialization policy files remaining
in browser cache?
Question 2) How to prevent such log message? I tried to add changing
URL request param to nocache.js (<script
src="MyApp.nocache.js?v=123"...) but it did not help.
Try clearing your browser cache. It worked for me.. after searching a lot of a lot of ways to solve it.
See:
how to clear cache in gwt?
Stop browser scripts caching in GWT App
GWT Caching Concept
In summary: you need to set HTTP headers not to cache the .nocache.js files via your web server or a servlet filter