Copying a new .class file for WLS to use, proper way?

Hello. I'm doing some servlet development and I would like to know what is
the proper way to deploy any .class files and servlets (also .class files)?
If I just copy them into the proper directory, am I supposed to have to
restart the server? Is that normal, or should WLS just pick up the new one?
It does that with JSPs, can it do that with servlets and supporting classes?
Thanks.

I found out that I was copying the wrong file to the right place (.java
instead of the .class :<). So once I fixed that small little :> problem, I
was off and running. Thank you for your help! :>
"Slava Imeshev" <[email protected]> wrote in message
news:[email protected]..
Hi Peter,
Normally weblogic will redeploy automatically application, either web
or ejb, without restarting the server, when it's copied to applications
directory on the server. Applications should be properly packaged.Servlets
and supported files should be in war file, ejb-s in ejb-jar files.
I'm not sure if it would work right for plain unpacked class files.
Regards,
Slava Imeshev
"PeterH" <!REMOVEBeforeSending! > wrote in message
news:[email protected]..
Hello. I'm doing some servlet development and I would like to know whatis
the proper way to deploy any .class files and servlets (also .classfiles)?
If I just copy them into the proper directory, am I supposed to have to
restart the server? Is that normal, or should WLS just pick up the newone?
It does that with JSPs, can it do that with servlets and supportingclasses?
Thanks.

