EJB accessing web app classes

hi,
From an ejb classs, How can i access the classes in WEB-INF/classes folder of web application.
I am using websphere application server.
Thanks,
Sridhar

If you're using Java EE 5, the best way to share classes between the
modules in an .ear is to put them in a .jar and place the .jar in a directory
called "lib" at the top-level of the .ear. That guarantees that all
modules have visibility to the shared classes.
If you're using J2EE 1.4 or earlier, it's a bit more involved. You can put
the shared .jar anywhere at the top-level of the .ear, but you need to
edit the MANIFEST.MF of each module that needs to share the classes
and set its Class-Path attribute to the relative location of the shared
.jar.
--ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • EJB accessing web application classes

    Hi,
    what is the right method to enable packaged EJB to access classes of a
    web application? Packaging both the EJB and web application in same
    ear is not possible in this situation. We are running WebLogic 6.0 and
    ejb is in
    wlserver6.0/config/mydomain/applications/EJB.jar
    and the classes it should use are in
    wlserver6.0/config/mydomain/applications/application_name/WEB-INF/classes,
    i.e. not packed into war -package. adding
    wlserver6.0/config/mydomain/applications/application_name/WEB-INF/classes
    to WebLogic's CLASSPATH enables the ejb to deploy but seems to screw
    other deployments.

    Please address calling and EJB from a JSP using the EJB to JSP tags...?I'm throwing
    ClassCast errros on Object...
    William Kemp <[email protected]> wrote:
    This is addressed numerous times in this newsgroup and others. So, if
    you are
    insterested in additional explanations, a search of the newsgroups will
    be
    productive.
    The WLS 6.x classloading scheme for enterprise apps, ejbs, and webapps
    does
    not permit and ejb to access webapp classes in the WEB-INF/classes directory
    unless those classes are placed in the java system classpath, which,
    you have
    found, creates other problems.
    If classes are needed by both webapp and ejb, place them in a utility
    jar file
    that is packaged in the ear with the ejb, or webapp, or both, and refer
    to
    them with the Class-Path manifest directive in the ejb jar file or the
    webapp
    war file.
    For the details, see:
    http://e-docs.bea.com/wls/docs61/programming/packaging.html#1029830
    and the 7.0 stuff is good, too:
    http://edocs.bea.com/wls/docs70/programming/classloading.html#1029830
    Bill
    janne wrote:
    Hi,
    what is the right method to enable packaged EJB to access classes ofa
    web application? Packaging both the EJB and web application in same
    ear is not possible in this situation. We are running WebLogic 6.0and
    ejb is in
    wlserver6.0/config/mydomain/applications/EJB.jar
    and the classes it should use are in
    wlserver6.0/config/mydomain/applications/application_name/WEB-INF/classes,
    i.e. not packed into war -package. adding
    wlserver6.0/config/mydomain/applications/application_name/WEB-INF/classes
    to WebLogic's CLASSPATH enables the ejb to deploy but seems to screw
    other deployments.

  • Orion-web.xml -- web-app-class-loader

    Hi all, I posted this in the jDeveloper section and someone suggested that I ask you guys what the importance of the orion-web.xml file is. Currently my files looks like ...
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE orion-web-app PUBLIC "-//Evermind//DTD Orion Web Application 2.3//EN" "http://xmlns.oracle.com/ias/dtds/orion-web.dtd">
    <orion-web-app servlet-webdir="/servlet/">
    </orion-web-app>
    But it keeps adding the line that I mention below...
    I have a system that consists of multiple projects. When I deploy all projects they all work fine except for one. We discovered that this is due to the following line in the orion-web.xml file in that project ....
    <web-app-class-loader search-local-classes-first="true"/>
    I removed that line and everything is now fine. However, whenever I open up the application in jDev is puts that line back (even if I don't make changes).
    Is there a setting somewhere that is forcing this line to be put there and, if so, why? And how do I switch it off?
    Thanks,
    Russell

    Hey Steve,
    I must admit that this post confused me a bit.
    I can find no deployment plan editor. We have a WAR Deployment Profile, an EAR Deployment Profile and an EJB JAR Deplyment Profile.
    I use the debug functionality (using the embedded OC4J) to test the application locally during development and then deply the EAR Deployment Profile to an EAR file which then gets deployed using an Application Server.
    Further to this I have tried deleting the file (from everywhere), changing the EAR Deployment Properties and even changing the code within the ORION-WEB.XML to say <web-app-class-loader search-local-classes-first="false"/> all to no avail.
    If I remove the file completed, it add its back when I reopen the project. If I change it to false, it changes it back to True.
    Very confused I must admit.
    Thanks,
    Russell

  • How do I show/refresh data from an Access Web App in an Excel spreadsheet saved in a Document Library on Sharepoint 2013 online

    I have an Access 2013 Web App in my Sharepoint 2013 online website. It contains a query to report on its data (several, actually, but let's keep it simple). I want to connect an Excel spreadsheet to the query, visualise the data in pivot tables/graphs/whatever,
    save the spreadsheet in a Document Library, and let other team site Sharepoint users open the spreadsheet (preferably in Excel online, but with Excel client if it has to be) and see/copy the data, refreshed with the latest information from the Access Web App.
    Simple, surely!
    The way I'm doing it at the moment is to create an ODC file to connect to the cloud-based Access 2013 database, save that ODC in a Data Connection Library in the SP site, and use the saved ODC file as data source in the Excel spreadsheet. This works and
    successfully keeps everything 'in the cloud' but I can't get it to refresh in Excel Online, and if I open the spreadsheet in Excel Client I have to enter the database password every time to refresh it. I don't really want to issue this password to everyone
    who might want to view the data. There must be a better way than this ODC method, I suspect.
    Googlings on this have led down various blind alleys - Excel Services, PowerPivots, Web Parts - but I'm stuck on which to follow through. Please, someone, point me to an article/book/website that explains how to do this step-by-step in simple language..
    thanks
    Jonathan

    I don't see any quick way of achieving it - at least there's no such functionality exists in SharePoint. All you can do, develop an event receiver that will update the fields in the list item once the excel file is added/updated. You can use OpenXml API
    to manipulate the excel file.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Server communications error in Sharepoint365/Access web app

    I'm having a similar issue to this post using Office365 (academic). I have an
    Access web app that was working fine until about 1 week ago when suddenly became very slow to start on a web browser, and then any changes I make in Access 2013 and then attempt to save results in a dialog box "Please wait while we attempt to save changes"
    followed by "Please wait while we attempt to contact the server. Press Esc to quit". Finally, it sometimes fails with "An error occurred in the client while attempting to communicate with the server 'https://<url>.sharepoint.com/sites...
    Please contact your system administrator of technical support". If I wait awhile and try again, it usually succeeds. If I try too quickly, then I get the dreaded " '_AppHomeForm' cannot be saved because someone else has made changes to it."
    I end up having to discard changes and start over again.
    I've already deleted the local cache to no avail.
    Is anyone else experiencing similar problems? The other post indicated that the problem magically went away after awhile - I'm hoping for the same but it's been more than 1 week now.

    Glad to hear that. If the problem came back, please feel free to contact us. We'll be happy to help.
    Best Regards,
    Steve Fan
    TechNet Community Support

  • Unknown deployment tag - web-app-class-loader

    I can create the ear file with jdeveloper, but when deploy in 9iAs with the ear file, the next error apaers:
    Deployment failed:
    Unknown deployment tag in
    orion-web.xml:
    <web-app-class-loader>;
    nested exception is:
    java.lang.InstantiationException:
    when deploy the system show the web module.
    I have a CMP entity bean and too show in deploy.
    I don't know wath can I do.
    Please Help Me
    Miguel Angel Caro
    [email protected]

    I manually hacked the EAR file generated by JDeveloper 10g and removed the offending tag from the orion-web.xml
    After removing the tag I was able to deploy the EAR to 9iAS (9.0.2.3) but now I am getting runtime errors...
    Anyone who has gone through this please let me know!
    Thanks!

  • Data sync to external SQL from Access Web App

    Hi all
    Am I dreaming or does creating a table in an Access Web app based on an external SQL Azure database table (not the intrinsic one) end up being an import not a sync?  It doesn't even seem to update when i open the external table and refresh it?
    I am adding new records at the external SQL source and they are not updating in the table in the WebApp
    Is anyone having similar problems?
    Cheers
    Sally

    Hi Sally,
    >> I am adding new records at the external SQL source and they are not updating in the table in the WebApp
    Do you mean that you import a table from an external SQL Azure database into Access Web app, the data in Access Web app did not update after you change the an external SQL Azure database data? In my option, this is expected behavior if you are using import
    table. Importing from another database would not achieve that, and it only achieves copying data from another database. I am afraid that you could not achieve your requirement from Access Web app.
    As far as I know, the database of Access web app is Azure DB, I think you could sync the Access web app Azure DB and External Azure DB, you could refer the link below for more information.
    Reference:
    http://azure.microsoft.com/en-us/documentation/articles/sql-database-get-started-sql-data-sync/
    I am not familiar with Azure DB, and if you have issues about Azure DB, I will recommend you go to the link below for help.
    Reference:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ssdsgetstarted
    Thanks for your understanding.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Access Web App - Need some advice with query (text to number problem)

    In an Access Web App I want to create a query.
    I have two tables which are related but in a bit complicated way. For some reason I have a text field in which I save a number. This number relates to the ID of another table. When I combine these two tables in a query, it's not working because the textfield
    cannot query the (ID)number field.
    Is there a way, in this query so that I covert the text field to a number so the query will work?
    I tried to do it with the "Parse" function but no luck, so far.
    Thanks, Mike

    Hi Mike,
    Based on the description, you want to create a query by joining a text filed with number filed?
    Did I understood correctly? If so, as far as I test, it works in Access 2013 web app. Here is the screen shot for your reference:
    If I misunderstood, please feel free to let me know.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Accessing an SQL Server Database created by MS Access Web App

    1.I have tried to use MS Access Web App which has created an SQL Server Database. I would like to access the database using SQL Management Studio Express 2014.  In access I can see the server name on windows.net and the database name but I do not know
    how to connect to this using SSMS Express 2014. Can you please help?                                                                         
    2.I also want to view our emails on MS Exchange in real-time. In MS Access Jet I can do this by linking the folders as tables. Is there a way of doing this in SQL Server? If not can I have a separate MS Access Jet with linked tables which I can then link into
    my SQL Server as an OLEDB Linked server?                                                                                                                         
    3. If going for the Linked Table in Jet solution where can I store it so that my MS Access Web App will have access to it?

    Hi gkounis,
    I don't think it support link MS Access Jet with linked tables in SQL Server.
    Can you share some info about your MS Access Web App?
    Regards,
    Black

  • Macro Timeout Error- MS Access Web App 2013

    Hello everyone,
    I have a MS Access Web App built with a lot of different tables and everything works fine. I have this one table with a number of fields (70 different fields), and some of them are lookups to other tables or a dropdown menu. In our company
    we were using only SharePoint earlier and now we are migrating to access web app. I need to copy or import all the data that we had previously into that one table and then be able to do different types of data manipulations. 
    I have created a data macro to copy all the records even the lookups (a separate thread is available if anyone is dealing with that problem). When I try to copy say 500 records this works fine. But, when I try to copy more records it throws me a timeout
    error. It only works for 60 seconds and then it stops and throws an error. Is there a way I can increase the timeout? Or has anyone else faced the same problem?
    Please advise.
    Thanks in advance.

    The recommended way is to use an Access desktop database and connect to the Azure database behind your App. The firewall and connection information is under File> Info > Connections.
    You can then have linked tables to your SharePoint lists and to your Azure tables, and write append queries to copy the data over.
    -Tom. Microsoft Access MVP

  • Using MS Access Web App, can you set the tab order of the fields on a form?

    Using MS Access Web App, can you set the tab order of the fields on a form?  Doesn't appear to be a property.  I don't see a programmatic method.  I saw someone suggest using goto control on the after update event trigger but what if the person
    doesn't edit the field?  No event would be fired.
    Jim

    Hi Jim,
    >>Using MS Access Web App, can you set the tab order of the fields on a form?
    I am afraid you could not. In Web applications, the tab order is set automatically and cannot be changed.
    (From
    https://support.office.com/en-au/article/Set-the-tab-order-for-controls-3d7f749c-5a53-42b2-bb0e-2323fa044e2e)
    >> I saw someone suggest using goto control on the after update event trigger but what if the person doesn't edit the field?  No event would be fired.
    The goto method is a workaround, but it should be triggered by a specific event. What I can figure out is changing the order of the fields.
    If this is a feature you want to include in future versions of Access Web app, please submit a feedback as the picture below:
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Access Web App - 404 File or Directory not Found

    Trying to create a Sharepoint 2013 Access Web App, app creation completes successfully, I can check in SQL and the database for the Web App is created successfully also.  When I try to open the Access App i get a 404 - File or directory not found.
    Any ideas, I do not have an Office Web App Server setup, is this required?
    Thanks, TJ

    Been so long that I don't exactly remember.  I can't remember what I had in DNS that was causing the issue.  Currently though, I have my Sharepoint apps zone, which contains a CNAME entry with the following information:
    Alias name: *
    FQDN *.(DOMAIN).COM
    FQDN Target: SP1.(DOMAIN).COM
    Where (DOMAIN) is my domain.  Hope this helps, I will look a little more and try and remember what I did.

  • Developed Access Web app on Office 365 - cannot publish it to On Premises SharePoint 2013

    I developed an Access Web app, which works fine on Office 365.
    Now I want to deploy it to our on premises SharePoint 2013 farm
    After I upload the .app package I created from it to our app catalog it shows 'Valid App Package = no':
    In the ULS log I found the following:
    There were errors when validating the App package: There were errors when validating the App Package. Other warnings / errors associated with this exception:  The current version of SharePoint is less
    than the SharePointMinVersion specified in the app manifest. CurrentVersion='15.0.4569.1000', SharePointMinVersion='16.0.0.0'
    Is there any way that I can work around this, other then recreating the app manually on our on premises farm?

    Hi,
    Please check the SharePointMinVersion in AppManifest.xml file in your Office 365 app and modify it to "15.0.0.0", then deploy the app to SharePoint on-premise.
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Updating a SharePoint Calendar and sending email notifications based on information from an Access Web App

    Hi MSDN Forum,
    I have created an Access Web App that I am hoping to add some functionality to. I am looking to provide email notification to different users from my organization (a field within the Access Table) when the current date approaches the renewal date (another
    field within the Access Table). I would also like to display all renewal dates on a SharePoint Calendar for users to see. Any advice on how to do this would be much appreciated.
    Thanks!

    I'm not familiar with how Access Web Apps work. However, on the SharePoint side of things, it looks like a workflow will be your best bet. Are you using Visual Studio? I've created a few tutorials on sending email notifications in Visual Studio 2012. https://youtu.be/JFdiQEyDkEk

  • Integrate web part page into access web apps

    Hi All,
    Im using SharePoint 2013 online and Office 2013
    I am working on an access project which would allow the user to upload documents to the documents folder in SP from within an Iframe in an access app all in the same SP.
    The idea is that rather than having to move from one IE tab to the other the user can drag and drop the document in the iframe which will be in the pop up. then have a SP document list displaying bellow this iframe to confirm that the file has been
    indeed uploaded. When I load the app I get a "This content cannot be displayed in a frame" my idea is based in a book "Professinal Access 2013 Programming" chapter 10 Inlining a web app in access web app. I have also read that I can have
    a website viewer which can display a website, folder or file but its asking me for the path which I don't know and it doesn't take URLs.
    I have googled and searched this forum but cant seem to get the documents forlder to display in the iframe.
    I hope im clear and you guys can help me resolve this task.
    Thanks

    Hi,
    You may use powershell script in order to copy et move your page to another location.
    Have a look at this :
    https://gallery.technet.microsoft.com/office/Copy-all-SharePoint-Files-0999c53f
    Best regards.

Maybe you are looking for

  • Write to measurement file note: x values only guaranteed for one data signal?

    Hi everyone, Attached is a vi I have developed... When I save the data my .lvm file has a note in the header than says" X values only guaranteed for Power (Filtered)".... Power is one of 9 signals... I am not sure what this note means, but I assume t

  • Layers of Smart Playlists don't auto update

    I set up a smart playlist that only included songs not played in the past week (called 'unrecent'). This list dropped from about 200 songs to 150 songs last night after playing a lot of tunes. I have another smart playlist that combines the above 'un

  • How to open the window on the screen not just on the bottom tool bar?

    I open the window and it automatically goes into minimized mode on the bottom of the tool bar. I can not get it to be on the screen. it shows that it is open but I do not have access to it on my screen. what can i do? help i need this in order to get

  • QuickTime Problem. Doesn't play video.avi.

    I have updated the system up to the latest - Maverick. After that QuickTime Player doesn't play video.avi. I have tried restarting the app - worthless. Yet, it has been showing 'Converting' for 30 mins. Please, help!

  • Thank you all so much!!!!

    I know this is a tech forumn but I just wanted to thank each and evey one of you. My system is working great now and I don't think I could have done it without the help of all you guys! Thanks. Exchanged the Corsair Memmory for Kingston Hyper X PC350