Where to keep common java files

Hi,
I have few Database Access classes which I want to refer from one portal application project as well as one custom login module (java project). Where should I keep these data access classes so that both of the projects can refer it.
Please let me know for any clarifications.
Thanks,
Chandra

Hi Chandra,
You can have a seperate java project with DA classes.
Add it in Project->properties->Project References.
Also in project -> java build path ,add it as an object and check against.the java project in import/export tab of java build path.
Also deploy the java projects along with tha par.
Hope this will resolve ur issue.
Pl reward points if my suggestion helped you..
Thanks n Regards
Deepa

Similar Messages

  • Where does WL keep my Java files that it creates from JSPs?

    Hi,
    I'm using WL 9.2.2 on Solaris 9 (JDK 1.5). When WL builds a JSP page, it presumably converts those JSP pages to Java files before compiling them. Where does it keep those Java files? I'm having a hard time figuring out where my NullPointerException is occurring ...
    java.lang.NullPointerException
    at jsp_servlet._jsp._groups.__addgroup._jspService(__addgroup.java:810)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:525)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at com.myco.nps.im.plugin.NPSIMIntercepter.forwardRequestDirect(NPSIMIntercepter.java:852)
    at com.myco.nps.im.plugin.NPSIMIntercepter.doFilter(NPSIMIntercepter.java:193)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3229)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2002)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Thanks, - Dave

    It deletes them by default. If you want to preserve them, set the "keepgenerated" and "working-dir" (this one so you don't have to hunt for them) elements in the "jsp-descriptor" element in the weblogic.xml file.
    [http://e-docs.bea.com/wls/docs103/webapp/weblogic_xml.html#wp1038491]

  • My browser dowloads everything automatically in MyDocuments. But, for security reasons, I need to setup a different download path, to a different location, where I keep my personal files. How do I change the download path? Thanks, Dan.

    My Firefox 3.6 is setup to download anything automatically in MyDocuments (which I never use).
    For security reasons, I designated a different location on my hard drive, where I keep my confidential files.
    How do I change this downloading path? I tried to change it by going to "Tools-Options-Save Files To", but it does not work.
    Thanks,
    Dan.

    Do you have any extensions that might interfere?<br />
    See [[Troubleshooting extensions and themes]]
    Does it work if you select Tools > Options > General : Downloads : "Always ask me where to save every file" ?
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    # Shockwave Flash 10.0 r42
    # Java Plug-in 1.6.0_03 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • Where to keep ECEPOI.dat file in oracle ecommerce gateway?

    Hi,
    Where to keep ECEPOI.dat file in oracle ecommerce gateway?
    krishna

    Check profile option ECE: Input File Path, also this directory must be in the UTL_FILE_DIR.

  • Keeping generated Java files???

    How do I keep the generated java source code when my
              jsp pages get compiled. I have the following in my properties file:
              weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              weblogic.httpd.initArgs.*.jsp=\
              pageCheckSeconds=1,\
              compileCommand=C:/jdk1.3/bin/java.exe,\
              workingDir=C:/Weblogic/myserver/classfiles,\
              verbose=true,\
              keepgenerated=true
              The only files that are saved are the ones that get generated from
              jsp pages that contain errors.
              

    Hi Leo,
              as you are using a WebApp: sef, your context isn't the default one
              the solution is to put :
              <context-param>
              <param-name>weblogic.jsp.keepgenerated</param-name>
              <param-value>true</param-value>
              </context-param>
              at the begining of your web.xml file in the WEB-INF dir. after the
              "description" tag.
              You can too modify, using this method, the defaults of:
              weblogic.jsp.precompile
              weblogic.jsp.verbose
              weblogic.jsp.packagePrefix
              weblogic.jsp.compileCommand
              weblogic.jsp.pageCheckSeconds
              but it seems (at least I have not been able to do it...:) )
              that this is not possible with:
              weblogic.jsp.workingDir
              to put the generated file in other place.
              PacoG.
              P.D.: Pay attention to the fact that the generated files will be
              remote accesible at the URL:
              http://yourserver/yourwebapp/_tmp_war/yourpackageprefix/yourgeneratedfile.ja
              va
              and
              http://yourserver/yourwebapp/_tmp_war/yourpackageprefix/yourgeneratedfile.cl
              ass
              > Is there another location where the jsp properties are set? I notice in
              my
              > console that
              > keepgenerated is set to false regardless of what I have entered in my
              > properties file.
              >
              > <WebAppServletContext-sef> registering JSPServlet with initArgs
              > '[JspConfig:verbose=true,packagePrefix=jsp_servlet,compileCommand=javac,
              >
              workingDir=c:\ejb_examples\sef\_tmp_war,pageCheckSeconds=1,superclass=null,
              > keepgenerated=false
              >
              > "murali" <[email protected]> wrote in message
              > news:[email protected]...
              > > hai,
              > > it is working fine with me.
              > > iam able to get java files.problem may be something else.
              > > my code as follows:
              > > weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              > > weblogic.httpd.initArgs.*.jsp=\
              > > pageCheckSeconds=1,\
              > > compileCommand=/jdk1.2.2/bin/javac.exe,\
              > > workingDir=/tools/weblogic/myserver/classfiles,\
              > > overbose=true,\
              > > keepgenerated=true
              > >
              > > bye,
              > > murali
              > >
              > > Leo Lam wrote:
              > >
              > > > How do I keep the generated java source code when my
              > > > jsp pages get compiled. I have the following in my properties file:
              > > >
              > > > weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              > > > weblogic.httpd.initArgs.*.jsp=\
              > > > pageCheckSeconds=1,\
              > > > compileCommand=C:/jdk1.3/bin/java.exe,\
              > > > workingDir=C:/Weblogic/myserver/classfiles,\
              > > > verbose=true,\
              > > > keepgenerated=true
              > > >
              > > > The only files that are saved are the ones that get generated from
              > > > jsp pages that contain errors.
              > >
              >
              >
              

  • Where SAP keep the attachment files?

    Dear all
    Our user attach some files thru VA23 and then he ask me where SAP keep the file?
    Will it eat our server hard disk??
    I've search on our server using find / -name but didn't found
    My friend said it is on the transaction table
    but how to know which table ?
    Can anybody help?
    Thanks
    Regards,
    Della

    Hello Della,
    Normally it stores the attachments in the SAP database ( if you are not using content server).
    > Will it eat our server hard disk??
    Since it stores in the database, obviously database will grow. depends on the size of attachments used.
    > I've search on our server using find / -name but didn't found
    Since its in the database, you cannot find in the file system using "find command". Im not sure about which table it stores. But let me see..
    Cheers,
    Jazz

  • Where are all the .java files????

    I placed a few of Oracle's demo JAR and fmb/fmx files on my server to test a couple of things, and they are working fine. (I moved them over to the server by copying the JAR file off my local machine and pasting then into the forms90/java folder on my server. Then I copy and pasted the fmx and fmb files over and created a [this_demo] profile for each one I was using. I also added the .jar to the formsweb.cfg)
    Anyways.....
    I would like to look at the actual code for one of these demos, but can't find the .java file anywhere. It's not in the JAR file. All that is in the JAR file is META-INF and oracle/forms/demos/enhancedItems2/.class(es) files.
    I also downloaded sun's juggling duke JAR file(s) -juggler.jar and methodtracer.jar. I created a test form and got Duke to juggle just fine, but I would like to take a look at the .java code. Where should that be???
    Thanks in advance

    An error occured when trying to open the file for reading. Filename: ".\jad\tmp\MOLine.java"
    Current Working Directory: C:\Program Files\Cavaj Java Decompiler\
    System error message: The system cannot find the file specified.
    C++ exception: ios: failbit setDo you get the same error if you use a directory name which has no space in name?
    Question is, when I am trying to decompile MOLine.class to produce MOLine.java, why is it looking for MOLine.java?Most probably because you cannot decompile the class file (I believe if it was possible, Oracle would have provided the java file).
    Thanks,
    Hussein

  • Where to keep the log file and the mdf/ndf

    Hi ,
    While going through the book of Kalen Delaney "inside sql server"  I got statement  "A general recommendation is to put log files onto their own physical disk. Here I am bit confuse that we have to keep log file in same hard
    disk separate derive or in separate hard disk itself. On My DB server has only one hard disk, with three logical partition, so if I keep my log file MDF on different derives will I get the performance.
    Thanks in advance for reply........
    Regards Vikas Pathak

    @sateesh : but as per link "http://msdn.microsoft.com/en-us/library/bb402876.aspx"
    This rule checks whether data and log files are placed on separate logical drives. Placing both data and log files on the same device can cause contention for that device and result in poor performance. Placing the files on separate drives allows the I/O activity
    to occur at the same time for both the data and log files.
    This is probably as this is the best they can do. Checking that the logical drives are actually two different physical disks is little out of scope from what you can do in SQL Server.
    It is also worth pointing that the rule specifically refers to spinning disks. SSD disks do not have this problem.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Where is the running JAVA file is located

    Hey,
    lets say my java file would be in C:\package1\whereIam.java
    if I run this program, how can I ask (command ?),
    in which directory the running java file is located.
    i.e. I would like to get C:\package1
    Aykut

    It's actually more complicated than that. The class could be in a jar file... would you want the directory the jar file is in? Well, I'll let you deal with those issues. You can get a URL to your class like this, I think:URL me = this.getClass().getResource("/" + this.getClass().getName());

  • Problems keeping generated java files

    hi!
              I have a war containing a lot of jsp files.
              I want those files to be precompiled when I start my server, only if the war file has changed.
              I also want to keep the generated files,
              So that the next time I start the server
              It won't need to precomile them (unless changed, ofcourse).
              I set the "keepgenerated" flag and "precompile" flag to true, in the weblogic.xml file.
              i also added:
              <context-param>
              <param-name>weblogic.jsp.keepgenerated</param-name>
              <param-value>true</param-value>
              </context-param>
              in the web.xml
              but everytime I start up the server, it deletes all
              the old generated files, and precompiles my jsp all over again.
              I also tried not using the pre-compilation option at all,
              just to see the effect that "keepgenerated" flag had,
              but the generated files were still removed each time i restarted the server.
              Is it at all possible to keep those files?
              If so, how?
              thanx,
              Einav
              

              I tried using jspc to precompile the jsp files and deploy the resulting class files
              (and the jsp files). This way the server never regenerates the files or compiles
              the servlets.
              

  • Where are the JSP  Java Files stored in WL8?

    Hi there,
              i'm looking for the .java-Files generated from the .jsp-File. I have already set the property "JSPKeep Generated".
              Thanks for your help
              cheers immo

    I don't know if this varies by WLS version, and you haven't specified which version you are using, but in my WLS 8.1SP2 distribution, they are stored at:
              c:/bea/user_projects/domains/<domain>/<server>/.wlnotdelete/extract/.../jsp_servlet/.../*.java

  • 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?

  • Where to keep the Resource files in Jdeveloper ADF Applicatoin

    Hi
    our ADF application required set of XML file, i created a Folder called Resources and kept them under it.
    DataModel
    --------------> Application Sources
    ------------------------------->Packages
    ------------------------------------------------>java Classes
    --------------> Resources
    -------------------------------> XML files
    i am trying to access the XML file from Java Classes.
    for Testing perpose i created sample java class, and access the XML file like "Resources/XMLFile.xml", it was working file.
    So i refered the XML file path as "Resource/XMLFile.xml" in my classes and created datacontrol and placed them into jspx file. i ran the jspx file but i am getting file not found Exception.
    please suggest me how to deplay to XML file along with my application
    Thanks

    knidhi
    Please state your Jdeveloper version when you post. It can make a difference.
    What are the XML files? I assume they are not the XML files that the entity, view object etc are, but external XML files that you use for what? You need to read them for what purpose?
    This is a design decision, but perhaps they should instead be moved into the database, and you create an entity object that references that data, then use the entity as you would any normal entity.
    Otherwise, have you tried putting the XML files in the same package as the java classes, and does that work?
    Stuart

  • Where to keep the jar files

    I have some common classes that I want use across the SWCV/namespaces/Mappings. What is the best place to import.
    1. In Imported archives of  each name space for each swcv
    2.  Create a shared name space in each SWCV and place in this swcv under imported archives.
    3. Create a separate SWCV/name space place it under this and create a dependency in the SLD.
    Please advice.
    Monika

    Hi Raja,
    Imported Object RFC / IDOC would be common to all namespaces of a particular SWCV.
    However each namespace wud have "imported Archives" which independent of the namespace
    hope that cannnot be shared commonly across the namesapces
    correct me ??
    srini

  • Where to keep the html files in the server??

    Hi,
    I am very new to this field. I have installed iplanet webserver enterprise edition 6.0. I managed to turn on the webserver.
    But, now I am not able to access the home page of my webserver. I am getting the following error messages in the error log.
    [16/Nov/2003:19:13:19] config ( 2430): for host 141.12.36.208 trying to GET /first.htm, func_exec reports: cannot find function named NSServletNameTrans
    [16/Nov/2003:19:14:02] config ( 2431): for host 141.12.36.208 trying to GET /murthy/first.htm, func_exec reports: cannot find function named NSServletNameTrans
    I do not know what these mean. But, I understant that there is some proble with the configuration. Can someone kindly help me!!!!
    Thanking you,
    Murthy.

    Hi Murthy,
    There is a line in your obj.conf that you need to remove:
    NameTrans fn="NSServletNameTrans" name="servlet"
    If you remove this line your server will work fine.
    The other thing is that if you are not using java stuff in your web pages go to web admin for the server and uncheckthe two Java enabled for the web site.
    I hope that helps,
    Krishna
    Hi,
    I am very new to this field. I have installed iplanet
    webserver enterprise edition 6.0. I managed to turn
    on the webserver.
    But, now I am not able to access the home page of my
    webserver. I am getting the following error messages
    in the error log.
    [16/Nov/2003:19:13:19] config ( 2430): for host
    141.12.36.208 trying to GET /first.htm, func_exec
    reports: cannot find function named
    NSServletNameTrans
    [16/Nov/2003:19:14:02] config ( 2431): for host
    141.12.36.208 trying to GET /murthy/first.htm,
    func_exec reports: cannot find function named
    NSServletNameTrans
    I do not know what these mean. But, I understant that
    there is some proble with the configuration. Can
    someone kindly help me!!!!
    Thanking you,
    Murthy.

Maybe you are looking for