no clientlets found for response, using the lobo browser - java

i am using the lobo browser, and when i run the example code, i keep getting the following exception:
java.lang.IllegalStateException: No clientlets found for response: ClientletResponseImpl[url=http://www.google.com,method=GET,mimeType=text/html,fromCache=false,requestType=PROGRAMMATIC'.
anyone have any idea?

I had the same problem when i was trying to embed the FramePanel in my java application.
I think there is a dependency in the code that there will be a directory with name "ext" and the extension jars are present in that directory. "ext" directory should be at the same level as lobo.jar file. This solved my problem.

Related

HTTP Status 404 – Not Found when calling servlet [duplicate]

This question already has answers here:
Servlet returns "HTTP Status 404 The requested resource (/servlet) is not available"
(19 answers)
Closed 2 months ago.
I know that there are previous questions that ask the same but I still couldn't find the right solution. I am getting: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. I am using a Tomcat server.
Could someone please help me, the following is my project structure:
.
I was stuck into this problem for a month.
Finally, I figured out that in Eclipse, "Build Automatically" was not set, and I was trying to run my servlet.java file without any servlet.class file, since I wasn't building my project.
The thing which worked for me is to
first build the project => restart the server => run the server on
servlet.
Hope it helps!!
I was running into a similar problem, where my package name was wrong. I fixed the package name and fixed the problem.
Please check your configuration snippet in the web.xml file.
Also, for a cleaner structure, you can create a new folder "jsps" under WEB_INF and move the .jsp files into the same.
The following scenario is explained with the name of the project as abcd, and the port as 8080. The folder WebContent will be inside folder abcd.
In application.properties, add your path
upload.path=C:/.........../abcd/WebContent/
If the last slash after WebContent is ignored, then uploaded files are saved at abcd and not in WebContent (which is inside abcd).
Now, say, there is 1.JPG inside WebContent. If I have to access it, then in my browser ,I have to put URL as http://localhost:8080/abcd/1.JPG
Having the URL as
http://localhost:8080/abcd/1.jpg wont work (note the small case alphabets of .jpg)
Also make sure that the file 1.JPG is visible inside WebContent in abcd in IDE (in my case, it was Spring Tool Suite). Else refresh the project from the IDE.
Now, if the file 1.JPG is inside abcd/WebContent/new/1.JPG, then the URL will be http://localhost:8080/abcd/new/1.JPG
I faced this issue once when there was a runtime exception in the code block of ContextLoaderListener.
public class YourApplicationContenxtLoaderListener extends ContextLoaderListener{
#Override
public void contextInitialized(ServletContextEvent event){
/* There should not be any exception/error in this block , as it would impact the context initialization by tomcat server for respective war file. */
}
}
I encountered this problem on an Azure WebApp running on Java 11 and Tomcat 9.0.
I changed the Java Web Server version from Apache Tomcat 9.0 (auto update) to Apache Tomcat 9.0.20, and then the server worked.
here is the solution for your query,
Simply follow these steps:
go to project properties settings
type demployment and assembly settings
then click on add folder then and add the webcontent folder to your project,
click apply and close then run the project
I hope your problem will be solved.

Problems with building neo4j GetAll Server-Plugin

I'm trying to build the neo4j GetAll plugin. Project contains only one example class from here.
When I try to run curl http://localhost:7474/db/data/ext/GetAll/graphdb/get_all_nodes, I get the error message:
No such ServerPlugin exception
I'm using neo4j-community-2.2.1 (on Windows) and jdk1.7.0_79.
My project consists of :
GetAll.java in org.neo4j.examples.server.plugins package
META-INF/services/org.neo4j.server.plugins.ServerPlugin file with this content: org.neo4j.examples.server.plugins.GetAll
in buildpath are all jars from %NEO4J_HOME%\lib included.
The jar-file is built using jar -cvf myext.jar * and than that jar placed in %NEO4J_HOME%\plugins.
I have no idea, why I cannot make it work properly. Any suggestions?
The screenshot clearly shows that GetAll.class is located in directory bin/org/neo4j/examples/server/plugins instead of org/neo4j/examples/server/plugins (get rid of the bin).

Getting antisamy-esapi.xml not found exception while trying to use OWASP ESAPI library

I am trying to use getValidSafeHtml () function of esapi library but getting the following exception
org.owasp.esapi.errors.ConfigurationException : Couldn't find antisamy-esapi.xml
I have copied antisamy-esapi.xml in the same directory where I kept ESAPI.properties and validation.properties and both loads properly but getting antisamy-esapi.xml not found exception.
Please help as I am stuck with this error from the last two days.
Any help would be appreciated.
Thanks in advance.
make a folder named 'esapi' at the path of ESAPI.properties, move antisamy-esapi.xml into the folder 'esapi', clean the project and try again~
|
|--ESAPI.properties
|--esapi
|--antisamy-esapi.xml

Stop Java returning error on upload

I've got a problem where I'm trying to add the ability to upload an MP4 to an existing Java app that previously handled FLVs.
The Flash is stopping the process, because it receives this helpful error:
{
"error": 0,
"message": null,
"payload": null
}
And the Java shows this error:
> 110677 [qtp868385821-30] WARN org.jets3t.service.utils.Mimetypes -
> Unable to find 'mime.types' file in classpath
However, the upload continues and works fine.
Ive tried adding the mime.types file to the classpath, and it doesn't seem to make any difference. I've added the mp4file type to mime.types
video/x-mp4 mp4
Any idea how I get the server to either accept mp4s, or stop sending the error so the rest of the application can do its thing?
Try including the mime.type in src/main/resources if you're using Gradle. An example mime.type file is found in the project source code.
JetS3t includes a mime.types file in the classpath root.
This is the file Synchronize expects to find in the classpath,
is this file present in your configs directory? If not, you may need to replace it.
If you don't wish to use the mime.types file to guess the mimetype of your files,
you can get rid of the warning message by changing the following line in
log4j.properties:
log4j.logger.org.jets3t.service.utils.Mimetypes=INFO
to read:
log4j.logger.org.jets3t.service.utils.Mimetypes=ERROR

NTEventLogAppender is not working for my Java Application

I'm trying to write to the Windows Event Log and I have a nagging issue.
First I created the NTEventAppender using steps found here.
How to create NTEventlogAppender.dll as required for logging event in the eventlog using log4cplus
I placed the .dll in the System32 folder. When I built and ran the program in eclipse I received this error
java.lang.UnsatisfiedLinkError: org.apache.log4j.nt.NTEventLogAppender.registerEventSource(Ljava/lang/String;Ljava/lang/String;)I
at org.apache.log4j.nt.NTEventLogAppender.registerEventSource(Native Method)
at org.apache.log4j.nt.NTEventLogAppender.<init>(NTEventLogAppender.java:79)
at org.apache.log4j.nt.NTEventLogAppender.<init>(NTEventLogAppender.java:49)
at mahle.eolx.ws.Main.<clinit>(Main.java:30)
Exception in thread "main"
Do I need to do something differently since this is a Java application and the question linked above was for a C++ Application.
And if that is the case, what do I need to do.
EDIT: I found out that I should be using the NTEventLogAppender.dll that was included with the log4j download, but I'm still getting the same error.
I couldn't get this to work, however I was able to log to the event viewer by using log4jna for the NTEventLogAppender (https://github.com/dblock/log4jna).
I took these steps
Download log4j and include the .jar file in your project http://logging.apache.org/log4j/1.2/download.html
Download log4jna which is used to replace the NTEventLogAppender and add the necessary jars to your project (log4jna, jna, platform) http://log4jna.codeplex.com/
You will need to add the Win32EventLogAppender.dll somewhere in your application directory.
To get the logger to log meaningful messages you will need to change the registry
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\Application\"YourAppNameHere"]
"EventMessageFile"="C:\\Program Files\\"Your Application"\\Win32EventLogAppender.dll"
"CategoryMessageFile"="C:\\Program Files\\"Your Application"\\Win32EventLogAppender.dll"
"TypesSupported"=dword:00000007
"CategoryCount"=dword:00000006

Categories

Resources