Similar Messages

  • How to get the .class file for the extended Controller .java file

    Hi,
    I did the below steps.
    1. Created New OAWorkspace
    2. Created New project
    3. Imported the page .xml file
    4. Added new .java file by extending the controller class
    5. Added code in the .java file.
    6. Ran the .xml file
    As I copied all the folders from Unix box, the page was opened.
    But My question was where can I see the .class file the extended controller. It's a .java file. How to compile and get the .class file for this .java file. If I get this .class file, I can go to the page and click the personlize page. and change the Controller name to the new path by ftp ing the new class to the cust.oracle.apps.pos.changeorder.webiui.
    Please let me know how to create the .class file.
    Thanks,
    HP

    All are Java files are stored in JDEV_INSTALL_DIR:\jdevhome\jdev\myprojects\
    In your case the path java would be
    JDEV_INSTALL_DIR:\jdevhome\jdev\ myprojects \cust\oracle\apps\pos\changeorder\webui\
    AND
    Once you compile the java file in Jdeveloper, Class files get generated @ below path
    In your case the path of class would be
    JDEV_INSTALL_DIR:\jdevhome\jdev\ myclasses \cust\oracle\apps\pos\changeorder\webui\
    Duplicate Thread-
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • Need new result file for each iteration of a loop

    I am using TestStand 2010 SP1.  I have a main sequence that essentially does the following:
    Initialize the test equipment and set up the test environment [Sequence Call]
    Start Loop
    Run Tests [Sequence Call]
    End Loop
    Because testing can continue for hours, the resultant report file is enormous and difficult to evaluate. I need to create a new result file for each loop iteration.  I know that starting a new execution of “Run Tests” will create a result file for each iteration of the loop, but the new execution will not have access to the handles to the test equipment that were made during initialization.  The testing is time critical, therefore initializing the test equipment and setting up the test environment must occur outside of the loop. 
    How can I programmatically create a new result file at the beginning of the loop and close the result file at the end of the loop?  I am open to any other suggestions.  Thank you in advance for your help!

    Hi,
    You could modify your process model by making a copy of Test UUTs entry point. Then make the loop that usually tests multiple UUTs into your loop. Take the loop and init out of your sequence. You can init in PreUUTLoop or the other pre loop sequence, and maybe store your references in runstate.root.Locals and pass them to MainSequence. Then you can use Report Options to set it for separate report files.
    cc

  • For WebLogic 5.1, where should I put my class files for my JavaBeans?

    With JBuilder4, I have built an application with JSP and a few Java Beans (Those JavaBeans are instantiated in those JSP files). There are no EJBs. The package name is called 'onlinetrade'. I have tested the application on JBuilder's web server, it works pretty well.
    Now I am moving this application to WegLogic 5.1. I have encountered a problem with WebLogic 5.1
    and do not know where I should place my JavaBean class files --
    Originally, the JSP files for my application are in package path-- ..onlinetrade\jsp
    and the class files for my beans are in the package path -- ..onlinetrade\jsp\bean\*.class
    Now, with WebLogic 5.1,
    1) I have put my JSP files in
    C:\weblogic\myserver\public_html\onlinetrade\jsp
    2) I have created subdirectory and put my bean class files in
    C:\weblogic\myserver\classfiles\onlinetrade\jsp\bean
    When I started weblogic and the first page - login.jsp page can be up and accessed. But when I login and forward to another JSP page called 'controller.jsp', where a bean is instantiated, I got the following error
    Compilation of 'C:\weblogic\myserver\classfiles\jsp_servlet\_onlinetrade\_jsp\__controller.java' failed:
    C:\weblogic\myserver\classfiles\jsp_servlet\_onlinetrade\_jsp\__controller.java:210: cannot access jsp_servlet._onlinetrade._jsp.registerBean
    probably occurred due to an error in /onlinetrade/jsp/controller.jsp line 53:
    registerBean registerBeanInstance = new registerBean();
    I know the javac is working, and a java file is created upon the JSP page, but the problem is -- the bean class files cannot be found!!!
    Where should I create the package path and put my bean class file so that my JSP pages can pick them up?
    Any help is greatly appreciated!
    Thanks.
    --Tim

    I have mine in WEB-INF/classes

  • Error Msg - "You must add the Class files for this enterprise bean"

    Hi,
    I am creating creating new enterprise bean using j2sdkee1.2. I am able to create .ear file in desired folder, but can not create .jar. Please help. Getting above error message.
    remote, home interface files and file having business logic (EJB) is compiled and kept at desired location.
    j2ee server started, Deploytool is started.
    Then I can successfully create new application (.ear file)
    Then I go for creating new enterprise bean. I get same application name in Drop down list named "Enterprise Bean will go in".
    Then I can add home, remote and ejb class file to create jar ("Add" under "Contents" ).
    When I say ok after adding these 3 files, I am getting error - "You must add the Class files for this enterprise bean".
    In the deploytool console, getting error - "java.io.FileNotFoundException: C:\2sdkee1.2\mahesh\ConverterEJB.class (The system cannot find the path specified) "
    Can you please help me where to configure the path?
    Can u please help?
    Please send your answer to - [email protected]
    Cheers!

    the path really begins with '2', without a 'j', ie not c:\j2sdkee1.2\...?
    "java.io.FileNotFoundException:
    C:\2sdkee1.2\mahesh\ConverterEJB.class (The system
    cannot find the path specified) "

  • How to reload class file for java objects in CF MX7

    I'm trying to create a simple java object for use in a CFML
    page. According to the topic "About ColdFusion and Java objects" in
    the CF developer's guide, I can compile my java module and put the
    .class file in the CFusionMX7/wwwroot/WEB-INF/classes directory and
    it'll be dynamically reloaded any time CF sees a new .class file
    there. But the dynamic reload isn't happening; I have to restart
    the CF server to get it to pick up a new version.
    I don't believe this directory is in the "general JVM
    classpath"; I don't find "classes" in the Java Class Path in the CF
    Administrator's System Information page. And I have all the caching
    options turned off on the "Server Settings > Caching" page, if
    that has any bearing on it.
    Are there any known issues around this dynamic reload
    capability, or maybe a more definitive way to make sure the
    WEB-INF/classes directory isn't in the classpath?
    Thanks,
    James

    Yes, I understand. But if I'm reading it correctly, what
    you're saying seems to contradict the documentation
    http://livedocs.adobe.com/coldfusion/7/htmldocs/00001561.htm
    ColdFusion dynamically loads classes that are either .class
    files in the web_root/WEB-INF/classes directory or in JAR files in
    the web_root/WEB-INF/lib directory. ColdFusion checks the time
    stamp on the file when it creates an object that is defined in
    either directory, even when the class is already in memory. If the
    file that contains the class is newer than the class in memory,
    ColdFusion loads the class from that directory.
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_18228&sliceId=1
    Dynamic class reloading for Java servlets classes and
    forcfobject (sic) Java classes is disabled by default in
    ColdFusion MX. To enable dynamic class reloading, do the following:
    Also, I seem to recall that setting worked in a prior
    version. Though I would have to test it again on another machine to
    be certain.

  • Cannot find the class file for com.sap.portal.services.api.connectorgateway

    Hi,
    I was trying the "How to BI JAVA SDK in a Portal iView and get the following error.
    The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.portal.services.api.connectorgateway.IConnectorGatewayService. Fix the classpath and try rebuilding this project.
    I have the following in my portalapp.xml file
    <property name="SharingReference" value="com.sap.portal.ivs.connectorservice"/>
    and i have also added the jar file "com.sap.portal.ivs.connectorservice_api" in the set of lib's
    Has some faced a similar issue? or can someone suggest how I could possibly resolve this.
    Thanks,
    Smitha

    Hi Smitha:
       My webdynpro dc was build failed for "This compilation unit indirectly references the missing type com.sap.engine.services.webservices.espbase.client.dynamic.content.GenericObject (typically some required class file is referencing a type outside the classpath)".
    How should i do?  Thank you!

  • How fast does Apple produce new RAW files for new cameras? I want to buy a D7100 wich is not supported in the present version?

    How fast does Apple produce new RAW files for new cameras? I want to buy a D7100 wich is not supported in the present version?

    Jeannot7 wrote:
    I'm interested in seeing who gets the D7100 support first? Apple or Adobe!! I will go with the one that gets it out first.
    FWIW,
    Adobe keeps a quarterly release schedule for RAW updates. The current Lightroom 4.4 RC expires on 5/31/2013 which typically is an indication that the official release will be close to that date. According to the current list of new supported cameras, the Nikon D7100 is not slated to be supported (but that could change on release).
    http://labs.adobe.com/technologies/lightroom4-4/?tabID=details#tabTop
    The most likely time frame for Adobe support of the D7100 will be sometime in August or September 2013 (although there will probably be a Lightroom 4.5 RC available prior to that for testing purposes).

  • How to build ear files for ADF application using Ant task

    How to build ear files for ADF applications using Ant. The ojdeploy ant task can not find application-level deployment profiles. I am trying to automated build and release for ADF application.
    Any help is highly appreciated.
    Thanks
    Shiva

    Hi Timo
    Thanks for your reply.
    I have successfully created ear file using ojdeploy on jenkins. however when am trying to auto deploy using WLDeploy ant task am getting the following
    error :
    weblogic.application.ModuleException: :oracle.mds.config.MDSConfigurationException:MDS-01335: namespace "/oracle/webcenter/quicklinks/scopedMD" mapped to metadata-store-usage "WebCenterFileMetadataStore" but its definition was not found in MDS configuration
    Please advise how to handle this.
    As am a newbie to ADF, could you please advise if it is possible for the ADF application deployments can be automated for different environments using jenkins due to this MDS dependencies.
    Appreciate your help.
    Thanks
    Shiva

  • How do you specify class file for appletviewer?

    List,
    I have searched over dozens of posts for "NoClassDefFoundError" and "wrong name" as well as "appletviewer" and others. I have read many posts about people who have the same problem I do, but I still can't seem to find a remedy:
    My machine is running Windows ME
    My application runs fine stand-alone
    (it's main() method sets up and runs the init() method it is intended to be an applet)
    My classpath includes "." as well as the JDK directory and the full path to my applications jar file
    All classes are part of the package iCalendar and jar'd in a file called iCalendar.jar
    When I compile and run my app stand-alone I use the following:
    javac ./iCalendar/ViewController.java
    java iCalendar.ViewController
    However I cannot get the application to run in either appletviewer or the browser. My applet tag is as follows:
    <APPLET CODEBASE="." CODE="ViewController.class" ARCHIVE="iCalendar.jar" width=700 height=700>
    I consistently get the message NoClassDefFoundError wrong name: iCalendar/ViewController
    So if anyone could tell me what set up is need to get this app running in appletviewer/browser I would be greatly appreciative, I've been on this all day!
    Patrick

    Drop one iCalendar out. The classpath should not
    contain the path C:\JavaObjects\iCalendar.I did this, I also removed all duplicate copies of the .class files to make sure appletviewer only has the jar file to work with. My new CLASSPATH is:
    .;C:\JavaObjects;C:\JavaObjects\iCalendar\iCalendar.jar
    You should also decide whether to use the jar file or
    not - that can cause problems with netscape -
    weird problems.I definetely want to figure this out using the jar file, I want the entire jar downloaded to minimize trips to the server.
    Try putting iCalendar.jar and iCalendar.html to
    another directory and it should work - somehow
    (probably because of the classpath or because
    iCalendar.html is not where it should be) the
    appletviewer is picking the class from outside the
    jar.I created a directory off of the root C drive and called it temp, I copied the jar file and the html file to the temp directory and then tried appletviewer from the command line:
    NoClassDefFoundError: ViewController (wrong name: iCalendar/ViewController)
    Can this be because the jar file contains all of the class files whom all belong to the package iCalendar? Because to run it stand alone I must address iCalendar.ViewController, do I need to jar these files differently, and if so can I jar the directory structure?
    Thanks again for the help, I have no clue at this point.

  • How to convert a .jsp to a .java/.class file for use in peoplesoft

    Hi java/jsp experts,
    I want to convert a .jsp to a .java/.class file. is there a tool available, please let me know if you have any pointers....
    or can i do it manually:
    these are a few lines that the .jsp contains, and i would like to translate this to be in .java/.class format:
    <%@ page import="sun.misc.BASE64Encoder, javax.crypto., javax.crypto.spec."%>
    <%@ page import="java.util.StringTokenizer" %>
    <%@ page import="java.util.Map" %>
    <%!
    sb.append("<input type=\"hidden\" name=\"orderPage_serialNumber\" value=\"");
    sb.append(serialNumber);
    sb.append("\">\n");
    return sb.toString();
    %>
    how can i translate the above import statements and html elements from jsp to java, please let me know.
    Once i have the .java file created from the .jsp, I will compile .java to create the .class file and invoke the .class in peoplecode by using java apis available in peopletools.
    Thanks in advance.

    Is there a way convert a binary .exe file( compiled by
    another compiler) into Java .class/.jar file ? Anyone
    know of a free program that can do this?It's not possible. There are many decompilers and disassemblers for Java but nothing will take you from ANY binary to Java source. It would be the end of computing as we know it and the beginning of a new era -:)

  • Generation .class file  for Java Concurrent Program

    Hi
    Below if my sample java concurrent program code and registered concurrent program
    package oracle.apps.sample;
    import oracle.apps.fnd.cp.request.*;
    public class Hello implements JavaConcurrentProgram {
    public static final String RCS_ID = "$Header$";
    public void runProgram(CpContext ctx) {
    ctx.getLogFile().writeln("-- Hello World! --", 0);
    ctx.getOutFile().writeln("-- Hello World! --");
    ctx.getReqCompletion().setCompletion(ReqCompletion.NORMAL, "");
    Created a sample directory under $JAVA_TOP: $ mkdir $JAVA_TOPoracle/apps/fnd/cp/sample
    Copied Hello.java into $JAVA_TOP/oracle/apps/fnd/cp/sample and ran below command to compile
    $ cp $HOME/Hello.java $JAVA_TOP/oracle/apps/fnd/cp/sample
    But getting error
    javac: file not found: /oracle/apps/fnd/cp/sample
    Usage: javac <options> <source files>
    use -help for a list of possible options
    Please suggest what was issue and is there any option to generate class file in J developer in local (Windows) instead of doing on application server if yes what are steps to be followed to generate class in windows
    Thanks
    Arjun

    Please post the details of the application release, database version and OS.
    But getting error
    javac: file not found: /oracle/apps/fnd/cp/sample
    Usage: javac <options> <source files>
    use -help for a list of possible optionsHow do you get this error?
    Thanks,
    Hussein

  • Missing class file for extended controller

    Any response/advice is greatly appreciated.
    I've searched the forums, and I saw some had this error, but the post wasn't resolved. We are on 12.1.3. I've done this plenty of times when we were on 11.5.10 with great success. I've personalize a page to look at my extendedController, bounced apache:
    adapcctl.sh stop
    adoacorectl.sh stop
    adoacorectl.sh start
    adapcctl.sh start
    Web page brings up:
    oracle.apps.fnd.framework.OAException: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.classloader.util.AnnotatedNoClassDefFoundError, msg= Missing class: emsc.oracle.apps.emscper.dor.webui.ExtDocsOfRecordUpdateCO (wrong name: ExtDocsOfRecordUpdateCO) Dependent class: emsc.oracle.apps.emscper.dor.webui.ExtDocsOfRecordUpdateCO Loader: oacore.root:0.0.0 Code-Source: /demsci/applmgr/common/java/classes/ Configuration: <library> in /demsci/applmgr/common/webapps/oacore/
    Verified spelling, ensure class file is where it is suppose to be:
    $ echo $JAVA_TOP
    /demsci/applmgr/common/java/classes
    $ echo `pwd`
    /demsci/applmgr/common/java/classes/emsc/oracle/apps/emscper/dor/webui
    Created new /dor/webui directory as user applmgr.
    $ ls -ltr $JAVA_TOP/emsc/oracle/apps/emscper/dor/webui
    total 9
    -rw-r--r-- 1 apdemsci aademsci 3243 Nov 28 18:26 ExtDocsOfRecordUpdateCO.java
    -rwxrwxrwx 1 apdemsci aademsci 3710 Nov 28 18:26 ExtDocsOfRecordUpdateCO.class
    ClassPath has the $JAVA_TOP listed:
    /demsci/applmgr/common/java/classes
    Thanks

    I moved the extended class to the standard directory: $JAVA_TOP/oracle/apps/per/dor/webui
    Recompiled it there
    From Functional Administrator, changed the path of the extended controller to the standard path:
    oracle.apps.per.dor.webui.ExtDocsOfRecordUpdateCO
    Bounced apache/cleared cached.
    Received the same error, very strange....
    Missing class: oracle.apps.per.dor.webui.ExtDocsOfRecordUpdateCO (wrong name: ExtDocsOfRecordUpdateCO) Dependent class: oracle.apps.per.dor.webui.ExtDocsOfRecordUpdateCO Loader: oacore.root:0.0.0 Code-Source: /demsci/applmgr/common/java/classes/ Configuration: <library> in /demsci/applmgr/common/webapps/oacore/
    Verified the class file is there and it is where it is suppose to be:
    $ pwd
    /demsci/applmgr/common/java/classes/oracle/apps/per/dor/webui
    you have mail in /var/spool/mail/apdemsci
    $ ls -ltr ExtDocsOfRecordUpdateCO.class
    -rw-r--r-- 1 apdemsci aademsci 3710 Nov 29 15:29 ExtDocsOfRecordUpdateCO.class
    Makes no sense...
    For your other point, I don't want rename the subdirectory since we have other extensions dependent on the path name.
    Thanks

  • AME Bug: Creates new CFA file for each clip queued!

    Here is my workflow:  I have a 60 minute sequence of a dance performance of about 20 dances.  I queued in AME 20 exports to H.264 files by moving the workspace to the segment I want to export, adding it to the queue with a file name, and repeating for the next section (dance).
    For each queued export I make a copy so I have a low and high resolution export (40 in total).  Finally, the last queued export is a MPEG DVD file for Encore.
    The issue is that when I start the queue, the first thing AME does is conform the ENTIRE SEQUENCE'S AUDIO (not just the clip).  Then it starts the export.  On my computer (Core i7-2600, 24GB RAM), it takes over 15 minutes to conform a 60 minute sequence (the CFA ends being close to 2GB).  While it's conforming the CPU load never goes above 10%.  The export starts for the first clip and that takes less than 90 seconds with all 8 cores pegged at 100% and the GPU over 50%.
    Then AME startes the conforming AGAIN FOR THE ENTIRE SEQUENCE instead of re-using the CFA file it just conformed!
    Why doesn't it re-use the CFA file?  Or, why does it conform the entire sequence if all I'm exporting is a portion?
    And why isn't conforming a multi-threaded process?
    At this rate, it will take all night and consume close to 50 GB of disk space in CFA files.
    Here is what my queue looks like:

    Actually, I think it's working as designed when it conforms upon export.  See the online help HERE.
    It says, in part:
    Premiere Pro does conform audio in uncompressed clips when you use them in sequences with non-matching sample rates. However no conforming is done until you export the sequences or create audio preview files.
    The audio in my Canon MXF file is uncompressed 16-bit Linear PCM, so when I bring in the MXF files all PPr does is create PEK files.  This is really nice since I don't have to wait for conforming to begin editing.  Creating PEK files is really fast compared to conforming.  There is a caviat, though...
    The max file size from my camera is about 2GB.  Anything longer will span multiple files.  If I copy the contents of the CF card from the camera to my computer, the browse to the files using PPr, it will find all the spanned clips and interpret them as one longer video file.  Not problem, and that's how it's supposed to work.  BUT, since PPr is treating all these spanned files as one longer video clip, it WILL conform the audio.
    So to speed things up, I just bring in all the spanned files separately, then sort them and insert them into a sequence in order.  It works fine, and no conforming.
    My problem with AME is when it DOES finally conform, it's not re-using the CFA file.  In my particular case, I'm taking one long sequence and exporting different portions of it as separate exports.  I would think that AME would conform the whole sequence once, then re-use it.  But no, it sees each as a separate export, so each export gets its own identical (but different named) CFA file.
    So now my current workflow is:
    Import in all the video as separate MXF files.
    Import audio from digital recorder (house audio).
    Mark the clapper sync points on the video and audio files.
    Add video clips to a sequence in ascending order
    Add to the sequence the audio track and align the sync markers
    Balance the audio tracks with the mixer
    Create a new sequence
    Add to the new sequence the first sequence
    Render and replace audio so I can get a waveform (it helps find edit points) and conformed audio
    Add titles as needed
    Edit the timeline, transitions, add Encore chapters, etc.
    Export clips to AME queue
    Save early and save often!

  • Location for class files for the custom application

    Hello everyone.
    I want to create new custom application with the short name as "myapp". According to convention what should be the namespace? Should it be mycompany.app.myapp or should it have oracle somewhere in the namespace?
    - Yora

    Hi Yora,
    Package Structure for Standard Application like below
    oracle.apps.myapp.webui  //Structure for Page and Region.xml(PG.xml,RN.xml,CO.class)
    oracle.apps.myapp.server  //Structure for .class files(VO,AM)
    Package Structure for custom Application like  below
    mycompany.oracle.apps.myapp.webui  //Structure for Page and Region.xml
    mycompany.oracle.apps.myapp.server  //Structure for .class files
    Thanks,
    Dilip

Maybe you are looking for

  • The printer prints the fonts too small when I try to print a page off the Internet.

    My new printer is the Photosmart D110a. It is printing documents from Microsoft word but when I try to print a document from an Internet site, the font is so small I cannot read it. How can I adjust the printer settings so the font size is a 12? I  d

  • Secure Link for iTunes store failed... Got anything?

    Every time I try to open up iTunes store, it wouldn't open. I ran the diagnostics report and it said the ( for first time ) that "Secure link for iTunes store failed". The second time I ran it, just to make sure, said that "secure link for iTunes sto

  • When I stop a movie, it doesn't go back to the main menu.

    I am experiencing a very frustrating situation. I have burned a DVD with 2 short movies on it. When I play either of them all the way through, after they're over, it returns automatically to the main menu, which is what I want. However, when I STOP e

  • Apple TV on 802.1x

    Hello, I'm trying to connect an apple TV to an 802.1x network. I followed the instructions at http://support.apple.com/kb/HT5438 but it didn't seem to work. I can't tell if the profile was actually deployed to the device. My other confusion is how to

  • Issue with RN messages between 10g and 11g

    Hi All, We are facing some issues for RN messages; We have configured Rosettanet Actions on both 10G and 11G . In 11G we have the RNTP (remote trading partner) in 10G we have host. The messages posted from host(10g) are not reaching the 11g remote TP