I am encountering a problem in which upon selecting an xhtml file from my project and selecting run on server (apache tomcat) I get the following error 'The file "http://localhost:8080/projectname/faces/index.xhtml" could not be found.
I tried following an example, to make sure I was doing things correctly (setup, creating files correctly), example site:
http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.jst.jsf.doc.user%2Fhtml%2Fgettingstarted%2Ftutorial%2FJSFTools_tutorial_JSF20.html
However it returns similar error only with instead of index as above it is login.
Hope this is enough information, I can supply more info such configuration details as well as images if they are needed. I hope someone has had this exact same problem!
Thanks!
I was able to fix this problem by deleting my eclipse files, and other associated files. Then re-installing them. This fixed the error. I am sure there is a better way of doing this (I hope so anyway) but this will work.
Related
can anyone help me please. I'm using eclipse IDE and apache tomcat 9.0.12. I'm trying to do my assigment where we have to create html and java file. My html file works just fine but the problem occurs when im trying to get the data from java file. I already watch youtube and google but their problem is different than mine. I dont have typo or any simple problem .. I think it is a path problem but i don't know how. it seems like eclipes coudlnt find where my java file located.[[enter image description here](https://i.stack.imgur.com/RJ7Ed.png)](https://i.stack.imgur.com/cbOZl.png)
i trie to check typo, change localhost path , no different
I'm trying to create PDFs from xml data. I'm using Apache FOP 1.1 for Java in Windows.
The application runs perfectly in the Eclipse, but when I try to run it from the exported .jar images are not placed in the PDF. I've tryied running it at the cdm in order to see the log of the runtime. Here is the exception:
GRAVE: Image not available. URI: out/iberdrola.png. Reason: org.apache.xmlgraphics.
image.loader.ImageException: The file format is not supported. No ImagePreloader
found for out/iberdrola.png (No context info available) org.apache.xmlgraphics.
image.loader.ImageException: The file format is not supported.
No ImagePreloader found for out/iberdrola.png
at org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:180)
I've to explain that even if it's an exception, the program runs until the end and the PDF is rendered but without the image.
I've tryied some different ways to solve the problem, but no success. Much of the information I've googled relates to servelts, but I'm not programming a servelt. By the way, here I give you two different solutions that have worked to some others. They are related but I spect the procedure is different. I don't know how to try them, could anyone explain me those better? Even if they are explained there must be any step I'm missing.
http://apache-fop.1065347.n5.nabble.com/FOP-1-0-images-fail-to-render-td7348.html
Apache FOP in a Java Applet - No ImagePreloader found for data
I'm also open to any other solution to this problem.
Thanks in advice!
Have a nice code!
I finally came out with the solution. I don't know exactly wich of the two steps I made was the one that solved everything, but here it is.
Firstly, I changed the libraries of the project. I realised that the fop_1.1.jar I was using wasn't the official one provided by Apache. So I went to the official site and I downloaded the binary version. I added to my buildpath the fop library and the rest of dependent libraries of the folder called 'lib'.
Then, I increased the compilation version of Java. I was using the 1.4 version and many of the libs used require 1.5 or above. So as I realised that most of the computers nowadays use 1.7 or above I set it to 1.7.
I can't tell you which of the two solutions made this miracle, but for further projects I will check before that I'm using the correct libraries and that I have to check the minimum compilation version.
Have a nice code!
I'm running a paid GAE app written in Java and it's id is clip-share, so the url is http://clip-share.appspot.com/.
I've run it for more than 10 months, and since 2 days ago, it starts not working with 404 not found error on all static and dynamic URL.
When I connect to my app's URL, it just throws this message that there is no index.html file which really does exist.
Error: Not Found
The requested URL /index.html was not found on this server.
I tried re-deploy this app for a few times, but it works with no problem just only for a few minutes right after the deploy, but doesn't work after that.
And also searched for the 404 not found problem, I found this thread but there is no specific information about the cause and some way to solve it.
https://groups.google.com/d/topic/google-appengine/8liP4T-wbSo/discussion
So, what's happening? and how can I handle it?
EDIT:
I found a workaround for this problem, that is making another version, say version 2, and set it as default. But you can still see the problem in this URL for version 1, just put 1. just before the URL. (I want to show you the full URL to the version 1, but I'm rather new to stackoverflow.com, and not permitted to post more than 2 URLs in one question.)
So, the same code and configuration in two different versions, but only version 2, the newer one works.
in web.xml should be welcome file tag. Perhaps you have there /index.html. Find in web.xml "/index.html" and change it to "index.html".
index.html file should be in war folder: /war/index.html
It turns out to be that there was a configuration problem in Google App Engine plugin of Eclipse. That I have several GAE projects in one Eclipse workspace, and other GAE project accidentally deployed to the clip-share. So it looks like that there was 404 not found problems happening, suddenly. Anyway, thank you guys.
i keep getting this error ive been looking at it for a day now and im just beat. i was wondering if anyone can help me.
this is the error
Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:8080/Learn/messagebroker/amf'
when i do this locally on tomcat server on local development machine it works fine when i brought it over to linux im getting this error.
i dont know what to do anymore it should be straight forward but i'm having no luck.
i do have a web.xml and i see a broker for my remote access so i just dont know what it could possibly be. i would appreciate any help anyone can offer.
Miguel
ok i figuered it out. when i brougth my project over to linux tomcat expects to see all the java classes, flex config files and web.xml file under the root/web-inf. I wish i can change that but thats just the way it works. I was hoping with blazeds i can just put my files on a server and it would all work but thats not the case so if your like me and are new to the whole blazeds scene. Be careful you will nee to change the server web.xml file along with adding additional files under the ROOT/WEB-INF directory. One thing that helped me alot was the LOG files under tomcat_instal/LOG/logfilename.
Good luck to you
I have no particular Java knowledge whatsoever. We are running an opensource application which is mainly written in Java. Internet connection dropped while I was editing a job (this is some sort of a translation project management tool) and I cannot open the job anymore.
I checked the database to see if anything is wrong there and all looks fine (I compared values to a working job). Then I logged in to the server and checked logs and seems like this application may be relying on some data which is stored somewhere other than the database.
The log contains tons of lines but I guess this is the one that provides the hint:
ERROR;com.globalsight.everest.workflow.WorkflowProcessAdapter;There is error in create the workflowinstance for the process instance id 54
java.lang.IllegalArgumentException: the userrole value cannot be null
Looks like userrole got messed up while the connection dropped. Now that userrole is not assigned anywhere in the database. I thought I will browse the source files to see where it may be coming from but I am not able to find those. For instance, an exception line says :
com.globalsight.everest.taskmanager.TaskManagerLocal.acceptTask(TaskManagerLocal.java:165)
I browse to that localization and there is a TaskManagerLocal folder there but it is empty. I assume this is compiled in the jar file (right?). Can somebody with Java knowledge shed a light as to how I can dig and find where userrole may be saved and bring by application back up?
Many thanks in advance
com.globalsight... -> globalsight.com
The website states that the sources are on SourceForge
If the project is open source, the code may be packaged inside the JAR file. This is not always the case, as the actual code that is run from the JAR is in compiled bytecode form.
You could try unzipping the JAR using:
jar -xvf the_jar_file.jar
This will create a number of directories/files which may include a src directory. If not, the source is probably not included in the JAR in its un-compiled form, in which case you'd have to download the source from the project site.
Since this error is specifically related to that tool, I'd go to the GlobalSite at http://globalsight.com and ask there. I did a quick search of the site for this error and didn't find anything but you should be able to get some answers (I would think) after posting this on their forum.