Where does the java classes go?
I normally use IntelliJ which automatically puts the java class and the jsp where they are meant to go.
Can some help me.
Can someone please tell me where to put the java class, i have put the jsp pages in the webapps\ROOT but where does the java classes go?
Edited by: Tinkerbelle on Jul 24, 2008 1:46 AM
Tinkerbelle wrote:
sorry being stupid i do that sorry,
If i change the class to type (as someone said in a previous post)That would only work if you already put the bean in the session scope.
Did you try what PaulOckford wrote?
>
i get this error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 6 in the generated java file
Only a type can be imported. com.database.contactDB resolves to a packageDo you have a package structure that looks like this:
com
com/database/ <-- This is where contactDB.class is located
com/database/contactDB/
Because that is what the compiler is saying. Though it may be thrown off by case (see below)
P.S. If you use the jsp:useBean you do not need the import statement which appears to be where the error occurs. (One of the things that makes JSPs so hard to debug is the fact that the error line in the generated java file as referenced above is never the same as the line in the JSP file).
>
An error occurred at line: 3 in the jsp file: /login.jsp
database.contactDB cannot be resolved to a type
1: <%@ page import="com.database.contactDB" %>
2:
3: <jsp:useBean id='db'
4: scope='session'
5: type='database.contactDB'/>
6: <html>
And to be ultra clear - you did compile contactDB from a .java file to a .class file, and the class is called contactDB and not ContactDB correct? The class name is case sensitive and should be the exact same case in the useBean and import statements as in the real class name.
>
An error occurred at line: 3 in the jsp file: /login.jsp
database.contactDB cannot be resolved to a type
1: <%@ page import="com.database.contactDB" %>
2:
3: <jsp:useBean id='db'
4: scope='session'
5: type='database.contactDB'/>
6: <html>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
Apache Tomcat/5.5.26Edited by: stevejluke on Jul 24, 2008 7:33 AM
Fixed compile from .class file to a .java file to compile from a .java file to .class file
Similar Messages
-
Where to keep the java class file which is being used from a form?
Hi,
Actually I am developing a form which has a bean area and the data will be displayed in the bean area in the form of grid. And I will register this form with apps and will run the from Oracle apps. I want to know that there is a java class file that is being refered by the form, where should this java class file be placed and is there any other places where any changes are required so that the form runs correctly from the Oracle apps and can find the java class file.
I am very thankful to each and everyone who will be able answer this question of my.do you mean decompiling? there are tons of java decompilers available out there, what exactly are you trying to do here?
-
Is it possible to put the java classes of an application and run?
Hi All,
Please excuse me if this question seems meaningless / laughable.
We get java class files by compiling the source code with java compiler. To run the application, classpath can be set to the folder where the class files are stored and then run the main class.
Now the question is, is it possible to read the class files to RAM and then run the application. I highly appreciate your help.
Thanks in advance.
ChinnaswamyYou could
1.) copy the class files to a ramdisk
2.) write another class loader that deletes the class files after loading >them from ram
but all of this is probably not necessary.
What exactly would you like to achieve by doing this? Thanks, JoachimSauer.
The idea I have in mind is to first read and store the java class files in C/C++ code and then while running the C/C++ code, read & put the java classes into RAM and run the java application.
This way the decompilation problem can be alleviated for valuable java applications. ( I am not sure, this will work)
Another reason could be speed improvement. Classes in RAM is expected to make the application to run faster than when class files are in hadr disk
With regards
Chinnaswamy -
Inheritance in the java class heirarchy
ok two questions.
1. in the java class heirarchy, do the subclasses inherit all of the concrete methods from the superclass, that the subclass has not overridden. Or just some of them as Sun has deemed necessary?
2. In the situation where you have a custom class that extends another class, can you invoke all of the constructors in the superclass using the super keyword, or just some of the constructors?
Thanks.Fguy wrote:
ok well the Java Tutorial is clear enough on inheritance I suppose. A subclass inherits all of the public and protected members of its parent so I suppose in as much as Sun probably wrote some private methods then that would answer that question.
But it isn't quite so clear on invoking super class constructors. You mention "the usual access rules" which is fair enough, but the Tutorial isn't too clear on those rules that I can see. Al I can see is the constructor of the superclass can be invoked from the subclass. http://java.sun.com/docs/books/tutorial/java/IandI/super.html
But you are implying that there are in fact access rules that can prevent a superclass constructor from being invoked from the subclass. Can you give an example? Would it be a situation where said superclass constructor is accessing one of it's private methods? or does that not matter?
Thanks.If the superclass has an inaccessible constructor (for example, a private constructor which can only be invoked from the superclass itself), there you go. -
Where does the logging in RDBMSRealm go --and-- are some JavaDocs missing?
I see that a LogOutputStream is created in the example
class RDBMSRealm, but where do all of the log
statements go. The LogOutputStream is created as:
log = new LogOutputStream("RDBMSRealm");
but I do not see and file called RDBMSRealm and/or
I do not see the log statements on stdout.
BTW, I do have logging set to the most detailed
level (Info) from the console if this matters.
Also, are there some JavaDocs missing from
Weblogic's Reference website at
http://edocs.bea.com/wls/docs60/javadocs/index.html
LogOutputStream is an example. I do not see the
class when I select the package
weblogic.logging.
Where is it?
Much Thanks
Bill Ralenkotter.Thanks Terry,
Sorry, I should have mentioned that I am using WL6.0.
Does anyone know what I need to do to get the RDBMS Realm log to start on
WL6.0.
About the missing JavaDocs: Also, if I am doing development using these
classes I still do not
understand why they are not on the 6.0 refernce site!
About the missing JavaDocs,
I see java docs for a lot of classes, but what document do I use that
helps me to understand the entire framework? The Programming
Weblogic Security does give this information.
Example question: how do I get a reference to the realm to create
users? Should I even be doing this?
Thanks for your help.
Bill.
"THorner" <[email protected]> wrote in message
news:B4D7B3CBF165D311844100C04F4E3E1B031246@DANCERACE01...
If you are using WLS5.1 you much set the property
weblogic.security.realm.debug=true
then this information will be sent to stdout. This is set to false by
default, as there is a lot of information, and it is a big performance
hit.
I think weblogic likes to avoid some of its APIs being public, which is
annoying at times, but probably reasonable
terry
-----Original Message-----
From: Bill Ralenkotter [mailto:[email protected]]
Posted At: Thu 03 May 2001 16:00
Posted To: weblogic.developer.interest.security
Conversation: Where does the logging in RDBMSRealm go and are some
JavaDocs missing?
Subject: Where does the logging in RDBMSRealm go and are some
JavaDocs missing?
I see that a LogOutputStream is created in the example
class RDBMSRealm, but where do all of the log
statements go. The LogOutputStream is created as:
log = new LogOutputStream("RDBMSRealm");
but I do not see and file called RDBMSRealm and/or
I do not see the log statements on stdout.
BTW, I do have logging set to the most detailed
level (Info) from the console if this matters.
Also, are there some JavaDocs missing from
Weblogic's Reference website at
http://edocs.bea.com/wls/docs60/javadocs/index.html
LogOutputStream is an example. I do not see the
class when I select the package
weblogic.logging.
Where is it?
Much Thanks
Bill Ralenkotter. -
How to read the java class file to convert it in java.
hello all,
i m developing the java application which generated the java code from the java 'class file' .
Can anybody please help me, Is any java support for reading the class file? or how to know the class file format?
I know the application javad, jad, javap which is doing the same thing.
thanks for reply,
- Jayddo you mean decompiling? there are tons of java decompilers available out there, what exactly are you trying to do here?
-
Where to find Java Class File Specification for Java 5.0?
Where to find Java Class File Specification for Java 5.0?
thank you in advance.same place you found it for 1.4Can u give more details? I thought the class spec for Java 1.4 is the same as Java 1.2.
anyone can tell where to find Java Class File Specification for Java 5.0?
Thanks. -
Where does the ipad back up stored
where does the ipad back up stored
iTunes places the backup files in these locations:
Mac: ~/Library/Application Support/MobileSync/Backup/
Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
Note: To quickly access the Application Data folder, click Start > Run. Type %appdata% and click OK.
Windows Vista Windows 7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
Note: To quickly access the AppData folder, click Start, type %appdata% in the search bar, and press the Return key.
Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
Note: To quickly access the AppData folder, move the cursor to the upper-right corner, click the magnifying class, type %appdata%, and press the Return key. -
Where does the word document store?
Hi Expert,
Using webdynpro java to upload the file, where does the file actually store?
I refer to below tutorial but have no ideal where the file is store. Please help.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
Thank you.
Regards,
HenryHi Henry,
Once you reach the Action handler of the FileUpload UI Element your file has already been uploaded and is available in your context attribute. Now depending on the requirement you need to store the file.
If you need to store the file in a shared location then you need to write the file to that location using normal java I/O.
IWDResource resource = element.getMyResAttr();
InputStream is = resource.read(true);
try
/* read bytes from stream and write it to file */
finally
try { is.close(); } catch (final IOException ex) {}
If you need to store the file on the R/3 system then you need to call the function module/BAPI capable of doing so and pass the resource file to the function module. Some times you might need to convert the IWDResource file to a byte array. The code given above can be modified to do that. If there are no function modules or BAPI's capable of storing the Word Document available you will have to write one.
Let me know if this helps.
Regards,
Sanyev -
Hi,
I am in the midst of Installing SOLMAN on RHEL5-ORACLE
Have installed IBM JDK version 1.4.2_10
During the CREATE SECURE STORE PHASE I am getting the following error:
sapinst_dev log file O/P
WARNING[E] 2008-06-09 18:04:43.225
CJSlibModule::writeError_impl()
CJS-30050 Cannot create the secure store. SOLUTION: See output of log file SecureStoreCreate.log:
The java class is not found: com.sap.engine.offline.OfflineToolStart.
TRACE 2008-06-09 18:04:43.225 [iaxxejsbas.hpp:483]
EJS_Base::dispatchFunctionCall()
JS Callback has thrown unknown exception. Rethrowing.
TRACE 2008-06-09 18:04:43.243 [syuxctask.cpp:1382]
CSyTaskImpl::start(bool)
A child process has been started. Pid = 2529
TRACE 2008-06-09 18:04:43.281 [syuxctask.cpp:1382]
CSyTaskImpl::start(bool)
A child process has been started. Pid = 2530
ERROR 2008-06-09 18:04:43.310 [sixxcstepexecute.cpp:951]
FCO-00011 The step createSecureStore with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_SecureStore|ind|ind|ind|ind|8|0|createSecureStore was executed with status ERROR .
TRACE 2008-06-09 18:04:43.317 [iaxxgenimp.cpp:752]
CGuiEngineImp::showMessageBox
<html> <head> </head> <body> <p> An error occurred while processing service SAP Solution Manager 4.0 Support Release 4 > SAP Systems > Oracle > Central System > Central System. You may now </p> <ul> <li> choose <i>Retry</i> to repeat the current step. </li> <li> choose <i>View Log</i> to get more information about the error. </li> <li> stop the task and continue with it later. </li> </ul> <p> Log files are written to /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS. </p> </body></html>
TRACE 2008-06-09 18:04:43.317 [iaxxgenimp.cpp:1255]
CGuiEngineImp::acceptAnswerForBlockingRequest
Waiting for an answer from GUI
SAPINST.LOG file O/P
WARNING 2008-06-09 18:04:43.224
Execution of the command "/opt/IBMJava2-amd64-142/bin/java -classpath /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/launcher.jar -Xmx256m com.sap.engine.offline.OfflineToolStart com.sap.security.core.server.secstorefs.SecStoreFS /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/lib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/exception.jar:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/logging.jar:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/tc_sec_secstorefs.jar create -s SMD -f /sapmnt/SMD/global/security/data/SecStore.properties -k /sapmnt/SMD/global/security/data/SecStore.key -enc -p XXXXXX" finished with return code 1. Output:
The java class is not found: com.sap.engine.offline.OfflineToolStart
WARNING[E] 2008-06-09 18:04:43.225
CJS-30050 Cannot create the secure store. SOLUTION: See output of log file SecureStoreCreate.log:
The java class is not found: com.sap.engine.offline.OfflineToolStart.
ERROR 2008-06-09 18:04:43.310
FCO-00011 The step createSecureStore with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_SecureStore|ind|ind|ind|ind|8|0|createSecureStore was executed with status ERROR .
SecurStoreCreate log O/P
The java class is not found: com.sap.engine.offline.OfflineToolStart
Pls suggest how to resolve this issue
Pls help to resolve this issue
Rgds,
AbhijeetHi All,
I Found the Solution.
The SAPinst tool was somehow not able to extracte the
J2EEINSTALL.SAR files from the JAVA Components DVD.
So I manually extracted the the file in the temporary install folder which the SAPinst creates in the /tmp filesystem (on LINUX by deafult) during the installation process.
The following command is used (I used this on Red Hat LINUX 5.2) to extract the J2EEINSTALL.SAR file:-
/sapmnt/SMD/exe/SAPCAR
-xvf /dump/SR4_Java_Components/D51033521/DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/J2EEINSTALL.SAR
/sapmnt/SMD/exe/SAPCAR -->source directory of the file SAPCAR which is used to extarct CAR / SAR files on UNIX
/dump/SR4_Java_Components/D51033521/DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/J2EEINSTALL.SAR--> destination dir. where the SAPinst tool will read and execute the file.
Rgds,
Abhijeet K -
Why does the main class cannot find symbol symbol : constructor Car(double) location:
class Car .. ??
class Car
{ //variable declaration
double milesStart; double milesEnd; double gallons;
//constructors
public Car(double start, double end, double gall)
{ milesStart = start; milesEnd = end; gallons = gall; }
void fillUp(double milesE, double gall)
{ milesEnd = milesE; gallons = gall; }
//methods
double calculateMPG()
{ return (milesEnd - milesStart)/gallons; }
boolean gashog() { if(calculateMPG()<15) { return true; } else { return false; } }
boolean economycar() { if(calculateMPG()>30) { return true; } else { return false; } } }
import java.util.*; class MilesPerGallon
{ public static void main(String[] args)
double milesS, milesE, gallonsU;
Scanner scan = new Scanner(System.in);
System.out.println(\"New car odometer reading: 00000\");
Car car = new Car(milesS); car.fillUp(milesE, gallonsU);
System.out.println(\"New Miles: \" + milesE); milesE = scan.nextDouble();
System.out.println(\"Gallons used: \" + gallonsU);
gallonsU = scan.nextDouble();
System.out.println( \"MPG: \" + car.calculateMPG() );
if(car.gashog()==true) { System.out.println(\"Gas Hog!\");
if(car.economycar()==true) { System.out.println(\"Economy Car!\");
} System.out.println(\"\");
milesS = milesS + milesE;
System.out.println(\"Enter new miles\");
milesE = scan.nextDouble();
System.out.println(\"Enter gallons used: \");
gallonsU = scan.nextDouble();
car.fillUp(milesE, gallonsU);
System.out.println(\"Initial miles: \" + milesS);
System.out.println(\"New Miles: \" + milesE);
System.out.println(\"Gallons used: \" + gallonsU);
System.out.println( \"MPG: \" + car.calculateMPG() );
System.out.println(\"\"); } }Why does the main class cannot find symbol symbol : constructor Car(double) location:
class Car .. ??
Please tell us which line of code you posted shows 'Car (double)'.
The only constructor that I see is this one:
Car(double start, double end, double gall) -
Where is the member class?
Hi,
I am Ryan.
Here is a small piece of code.
<pre>
if( error.getClass().equals( SoftErrorException.<b>class</b> ) )
throw new JspException();
</pre>
Can somebody tell me where is the member "class" referred in the object SoftErrorException. I checked in the class "Object" and "Class". I also checked in the Java documentation index. I still could not find it.
Thanks in advance
RyanCan somebody tell me where is the member "class"
referred in the object SoftErrorException. I checked
in the class "Object" and "Class". I also checked in
the Java documentation index. I still could not find
it.
Thanks in advance
Ryanclass is not a member. This is part of the language. Also, SoftErrorException is not an Object it is a class. I'm also having a problem finding the documentation for this. I assume it is part of the JLS. ClassName.class is the same as InstanceOfClass.getClass(). -
"The java class is not found:" post clone
Hi.
I've just cloned an 11.5.10.2 environment from one AIX5.2 server running 9.2.0.7 to another server at the same AIX and RDBMS level.
After running the clone steps, the application was automatically started and I was able to access it via Self Service, forms, run concurrent requests etc - in short, I had a working system.
Now, however, when I try to stop or start the application using adstrtal.sh/adstpall.sh, I hit the following:
"The java class is not found: oracle/apps/ad/autoconfig/ServiceControl
Check logfile /data/testcomn/admin/log/TEST_ireaix2/05011011.log for details"
On the command line, when I call the line the script is trying to execute:
/usr/java14/bin/java -classpath "${CLASSPATH}:${JAVA_TOP}:${FND_TOP}/java/3rdparty/stdalone/xmlparserv2.zip" oracle.apps.ad.autoconfig.ServiceControl -e /oracle/testappl/admin/TEST_ireaix2.xml -u apps/<PASS> -m 2 -l yadda –debug
I'm able to bypass this particular error and some of the application processes do start but not all of them and obviously I still have an underlying Java/environment issue.
Any suggestions gratefully received.
Rgds,
JesCheck logfile /data/testcomn/admin/log/TEST_ireaix2/05011011.log for details"What does the log file say?
-
Where does the INI file reside?
I've seen lots of forum posts on using the Properties class to read an INI file, but nothing on locating the INI file in the file system. Most of the examples use a hard-coded simplistic path (c:\temp\myapp.ini) or just the file name with no path.
From my meager knowledge of Java, I think the INI file should be deployed in the package directory with rest of the class files for the package. At any rate, the Java class reading the INI file cannot have a hard-coded directory path since the path may vary from install to install.
What Java statements can be used to identify the path for the run-time package? Where is the best place to place the INI file?
Thanks,
PaulYou put it somewhere in your classpath, as you describe. Then this.getClass().getResourceAsStream("/myapp.ini")gets you an InputStream from which you can read its contents.
-
Where does the JeelyBeans look and feel come from?
Where does the JellyBeans Swing look & feel come from that is used in
Workshop UI?
-NickNick -- Thanks for the kind words.
While we don't have plans to make the look and feel available outside of the IDE,
you may want to check out some of the other look and feel resources within the
Java community such as
www.javootoo.com
or
http://directory.google.com/Top/Computers/Programming/Languages/Java/Class_Libraries/Graphics/User_Interface_Classes/Look_and_Feels/?tc=1
We did use JDK 1.4 for Workshop and were very pleased with its performance and
other aspects.
- Pete Horadan
Workshop Dev Mgr.
"Nick Minutello" <[email protected]> wrote:
I think it would be excellent if BEA made the JellyBeans look and feel
freely available - even getting it added to the Sun JDK.
There is a distinct interest in developing C# clients purely due to the
fact
that Swing doesnt perform and doesnt look good. JDK1.4 reportedly has
numerous performance improvents. What is missing is a good look and feel.
The Jelly Beans look and feel is quite good (I suspect that it is no
accident that its flat look is similar to Visual Studion .NET.).
I think that encouraging developers to remain with Java for GUI clients
can
only be good for Java and in turn J2EE as a whole. A pure java environment
would be much better than a deliberatly mixed environment. Java RMI is
much
simpler than SOAP, etc.
Aside from the ultruistic viewpoint, we would dearly like to use it in
our
Swing applications - perhaps we can stave off a turn to C# / .net clients.
Regards,
Nick
"Carl Sjogreen" <[email protected]> wrote in message
news:[email protected]...
At this point we don't have plans to license the look and feel of the
application (the swing components) separately, but I'd love to hearmore
about what you had in mind.
-Carl
"Nick Minutello" <[email protected]>
wrote
in message news:[email protected]...
I am really interested in the answer to this question... please
=+=+=+=
Does BEA have any intentions of making the look & feel commercially
or
freely
available? (esp for existing, but potentially growing customers ;-)
-Nick
=+=+=+=
-Nick
"Ian M. Goldstein" <[email protected]> wrote in message
news:[email protected]...
It's homegrown. (There is no pluggable look-and-feel at this time.)
Ian M. Goldstein
Developer Relations Engineer
BEA Systems, Inc.
"Nick Minutello" <[email protected]>
wrote
in message news:[email protected]...
Where does the JellyBeans Swing look & feel come from that is
used
in
Workshop UI?
-Nick
Maybe you are looking for
-
Can ODBC configuration data be stored in a Crystal Report?
Post Author: Gary W CA Forum: Crystal Reports We've been running some SQL statements in Access pulling data from a server/database. I decided to see if I could do the same thing in a Crystal Report with the intention of scheduling the report to run
-
Some contacts appear in the search but not appear in the contacts
Some contacts appear in the search but not appear in the contacts and same not appear in iCloud. Using iPhone 4 iOS 5.1
-
Excel 97 avec labview 5.0
Bonjour, Je désire lire une cellule Excel 97 avec LabView 5.0. Comment dois-je faire? Merci.
-
"windows.c​pp" on english windows
Hi all, I am using LabVIEW 8.0.1. we developed a big application which is used to control the whole PCB printer machine. We developed an application with loading subpanels and registering controls technology. When I exit the application and when I le
-
Garage Band/Guitar Help! My notes keep cutting off after a few seconds
So, I am having this problem where when I play my electric guitar, notes don't carry after a few seconds, especially if I try to bend the note. Cords seem to have sustain but whenever I play a solo string and try to bend or tremelo it, it cuts off w