Compile java applications,servlets etc.
I am a newbie to java...what do i need to compile java applications,servlets etc.
first you need java developers kit(jdk)
download it
then r.click on my computer and take it's properties
go to advance properties
go to envirinment variable
set variables
JAVA_HOME set to directory where you installed jdk
CLASS_PATH set to the bin in your jdk
then write a java class and save somewhere as .java file
go to command prompt
change directory to where you save java class
and use javac (yourjavafilename) .java command to compile it
wish you all the best
Similar Messages
-
Embedding a java application (servlets) in a portlet
Hi all,
We have an existing java application that we want to run as a portlet in our portal internet site. The application is a simple search form, which submits parameters (search criteria) and returns results, from there can click on a few other things and open some documents etc. We want all this to happen in the same portlet window, rather than opening out to a new window. Can someone please advise if this can be done? We are running release 1 of 9IAS (and we can't upgrade to rel 2 yet) with PDK March. We would preferably like to do this without touching/reprogramming the java code. I have seen a couple of conficting posts in this forum about this - some say can be done, some say can't be done. Please advise:
1. Is there some kind of wrapper that can be applied to keep this app inside the portlet?
2. What other alternatives are there to getting this java app inside?
3. Are there any step by step guides to doing this?
Any help would be much appreciated. Thanks heaps, SarahI have tried the URL services, it displays the page fine within the portlet. Just one problem though. The links that are embedded in the HTML will open new windows when clicked. We want them to stay within the portlet. Does something need to be changed in my xml file? I have
<renderer class="oracle.portal.provider.v1.RenderManager">^M
<showPage class="oracle.portal.provider.v1.http.URLRenderer">^M
<contentType>text/html</contentType>^M
<pageExpires>60</pageExpires>^M
<pageUrl>http://www.oracle.com</pageUrl>^M
<filter class="oracle.portal.provider.v1.http.HtmlFilter">^M
<headerTrimTag><center</headerTrimTag>^M
<footerTrimTag>/center></footerTrimTag>^M
<convertTarget>true</convertTarget>^M
</filter>^M
</showPage>^M
</renderer>^M
perhaps I need a different renderer? I saw another post had something in the xml :
<inlineRendering>true</inlineRendering>
that looks promising. Will that deliver the results I'm looking for? Where does it get added?
Thanks for any replies. Sarah -
Hello!
I am trying to compile an application.I have already looked through the posts but could not find anything relevant.Here's the error that I am getting:
cannot access Settings bad class file: .\Settings.class class file has wrong version 49.0,should be 48 PLease remove or make sure it appears in the correct subdirectory of the classpath
Settings timeSettings = new Settings();
^
1 error
Thanks in advace for any helphttp://forum.java.sun.com/thread.jspa?threadID=517933
-
Java application hangs during running java native method
Hello,
There is compiled java application.
It hangs at very begginings.
It was detected that in the beggining a new Frame should be created. Then one java library invokes native method. During invoking of the native method application hangs.
Stack is available only until native method invocation.
Thread 25196 "main": (state = IN_NATIVE)
at sun.awt.X11GraphicsDevice.getDoubleBufferVisuals(Native Method)
at sun.awt.X11GraphicsDevice.getDefaultConfiguration(X11GraphicsDevice.java:181)
at java.awt.Window.init(Window.java:271)
at java.awt.Window.<init>(Window.java:319)
at java.awt.Frame.<init>(Frame.java:419)
at javax.swing.JFrame.<init>(JFrame.java:194)
at com.test.ORBManager.Splash.<init>(Splash.java:10)
at com.test.ORBManager.Splash.main(Splash.java:48)
Method getDoubleBufferVisuals(int screen) is used to enumerates all visuals that support double buffering (according to comments in the source code).
Tried to run with "-verbose" options...
I tried to use jconsole и jvisualvm. But did not find anything special.
Also "strace" command showed some results but do not know how to proceed:
select(6, [5], [5], NULL, NULL) = 1 (out [5])
writev(5, [{"b\0\6\0\r\0\0\0DOUBLE-BUFFER\0\0\0", 24}], 1) = 24
select(6, [5], [], NULL, NULL) = 1 (in [5])
read(5, "\1\0\t\0\0\0\0\0\1\211\0\204\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32
read(5, 0x83b57bc, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1275494877, 569746}, NULL) = 0
select(6, [5], [5], NULL, NULL) = 1 (out [5])
writev(5, [{"b\0\6\0\r\0\0\0DOUBLE-BUFFER\0\0\0", 24}], 1) = 24
select(6, [5], [], NULL, NULL) = 1 (in [5])
read(5, "\1\0\n\0\0\0\0\0\1\211\0\204\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32
read(5, 0x83b57bc, 4096) = -1 EAGAIN (Resource temporarily unavailable)
select(6, [5], [5], NULL, NULL) = 1 (out [5])
writev(5, [{"\211\6\3\0\1\0\0\0&\0\0\0", 12}], 1) = 12
select(6, [5], [], NULL, NULL) = 1 (in [5])
read(5, "\1\0\v\0\f\0\0\0\1\0\0\0\377\32\0\0\377\r\307 \0\0\0\0\0\23\372\300\376\3346\34"..., 4096) = 44
read(5, 0x83c31e4, 36) = -1 EAGAIN (Resource temporarily unavailable)
select(6, [5], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted)
I have downloaded from the internet the source code of native method but do not know what I can do with it.
Is it possible to debug native method somehow?
How to detect where the library contans the native method is located?
What other ways can provide more information about reason.
It seems that the problem is related to graphics. Judging by class name "X11GraphicsDevice" it is related to X server. May be some server settings?
The problem is present on SLED 11 machines.
It is not reproduced on SLED 10.
I will be really appreciate for any help.
Thanks in advance.
Vasily.Hi,
Thanks for tip. I used jstack. It gives a little bit more info but I have to few knoledges how to treat the info.
----------------- 24231 -----------------
----------------- 24317 -----------------
0xffffe430 ????????
0x6dd12229 ????????
0xb0ca5898 * java.net.PlainSocketImpl.socketAccept(java.net.SocketImpl) bci:0 (Interpreted frame)
0xb0c9fb6b * java.net.PlainSocketImpl.accept(java.net.SocketImpl) bci:7 line:384 (Interpreted frame)
0xb0c9fb6b * java.net.ServerSocket.implAccept(java.net.Socket) bci:50 line:450 (Interpreted frame)
0xb0c9fb6b * java.net.ServerSocket.accept() bci:48 line:421 (Interpreted frame)
0xb0c9fa94 * sun.rmi.transport.tcp.TCPTransport.run() bci:59 line:340 (Interpreted frame)
0xb0c9fe71 * java.lang.Thread.run() bci:11 line:595 (Interpreted frame)
0xb0c9d236 <StubRoutines>
0xb6f38eac _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread + 0x1bc
0xb7108aa8 _ZN2os20os_exception_wrapperEPFvP9JavaValueP12methodHandleP17JavaCallArgumentsP6ThreadES1_S3_S5_S7_ + 0x18
0xb6f38705 _ZN9JavaCalls12call_virtualEP9JavaValue11KlassHandle12symbolHandleS3_P17JavaCallArgumentsP6Thread + 0xd5
0xb6f3879e _ZN9JavaCalls12call_virtualEP9JavaValue6Handle11KlassHandle12symbolHandleS4_P6Thread + 0x5e
0xb6fb0765 _Z12thread_entryP10JavaThreadP6Thread + 0xb5
0xb71a9373 _ZN10JavaThread3runEv + 0x133
0xb71096b8 _Z6_startP6Thread + 0x178
0xb781a1b5 start_thread + 0xc5
----------------- 24318 -----------------
0xffffe430 ????????
0x1b7bfaf0 ????????
----------------- 24373 -----------------
0xffffe430 ????????
0xb71087be _ZN2os5Linux14safe_cond_waitEP14pthread_cond_tP15pthread_mutex_t + 0xae
0xb70fe2af _ZN13ObjectMonitor4waitExiP6Thread + 0xa6f
0xb718bdc6 _ZN18ObjectSynchronizer4waitE6HandlexP6Thread + 0x56
0xb6f925e3 JVM_MonitorWait + 0x163
0xb0ca5898 * java.lang.Object.wait(long) bci:0 (Interpreted frame)
0xb0c9fb6b * java.lang.ref.ReferenceQueue.remove(long) bci:44 line:120 (Interpreted frame)
0xb0c9fa94 * java.lang.ref.ReferenceQueue.remove() bci:2 line:136 (Interpreted frame)
0xb0c9fa94 * sun.java2d.Disposer.run() bci:3 line:125 (Interpreted frame)
0xb0c9fe71 * java.lang.Thread.run() bci:11 line:595 (Interpreted frame)
0xb0c9d236 <StubRoutines>
0xb6f38eac _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread + 0x1bc
0xb7108aa8 _ZN2os20os_exception_wrapperEPFvP9JavaValueP12methodHandleP17JavaCallArgumentsP6ThreadES1_S3_S5_S7_ + 0x18
0xb6f38705 _ZN9JavaCalls12call_virtualEP9JavaValue11KlassHandle12symbolHandleS3_P17JavaCallArgumentsP6Thread + 0xd5
0xb6f3879e _ZN9JavaCalls12call_virtualEP9JavaValue6Handle11KlassHandle12symbolHandleS4_P6Thread + 0x5e
0xb6fb0765 _Z12thread_entryP10JavaThreadP6Thread + 0xb5
0xb71a9373 _ZN10JavaThread3runEv + 0x133
0xb71096b8 _Z6_startP6Thread + 0x178
0xb781a1b5 start_thread + 0xc5
----------------- 24227 -----------------
0xffffe430 ????????
0x6cbc4021 ????????
0x6cbc232a ????????
0x6cbc3c9a ????????
0x6cc1d5d1 ????????
0x6d41013f ????????
0x6d460f19 ????????
0xb0ca5898 * sun.awt.X11GraphicsDevice.getDoubleBufferVisuals(int) bci:0 (Interpreted frame)
0xb0c9fb6b * sun.awt.X11GraphicsDevice.getDefaultConfiguration() bci:140 line:181 (Interpreted frame)
0xb0c9fa94 * java.awt.Window.init(java.awt.GraphicsConfiguration) bci:51 line:271 (Interpreted frame)
0xb0c9fb6b * java.awt.Window.<init>() bci:66 line:319 (Interpreted frame)
0xb0c9fb6b * java.awt.Frame.<init>(java.lang.String) bci:1 line:419 (Interpreted frame)
0xb0c9fb6b * javax.swing.JFrame.<init>(java.lang.String) bci:2 line:194 (Interpreted frame)
0xb0c9fb6b * com.test.ORBManager.Splash.<init>() bci:3 line:10 (Interpreted frame)
0xb0c9fb6b * com.test.ORBManager.Splash.<init>(java.lang.String[]) bci:4 line:48 (Interpreted frame)
0xb0c9d236 <StubRoutines>
0xb6f38eac _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread + 0x1bc
0xb7108aa8 _ZN2os20os_exception_wrapperEPFvP9JavaValueP12methodHandleP17JavaCallArgumentsP6ThreadES1_S3_S5_S7_ + 0x18
0xb6f38cdf _ZN9JavaCalls4callEP9JavaValue12methodHandleP17JavaCallArgumentsP6Thread + 0x2f
0xb6f638b2 _Z17jni_invoke_staticP7JNIEnv_P9JavaValueP8_jobject11JNICallTypeP10_jmethodIDP18JNI_ArgumentPusherP6Thread + 0x152
0xb6f54ac2 jni_CallStaticVoidMethod + 0x122
0x08049873 ????????
0xb76c9705 ????????The last stack also has "sun.awt.X11GraphicsDevice.getDoubleBufferVisuals(int) bci:0 (Interpreted frame)" but what tode next?
Also I found that the native code is in java 1.5 source code: \j2se\src\solaris\native\sun\awt\awt_GraphicsEnv.c.
How it is possible to compile it? -
Distributing my Java Application
Dear Sir/Mdm,
Hi Java experts.... Is there something that i need to watch out for if i want to distribute my compiled Java application in 'jre' format? Is there something that i need to do such that i will not be legally sued?
ThankxHi Java experts.... Is there something that i need
ed to watch out for if i want to distribute my
compiled Java application in 'jre' format? Is there
something that i need to do such that i will not be
legally sued?
Normally there is nothing that you can do that be a problem.
However, any of the following could lead to problems
1. You used any of the Sun source code, modified it and then used it.
2. You found some source code or class/jar files on the internet or in a magazine and it did not explicitly say it was free to use. And you are using it as is or modified.
3. You found some source code or class/jar files else on the internet or in a magazine and it explicitly said it was free to use but you had to mention that you were using it. And your docs/gui doesn't say that. (There are actually many variations on this.) -
Java application compiles java files in memory
how can I use java application program (that may call method runtime exec or some other techniques) to compile the other java files that were already loaded in memory. (I can not copy those target files to the hard disk with extension java, then compile for security reason).
And once they are compiled, where do you plan to put the compiled .class files? Same security problem, right? Perhaps you planned to load and use them "from memory" somehow? This would be a different security problem. Perhaps you need to rethink what you are doing.
-
Calling Java application from servlet
Hi !
I'm trying to run a Java application from within a servlet with Tomcat 4. I'm using the Runtime.getRuntime ().exec () method. So the application is run in a different JVM as a subprocess of the servlet. I use ObjectInputStream and ObjectOutputStream and a serializable object to enable communication between the servlet and the application.
I tested the application and the serializable object with another Java application that works as the caller and it works fine. However, replacing the caller application with the servlet I get a StreamCorruptedException. The structure of the caller application and the servlet is the same.
My questions are:
- Is there something I should configure in Tomcat to create a subprocess ?
- What is the cause of the StreamCorruptedException ? How do I get it with the servlet and not with the application ?
- Should I use an environment with the call to Runtime.getRuntime ().exec () ? How do I use it ?
- Is the called application forced to run in my servlet's context ?
- Is there a better way to do this ?
Thanks to allHere's my code:
1. The serializable object:
// Object Obj
import java.io.*;
public class Obj implements Serializable
public int n;
public Obj ()
n = 0;
public Obj (int n)
this.n = n;
public String toString ()
return getClass ().getName () + " -> (n = " + n + ")";
2. The application Sub (subprogram)
// Application Sub
import java.io.*;
public class Sub
private static File f;
private static FileWriter fw;
public static void main (String [] args)
throws IOException, InterruptedException, ClassNotFoundException
ObjectInputStream ois;
ObjectOutputStream oos;
Obj obj;
ois = new ObjectInputStream (System.in);
obj = (Obj) ois.readObject ();
f = new File ("Sub.txt");
fw = new FileWriter (f);
fw.write (obj.toString ());
fw.close ();
oos = new ObjectOutputStream (System.out);
oos.writeObject (obj);
ois.close ();
oos.close ();
3. The application AMain (caller application)
// Application AMain
import java.io.*;
class AMain
private static File f;
private static FileWriter fw;
public static void main (String [] args)
throws IOException, ClassNotFoundException
Runtime r;
Process p;
ObjectInputStream ois;
ObjectOutputStream oos;
Obj obj, obj2;
r = Runtime.getRuntime ();
p = r.exec ("java Sub");
oos = new ObjectOutputStream (p.getOutputStream ());
obj = new Obj (5);
oos.writeObject (obj);
oos.flush ();
B.comunica (obj);
System.out.println ("AMain sends to Sub: " + obj.toString ());
try
p.waitFor ();
catch (InterruptedException e)
System.out.println ("Subprogram was interrupted");
System.out.println (e.toString ());
ois = new ObjectInputStream (p.getInputStream ());
System.out.print ("Sub sends to AMain: ");
obj2 = (Obj) ois.readObject ();
System.out.println (" " + obj2.toString ());
oos.close ();
ois.close ();
p.destroy ();
4. The servlet SMain (the calling servlet)
// Servlet SMain
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.io.*;
import java.util.*;
public class SMain extends HttpServlet
public void doPost (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
Runtime r;
Process p;
ObjectInputStream ois;
ObjectOutputStream oos;
Obj obj, obj2;
int state, i;
res.setContentType ("text/html");
ServletOutputStream out = res.getOutputStream ();
out.println ("<html>");
out.println ("<head><title>Sub</title></head>");
out.println ("<body>");
out.println ("Invoking subprogram...");
out.println ("<br>");
try
r = Runtime.getRuntime();
p = r.exec ("java -cp .;c:\\Programs\\Apache~1.0\\webapps\\SMain\\WEB-INF\\classes Sub");
out.println ("...invoked<br>");
oos = new ObjectOutputStream (p.getOutputStream ());
obj = new Obj (5);
oos.writeObject (obj);
oos.flush ();
out.println ("<br>SMain sends to Sub: " + obj.toString () + "<br>");
try
p.waitFor ();
catch (InterruptedException e)
out.println ("<br>Subprogram was interrupted<br>");
out.println ("<br>" + e.toString () + "<br>");
state = p.exitValue ();
out.println ("<br>Subprogram state: " + state + "<br>");
ois = new ObjectInputStream (p.getInputStream ());
out.print ("<br>Sub sends to SMain: ");
obj2 = (Obj) ois.readObject ();
p.destroy ();
catch (SecurityException e)
out.println ("<br>SecurityException<br>");
out.println ("<br>" + e.toString () + "<br>");
catch (IOException e)
out.println ("<br>IOException<br>");
out.println ("<br>" + e.toString () + "<br>");
catch (Exception e)
out.println ("<br>Exception<br>");
out.println ("<br>" + e.toString () + "<br>");
out.println ("</body>");
out.println ("</html>");
So, as you can see, both application AMain and servlet SMain invoke application Sub and pass it the serializable object Obj. Oddly enough, application AMain works fine whereas servlet SMain throws a StreamCorruptedException exception.
johnpoole said:
�It's hard to guess what would cause the exception without seeing code, but the interaction between the processes would differ from that between two applications, because the servlet process is started with a different class loader. I'm not sure which one the jvm started by the call would use.�
How can I enforce that a System classloader be used in the call to Runtime.getRuntime ().exec () ? (I mean by System classloader a classloader equals to the one applications are launched from console).
johnpoole said
�Is there a reason why you aren't starting the second process manually and then connecting to it on a port?�
The idea is providing a Web interface for an application running in the server. The servlet is used to restrict access to this application but once access is granted (passing the servlet) the application should not be constrained. -
I am doing this to compile my Java application
Hi, I am doing this when I click on a button in my application to compile my application in an editor. But my application gets hanged when I do this. Could any one correct me where I am wrong.
Thanks
File file;
JTextPane textForJIF;
JTextArea compileArea;
if(ae.getSource().equals(compileJavaB) || ae.getSource() == javac)
try{
if ( textForJIF.getText().length() > 0 )
//File file = frame.getFile();
String fileName1 = file.getName();
String pathName = file.getPath(),fileName = file.getName();
if ( !fileName.endsWith(".java") )
return;
//String dirPath = file.getParent();
String currentDir = file.getParent();
Runtime rt = Runtime.getRuntime();
startTime = System.currentTimeMillis();
Process p = rt.exec( command, null, new File( currentDir ) );
BufferedReader reader1 = new BufferedReader(new InputStreamReader(p.getInputStream()));
BufferedReader reader2 = new BufferedReader(new InputStreamReader(p.getErrorStream()));
endTime = System.currentTimeMillis() - startTime;
long lg = endTime/1000;
String time = "Time taken: " + lg + "." + (endTime-lg*1000) + " seconds.";
String result = "Java Compiler"+ p + "Time taken:"+time;
String message = "Result";
//for(int i=0;i<10;i++)
String message1 = reader1.readLine();
System.out.println("message1:"+message1);
String messageIn = reader2.readLine();
System.out.println("messageIn:"+messageIn);
// if(messageIn == null) break;
message = messageIn+"\n"+message;
System.out.println("message is:"+message);
compileArea.setText(message);
//compileArea.append(result);
p.destroy();
}catch(Exception ex) { System.out.println(ex); }What is the error you are getting?
-
Pl help ! ! Opening a servlet URL using stand aline java application
Hi Guys, I have a standalone java application. This application will get executed after some by some thread. What I want to do is when this java application is executed, automatically open a URL in internet explorer which is of my servler/jsp and pass the parameters to this servlet/jsp. This servler jsp will intern use EJB and other services to get the data and display it.
How should I automatically open a IE window and pass parameters using this standalone application.
Pl help ! ! !
thanks , Avado you want to open internet explorer, or just access the servlet without internet explorer?
if you want to use internet explorer, you'd want to use
Runtime.exec,
if you want to access the Servlet w/o ie, you would use
URL, and HttpURLConnection classes -
Compiling Java Servlet with Depricated Methods
I have a problem of compiling Java servlets that contain depricated methods. If you compile against modern version of servlet.jar I see depricated methods error messages and if I use a very old servlet.jar it cannot find newer methods. What is is the best solution in this case?
Thank you,
Boris.The best thing to do would be compile your code with the -depreciated option to find which methods have been depreciated and the refactor your code to remove them.
The next best thing is to ignore the messages (they are warnings not errors) and your code should still work -
Compiling java code from a running java application
How does compiling of java code from a running java application work?
I found a class: com.sun.tools.apt.main.JavaCompiler
but cannot find any documentation of how this class works.How does compiling of java code from a running java
application work?Probably most reliably using Runtime.exec().
I found a class:
com.sun.tools.apt.main.JavaCompiler
but cannot find any documentation of how this class
works.For a purpose. You are not supposed to use this class. With the next JRE release or implementation, it might not exist anymore - it's not part of the standard API. -
Steps to execute servlets on Sun Java Application Server
Hi
Could u tell me how to deploy servlets files and how to execute
In specs. the ask us to start cloudscape database server
In my Sun Java Application Server installations, i am not find even a single name as cloudscape
Please anyone guide me get the servelts to execute
thank uWhat specs do you refer to?
Sun Java System Application Server does not include Cloudscape, nor is it required. SJSAS does include a development copy of Pointbase DB Server.
To deploy your servlet application you will need to package them into a WAR file (Web Archive). Then you can either use asadmin CLI or the admin gui to deploy the WAR. The steps are included here: http://docs.sun.com/source/816-7150-10/dwdeploy.html
Now I'm going to assume you application uses Cloudscape. To get that piece running you will need to download and install Cloudscape. You will also need the JDBC drivers for Cloudscape. Copy the JDBC driver jar file to either the <serverinstancedir>/lib directory or modify the JVM settings to include that jar file. Restart the Application Server. You will also need to add a JDBC Resource & Connection Pool. In the admin, create a new connection pool (probably called Cloudscape). Use the appropriate settings for classname and add any additional properties that are necessary (Usually URL, User, Password). Now create a JDBC Resource using that Connection Pool. Make sure the JNDI name matches what your application expects.
Now just access the URL for the application
-Jeff -
Compiling java servlet programs
i have Tomcat 5.0 and SDK 1.5 . I am able to compile java programs. But in servlet programs the compiler is unable to recognize the javax.servlet package(the code below). I have pushed all the JAR files of TOMCAT to the CLASSPATH . But nothing has changed.
javax.servlet.*;
javax.servlet.Http.*;hi,..
javax.servlet.Http.*; should be javax.servlet.http.*; !
even though you have put the jar files in the classpath .. does it point to servlet-api.jar ? if it does.. it should work. Also try out specifing the classpath using the -cp while compiling the servlet program .
--Olakara -
Windows xp runs java application but does not compile it - urgent please
Hi
My new PC(portable) does not compile my java progran:
'javac' is not recognized as an internal or external command, operatable program or batch file.
If you have any suggestion, please let me know!
AriaThanks anyhow;
The following information is sent to beginners site.
I have talked to british, belgian and others regarding this problem. They said it is very expensive and we laughed.
Hi,
Windows XP runs java application but does not compile it. I get following message:
'javac' is not recognized as an internal or external command, operatable program or batch file.
MS-DOS does not exists but a command line edits autoexec.nt having allinformation regarding installed jdk5. I run my java applicat
ion from here. But no compilation.
Environment variables has following information.
JAVA_HOME C:\jdk5.0
CLASSPATH C:\jdk5.0\myPrograms
path %JAVA_HOME%bin
All information in autoexec.nt exists as windows 98 and I run it from command line.
Would you please tell me what is wrong?
Thanks
Aria -
Error while performing SSO with java application
hi ALL ,
I got rhe following error when i call a java application in portal using ticket logon sso
Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
com.sap.test.TicketVerifierException: Request does not contain cookies
at com.sap.test.TicketVerifierServlet.getSSOCookie(TicketVerifierServlet.java:149)
at com.sap.test.TicketVerifierServlet.getUserFromRequest(TicketVerifierServlet.java:94)
at com.sap.test.TicketVerifierServlet.doPost(TicketVerifierServlet.java:80)
at com.sap.test.TicketVerifierServlet.doGet(TicketVerifierServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:484)Hi Sarang,
It seems you are following the two basic pre-req.
It may be now possible that your browser might be not allowing cookies. Which browser are u using? Version etc?
Right now u can try two things:
1) When you have logged into portal, type the following command in the adress bar "javascript:alert(document.cookie)". This will give u a popup displaying the cookies formed when logged into portal
2) Use some software like HTTPWatch or ieHeaders and find out the details. It will give you all the cookie details etc.
You should be able to see the JSESSIONID, MYSAPSSO2 cookies...Let me know the result of above..
Regards
Gaurav
Maybe you are looking for
-
How to update session state from form field values without submitting page?
Hi, I am new to Oracle APEX. I am using Oracle Apex 4.2 on Oracle 11g release 2. The problem is that when I am entering data on a form, when I enter a value in one field and move to the next field, how can I use the value of first field in the valida
-
How do I move a referenced library to new MBP?
I have a 500GB external drive containing scanned files of slides I inherited from my dad. (photos he took from 1940 - 2005). I created an Aperture referenced library that works when I attached that external drive. I'd like to move the files to a larg
-
Everything used to fit. It was only after I removed the music to sync because this is considered a "new" library that the "Other" space appeared to this extent.
-
Any known issues after upgrading OS from Vista to Windows 7?
We have an app using the Crystal .NET from VS 2003. Crystal Reports prints in Vista, but client upgraded to Windows 7 recently and gets an error when trying to print. I have obtained the following infro from the event log: Log Name: Application Sour
-
I get popups about needing to update version and some add ons are expired. I would like to stop these I can't up date. I've downloaded myself and I get the file is corrupt a lot of hours for nothing tried several times downloaded from the library and