JSP on JDeveloper, error: "identifier OracleJspRuntime not found" - java

I am a developer with .NET experience but I am now dealing with a J2EE application (with JSP and EJP projects ) which I am trying -without much luck so far- to make it work.
I am now getting the error
Error(22,17): identifier OracleJspRuntime not found
when I try to build it.
googling the error message I found that I may need to add JSP Runtime to my project libraries ,but which libraries exactly that I need to add ?
Given the fact that I am completely new to the J2EE world, what am I missing here?,what are this error message trying to say ?

I found the hack to it ,just added reference to JSP Runtime under Extension tab in add library dialog box (I am using JDeveloper10G)

Related

Applying XML coloration style on TextMergeViewer Eclipse

I recently found this guy's website, claiming he had found a way to set XML syntax coloration in a TextMergeViewer, a thing that is not "naturally possible" in Eclipse.
Here is the URL of his website : https://vzurczak.wordpress.com/2010/09/25/merge-compare-dialogs-and-xml-syntax-highlighting/
However, the way he dealt with the issue seems to be not applicable right now (in 2016, and I am running Eclipse 4.4.0). The two major problems I found are the following ones :
StructuredTextViewer cannot be resolved as a type (I see many forums telling that we cannot/could not access it)
It looks impossible to cast a StructuredTextViewerConfigurationXML to a SourceViewerConfiguration.
I am not pretending that he is a liar, but I guess that I missed something, or Eclipse performed some internal changes affecting his code, written in 2010.
If someone knows how to solve these issues, his help would be welcomed.
Thanks for reading.
StructuredTextEditor and related classes are part of the Eclipse Web Tools. In particular the 'Eclipse XML Editors and Tools' feature.
Some downloads of Eclipse include this, other don't. If you don't have it you can install it using 'Install New Software...'. Choose you main Eclipse site and look for 'Eclipse XML Editors and Tools' in the 'Web, XML, Java EE and OSGi Enterprise Development' section.

Tapestry 5 cannot resolve symbol "layout"

I´m trying to get a simple Tapestry sample working, but I´m getting stuck at the very beginning.
I want to declare my first tml page, which I have from the official tapestry site (not yet allowed to post links).
<html t:type="layout" t:id="index" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tapestry.apache.org/schema/tapestry_5_3.xsd ">
<h1>Welcome to the Nifty Web Application!</h1>
<p>
Would you like to
<t:pagelink page="login">Log In</t:pagelink>
?
</p>
</html>
It says "cannot resolve symbol layout" and "cannot resolve symbol login" and I also tried commonLayout which can´t be found too, but there are many other types showing up in the auto completion, which means that in general there is everything okay with the library stuff.
I´ve added every dependency from the sample.
Is layout kind of deprecated or am I missing something?
You are more likely to get help on the Tapestry mailing list.
And you are more likely to get help by reporting the exact error that Tapestry produces. Trust me, a lot of work has gone into making that information valuable, please include it. For example, I can pretty much guarantee that the errors you cite are not the actual error messages Tapestry produced.
That being said, Tapestry does not include a Layout component, since it is one of the most application specific parts of any application. It is something you build yourself. There are tutorials, or the Tapestry Maven archetype includes a basic one.
Likewise, there is no built-in Login page. That's a pretty standard thing you build in yourself as well.
Tapestry is infrastructure, not magic.

Eclipse JSF Server issue 'the file "" could not be found'

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.

JSF 2.2 Facelet taglib not found for passthrough attribute

I am trying to use placeholders from HTML5 but I am getting a warning when including the taglib:
xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
The warning is saying it cannot locate the tag library
NLS missing message: CANNOT_FIND_FACELET_TAGLIB in:
org.eclipse.jst.jsf.core.validation.internal.facelet.messages
But when using the following tag anyway
<h:inputText class="box" pt:placeholder="Message"/>
This does actually render the placeholder (when not using eclipse inbuilt browser) so the tag library appears to be there.
I am wondering is there either a way to disable this warning or preferably force eclipse to find the library? Having looked about for a solution I've seen that it may be an issue with JSF Mojarra 2.2 but I can't seem to update it to the latest (2.25 I think) in eclipse.
there is one way to make the warning message disappear.
go to the "problems" tab below your workspace you should see the warning message there right-click and delete.
PS: this doesn't actually solve anything but you will get rid of that warning if its annoying you
The error can be removed by typing xmlns:a="http://xmlns.jcp.org/xml/ns/javaee" instead of xmlns:a="http://xmlns.jcp.org/jsf/passthrough"
because the links have changed and the browser is unable to reach the older link.

"The value for the useBean class attribute user.UserData is invalid" - why?

Attempting to create a selection of webpages that take some information, and then display it on a later page, Works up to the retrieving and displaying stage, where I get the following error,
The value for the useBean class attribute user.UserData is invalid
I am using the following tutorial: http://www.jsptut.com/Forms.jsp
I know there is probably 40 billion different questions aanswering this, but I literally picked up JSP at 9.13am this morning. So I need a tailormade answer!
I'm using Eclipse IDE and Tomcat 6.0.33
Thanks
P.S. Some google research keeps mentioning compile.class. Some mention they compiled the bean, but it thought JavaScript was a script meaning it didn't need to be compiled?
Rev: Right, so apparently, i need to compile the bean and then use JSP to execute it? Can anybody advise me on how to compile my Bean?
http://download.oracle.com/javase/tutorial/ is a good place to start. You might want to jump into http://download.oracle.com/javase/tutorial/getStarted/cupojava/win32.html. It's a step-by-step on how to write, compile and run using command-line tools and then work your way down the tutorial list.
When you're a little familiar with that, you can set yourself up with a good development environment, like netbeans or eclipse

Categories

Resources