Add runtime environment for Java Web Tomcat 7: JRE
When adding the Runtime Enviroment for SAP Java Web Tomcat 7 there is an input field JRE.
In the documentation https://help.hana.ondemand.com/help/frameset.htm?7613f000711e1014839a8273b0e91070.html this field is not mentioned.
I may choose
- Workbench default JRE
- sapjvm_7
Which is to be used when Getting Started with SAP HANA Cloud, please?
By the way: there is another Eclipse-Installation with ABAP in Eclipse at the same computer.
You can choose either one. It's even very likely that Workbench default JRE is the same as sapjvm_7. If you click on Installed JREs... next to it, you can see all JREs and which is the default one.
Similar Messages
-
TZupdater for the Java Runtime Environment for jdk/jre 1.6
B"H
Hi,
I need the TZupdater for the Java Runtime Environment for 1.6, unfortunately the only one that I can find on the Oracle/Java site is :
Java Time Zone Updater Tool 1.3.57
The TZUpdater tool is to enable an Oracle JDK 7 or JRE 7 user to patch their installation with the most recent timezone data
Can someone please point me to the relevant link for JDK 6 or JRE 6
Thank you in advance
YechezkelHello Yechezkel,
You download any version from this link
Timezone Data Versions in the JRE Software
This gives the JRE Update Release release and the corresponding TZUpdater Version
Regards,
Debbie -
Startup error in Java Web Tomcat 7 Container in PersistenceDataSourceFactory
Hi,
I tried to deploy a webapp in the Java Web Tomcat 7 container in my trial account. In my web.xml I have the following resource-ref:
<resource-ref>
<res-ref-name>jdbc/ccocs</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
</resource-ref>
When I start the container, I get the following error in the log: #+00#ERROR#com.sap.cloud.runtime.kotyo.persistence.client.PersistenceDataSourceFactory##anonymous#localhost-startStop-1##dXXXXXXtrial#cs2#web##An exception occurred during rest communication with local config service: java.io.FileNotFoundException: http://localhost:20002/config/v1/services/persistence/jdbc/ccocs
What could be the reason for that error?
Regards
MarcoSorry my fault. After some try and error I realised I named the DataSource in the binding "ccocs", but it has to be "jdbc/ccocs".
-
Proper Runtime Environment for Servlets utilizing SQLJ
I've developed some servlets that utilize SQLJ. They run fine
on the Development system. I want to install the servlets
on another webserver for testing. Is it necessary to install the
entire JDeveloper 2.0 package on the test webserver, just to
provide the proper environment for running the servlets?
I tried to run the servlets on the test webserver by copying
over the java classes found in the JDeveloper 2.0 "jdbc" and
"sqlj" subdirectories to the webserver's "servlet" subdirectory,
and expanding the "zip" files in the "servlet" subdirectory.
I also copied over the contents of JDeveloper's "bin", "java\bin"
and "jdbc\bin" subdirectories, and added the subdirectories
pathnames to the PATH environment variable, but the servlets
still do not run correctly, nor do they raise any java exceptions
before they abnormally terminate. The webserver (Sun's
java webserver) does not, however, "crash" or stop running
when the servlet terminates abnormally.
Again, my question is: does JDeveloper 2.0 have to be installed
in its entirety on a test webserver, just to provide a
proper runtime environment for servlets that utilize SQLJ?
The test webserver is running Windows/NT 4.0 and Sun's
Java Web Server 1.1.3.
Thanks,
--- Bill Angel
CSC/ITS
Chantilly, VA.
nullRaghu:
Thanks for the info (below). Using the current production copy
of JDeveloper, I've successfully run servlets containing SQLJ.
I am attempting to put together a deployment package for a
database servlet that utilizes SQLJ. When the java webserver
attempts to initialise the servlet and connect to the database,
an exception is thrown.
The SQLJ Statement causing the exception is:
conn = DriverManager.getConnection(connect_string,"its1","its1");
The exception is:
java.lang.UnsatisfiedLinkError: make_c_state
at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess. java:142)
at
oracle.jdbc.driver.OracleConnection.(init)(OracleConnection.java:
93)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:146)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java:134)
I assume that "make_c_state" is a link to a "dll" package. Could
you (or someone else) tell me what package I need to include in
the distribution in order to satisfy this linkage requirement?
I am attempting to put together a distribution package that
does not require installing the entire JDeveloper 2.0 suite on
the target marchine running the webserver ,which I believe it is
necessary to do when following the instructions for deploying
database servlets via the instructions contained in the
JDeveloper on-line help information.
I have a second, related question. Our facility will be
installing a new "production" webserver that will be running
UNIX, not Windows/NT. Will it be possible to deploy the java
servlets (which utilize SQLJ) on this platform? To my knowledge,
JDeveloper 2.0 is currently available only for the Windows/NT
platform.
Thanks,
--- Bill Angel
JDeveloper Team (guest) wrote:
: Hi Bill,
: The build 184 was beta release and is outdated. Download the
: production copy of JDeveloper 2.0 (buid 343) and you would be
: able to see all the help I was mentioning earlier.
: thanks and best regards
: raghu
null -
Good exception handling policy for Java web application
I'm looking for a good exception handling policy for Java web application. First I found this Java exception handling best practices - How To Do In Java which says that you should never catch the Trowable class nor use e.printStackTrace();
Then I found this Oracle page The Message-Driven Bean Class - The Java EE 6 Tutorial, which does just that. So now I'm confused. Is there a good page online for an exception handling policy for Java EE Web applications? I have a hard time finding one. I've read that you should not catch the Exception class. I've been catching it previously to make sure that some unknown exception doesn't slip through early in the loop and stops all other customers from executing later on in the loop. We have a loop which runs once a minute implemented using the Quartz framework. Is it OK if you just change the implementation to catch the RuntimeException class instead of the Exception class? We're using Java 7 and the Jetty Servlet Container.I'm looking for a good exception handling policy for Java web application.
If you have not done so I suggest you start by reviewing the several trails in The Java Tutorials.
Those trails cover both HOW to use exceptions and WHEN to use them.
This trail discusses the 'controversy' you mention regarding 'Unchecked Exceptions'
http://docs.oracle.com/javase/tutorial/essential/exceptions/runtime.html
Unchecked Exceptions — The Controversy
Because the Java programming language does not require methods to catch or to specify unchecked exceptions (RuntimeException, Error, and their subclasses), programmers may be tempted to write code that throws only unchecked exceptions or to make all their exception subclasses inherit from RuntimeException. Both of these shortcuts allow programmers to write code without bothering with compiler errors and without bothering to specify or to catch any exceptions. Although this may seem convenient to the programmer, it sidesteps the intent of the catch or specify requirement and can cause problems for others using your classes.
Why did the designers decide to force a method to specify all uncaught checked exceptions that can be thrown within its scope? Any Exception that can be thrown by a method is part of the method's public programming interface. Those who call a method must know about the exceptions that a method can throw so that they can decide what to do about them. These exceptions are as much a part of that method's programming interface as its parameters and return value.
The next question might be: "If it's so good to document a method's API, including the exceptions it can throw, why not specify runtime exceptions too?" Runtime exceptions represent problems that are the result of a programming problem, and as such, the API client code cannot reasonably be expected to recover from them or to handle them in any way. Such problems include arithmetic exceptions, such as dividing by zero; pointer exceptions, such as trying to access an object through a null reference; and indexing exceptions, such as attempting to access an array element through an index that is too large or too small.
Generally don't catch an exception unless you plan to HANDLE the exception. Logging, by itself is NOT handliing.
First I found this Java exception handling best practices - How To Do In Java which says that you should never catch the Trowable class nor use e.printStackTrace();
That article, like many, has some good advice and some poor or even bad advice. You get what you pay for!
I've read that you should not catch the Exception class.
Ok - but all that does is indicate that a problem of some sort happened somewhere. Not very useful info. Java goes to a lot of trouble to provide specific exceptions for specific problems.
I've been catching it previously to make sure that some unknown exception doesn't slip through early in the loop and stops all other customers from executing later on in the loop.
If the exception is 'unknown' then maybe it NEEDS to 'stop all other customers from executing later on in the loop'.
That is EXACTLY why you don't want to do that. You need to identify which exceptions should NOT stop processing and which ones should.
Some 'unknown' exceptions can NOT be recovered and indicate a serious problem, perhaps with the JVM itself. You can NOT just blindly keep executing and ignore them without risking data corruption and/or the integrity of the entire system Java is running on.
Is it OK if you just change the implementation to catch the RuntimeException class instead of the Exception class? We're using Java 7 and the Jetty Servlet Container.
No - not if you want a well-behaved system.
Don't catch exceptions unless you HANDLE/resolve them. There are times when it makes sense to log the exception (which does NOT handle it) and then raise it again so that it gets handled properly later. Yes - I know that is contrary to the advice given in that article but, IMHO, that article is wrong about that point.
If you have ever had to maintain/fix/support someone else's Java code you should already understand how difficult it can be to find WHERE a problem occurs and WHAT the exact problem is when exceptions are not handled properly. -
Help on Sun Certified Developer for Java Web Services (CX-310-220) exam
Hi,
I am planing for Sun Certified Developer for Java Web Services (CX-310-220) certification. Can anyone provide me the links for resouces? can anyone provide me books/publications/author best preparation material to score good marks in exam? can anyone provide me the download resources available over internet?
thanks in advance..!!!
regards
gaveeshayes, that's the only decent book covering most of the exam curiculum (but NOT all of it, check the exam specs versus the book content to know what you are missing).
I'm working on the same material, and boy is it a lot...
Dry, boring stuff most of it. -
Sun Certified Developer for Java Web Services (CX-310-220)
Hello All,
I'm planning to study for Sun Certified Developer for Java Web Services (CX-310-220). I really appreciate any help in suggesting the books and the material requiered for the above certification.
Thanks,
Greeshma...yes, that's the only decent book covering most of the exam curiculum (but NOT all of it, check the exam specs versus the book content to know what you are missing).
I'm working on the same material, and boy is it a lot...
Dry, boring stuff most of it. -
When we starting IR and ID, it will look for java web start platform? why?
When we starting IR and ID, it will look for java web start platform? why?
hi praveen,
Java web start is platform to launch the java application.
All the file from the central server are copied to the local machine
check the below blog
Java Web Start
Have some more Fun.......
regards
kummari -
I am planing for Sun Certified Developer for Java Web Services (CX-310-220)
Hi,
I am planing for Sun Certified Developer for Java Web Services (CX-310-220) certification. Can anyone please provide me the resources for preparation?
Can anyone suggest me which books/author/publications best helps me to get good results in exam? Any books/author/publications available over internet to download and prepare?
regards
gaveeshayes, that's the only decent book covering most of the exam curiculum (but NOT all of it, check the exam specs versus the book content to know what you are missing).
I'm working on the same material, and boy is it a lot...
Dry, boring stuff most of it. -
Where is Java runtime environment (for Open Office?)
I want to enable Jave in Open Office, but cannot find a valid runtime environment. Anyone knows where it is? Thanks! - Andy
http://discussions.apple.com/thread.jspa?messageID=12936823�
-
What is java runtime environment for?
After I downloaded yosemite it request I need to download Java Runtime Environment. Why is this necessary?
Google is very much our friend.
Java software allows you to run applications called "applets" that are written in the Java programming language. These applets allow you to have a much richer experience online than simply interacting with static HTML pages.
Java Plug-in technology, included as part of the Java 2 Runtime Environment, Standard Edition (JRE), establishes a connection between popular browsers and the Java platform. Java allows applications to be downloaded over a network and run within a guarded sandbox. Security restrictions are easily imposed on the sandbox.
Many cross platform applications also require Java to operate properly. -
Java2 runtime environment for Solaris 2.5.1 ?
Hi,
I need to run Java2 applications on Solaris 2.5.1
(SunOS 5.5.1)
Can I install Java2 runtime environment on Solaris 2.5.1?
Which version of JRE should I have?
Any advise will be appreciated.According to Sun's Download Center, the latest JVM version supported on Solaris 2.5.1 is Java 1.2.2_06. If you use this, you'll need to make sure you have the absolute latest Solaris patches for 2.5.1 applied.
-
How to enable logging for Java Web Start on Java 6.
I'm trying to get logging working in Java Web Start from Java 6. In previous versions I was able to specify a log file in the Java Web Star control panel (or whatever it was called) , but I can't work out what to do in the Java 6 version of JWS. I've checked the docs and searched the forums here and on java.net but haven't been able to find anything.
Does anybody know how I can get this working?
Cheers
Stephen.Sorry, I was in a hurry and didn't read your e-mail properly. Note: This is a thread in a public forum, not email.
If it were email, it would be a private conversation,
between you, me and whoever we add to the addess
list. ..and you would be paying consulatnacy fees for
my participation.
On the public forum, it can be seen by anybody, and
I don't send you a bill.
And on that note, when asking for free advice on
public forums, please read replies carefully (I
might ask the same of a consultancy client, but
since thay are paying by the email - it is really
their own choice).
..the problem is that I can't find where the log file
is being written. Do you know where it writes to?..
I understand it is specified in the logging.properties
in the lib of the JRE/JDK. E.G. several locations
for my current system..
C:/Program Files/Java/j2re1.5.0/lib/logging.properties
C:/Program Files/Java/j2sdk1.5.0/jre/lib/logging.properties
C:/Program Files/Java/j2re1.6.0/jre/lib/logging.properties -
How to setup Proxy for Java Web Start App ?
I'm having trouble getting Java Web Start to work.
at... http://java.sun.com/docs/books/tutorial/uiswing/14start/compile.html
It tell me...
To test whether your browser can launch an application using Java Web Start, click this link.
http://java.sun.com/docs/books/tutorialJWS/uiswing/14start/example-1dot4/HelloJWS.jnlp
I do that & see Java Web Start try to start but get message...
Java Web Start - Invalid Argument
Unable to launch specified application
An error occurred while launching/running the application.
Category: Invalid Argument error
Could not load file/URL specified: C:\Documents and Settings\Will\Local Settings\Temporary Internet Files\Content.IE5\OP8RSBCV\HelloJWS[1].jnlp
Then... http://java.sun.com/docs/books/tutorial/information/javawebstart.html tells me...
"This situation usually happens when your browser and your copy of Java Web Start have different proxy settings."
I click Start | Programs | Java Web Start | Java Web Start,,, then click File | Preferences | General
My choices are... Proxies: None User Browser _ Manual (User Browser grayed out)
If _ Manual checked then I get...
HTTP Proxy ______
HTTP Port _______
I'm running XP Pro via Wi Fi to a Linksys Wi Fi router to a cable modem... I'm also running Zone Alarm (tried turning it off but no luck)
I don't know how to set up the Proxy stuff... can any one please help me get this set up.
thanks - WillOK, on my XP Pro system I went to...
Start IE -> Control Panel -> Internet Options -> Connections -> Lan Settings -> Proxy Settings
This is my 'Local Area network (LAN) Settings panel...
- user Proxy server for LAN is checked
- Address is blank
- Port is blank
So do I plug something in here... the ip address of my linksys wi-fi router and a port number or what?
My Java Web Start Preferences won't let me click 'Use Browser' only None or Manual
If I click Manual, I don't know what to plug into the HTTP Proxy and HTTP Port fields...
I tried the ip address of my router... thinking it may have a built in Proxy Server... and port 8080 as indicated by the Help page for the Java Web Start... but no luck.
I really appriceate any help on this...
thanks - Will -
Front End (GUI) for Java Web Based Appl.
Hi Gurus,
I am new to Java. Can anybody tell me, what is the front end(GUI) used in Java web based applications? I was told that Swings/Applets are rarely used. Is there are a 3rd party took to design GUI for Java based applications?
Chooti Babasunilmp wrote:
U mean to say, for JSP/Servlets, "Web based application" as well as "JSP/Servlet" usually implies that the client is a simple web browser.
we cannot have swing as front end?You can use Swing inside an Applet inside a web application, but usually that's not needed, as you already have a client application that's quite powerful (the browser).
Maybe you are looking for
-
How to find out the last closed windows?
I closed several ( 5-6) firefox windows when shutting down my computeer, and after re-staring firefox chose to 'restore previous session' (set by default but failed to so automatically this time). Saddly, in my about:config there was the default of o
-
When using do not disturb function do I have to set each day?
-
Personalization Tables not Updating
Hi all I am running WLCS/PS with an SQL Server 7.0 Database. I created a personalization portal and then I tried to create a new user in order to modify my portal and this message appeared in my WLCS Dos window Pls see attaches file Thanx for your he
-
when i try and answer the phone, i cant hear anything through the phone. the speaker phone and blue tooth work fine.
-
i can't activate my iphone after i restored it ciuple a days ago. when i turn it on, it asks for a language, region and wi-fi, next i have a message "iphone couldn't be activated because the activation server is temporarily unavalaible. Try connectin