EJB3 portable application.

Hi there!
I have to develop a EJB3 application for differents servers (WL, JBoss, Webphere, might GlassFish). I�ve only tested WL and JBoss, and i�ve met with some problems. WL has some problems with local JNDI ( doesn�t work :) and JBoss doesn�s support servlet inyection yet. I think that the JNDI naming convention is different in every server ( i read it�s out of EJB3 specification). Probably i�ll meet more differences.
Do you have any suggestion (link, doc,..) to make a EJB3 application most portable as possible?
Thanks in advance for any help;

First, the font is too small, resulting in a lot of white space on the screen. Unless and otherwise u create ur own bitmap font , u cant make ur system font to be displayed same in all the devices since every device has its own system font.
I was forced to define a command for the OK button. If I did not, my first menu item, was assigned to the Middle Soft Key, instead of the Left Soft Key. On the Samsung, the command does not show up.I came across the same problem .As the softkey code in nokia and samsung differs u get this problem . I will give a snip of code . May it can help u
switch(keycode){
         case LEFT_SOFT_KEY:   // -6 for nokia
         case LEFT_SOFT_KEY:  // -21 for motorola
                 now ur  code should start here for the left soft key
                 break;This is how i made my application run over all the diff devices
Regrds
Pravin

Similar Messages

  • Microsoft TTF Fonts package needed for commercial use in portable application

    Hello there i am designing an application in java which is based on being a portable application of pdf converter. My design needs to have the ttf Fonts independently present in the application. Is there any way or agreement to buy the Microsoft ttf fonts
    package for commercial use. This package should be independent of the being used only on the Microsoft Windows.

    Hi Hafsa,
    This forum is for questions about "Developing Apps for Office 2013", it is not a suitable place for your question. But I'm not sure where it belongs to. So I move it to [where is this forum for...] where the moderators in this forum may direct
    you to the correct forum.
    By the way, this link from Microsoft about TTF redistribution and licensing may be helpful to you:
    http://www.microsoft.com/typography/faq/faq11.htm
    Thanks for your understanding.
    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.

  • Changes in EJB3.0 application when deployd in JBoss

    Hi,
    We Created the Enterprise Application (EJB Project and WebProject) in the JDeveloper11g preview 1. It is Sucessfully working when it deployed in OC4J application server. I want to deploy the same application in the JBoss. what are the changes i should to deploy the the same application in JBoss. Can any one help me.
    Thanking you,
    NIRANJAN REDDY.

    This is the Forms forum, your question seems to be related to JDeveloper try posting the question in the [JDeveloper Forum|http://forums.oracle.com/forums/forum.jspa?forumID=83] .
    Tony

  • Developing a portable application

    Is an API included with the J2ME library that will provide details on the device the application is running on?
    I developed an application with the main GUI using the Canvas class. I developed it using the Nokia emulator, and all functions and the display work as expected.
    When I load the same application on a Samsung, I start to run into problems. First, the font is too small, resulting in a lot of white space on the screen. Next, on the Nokia, I was forced to define a command for the OK button. If I did not, my first menu item, was assigned to the Middle Soft Key, instead of the Left Soft Key. On the Samsung, the command does not show up.

    First, the font is too small, resulting in a lot of white space on the screen. Unless and otherwise u create ur own bitmap font , u cant make ur system font to be displayed same in all the devices since every device has its own system font.
    I was forced to define a command for the OK button. If I did not, my first menu item, was assigned to the Middle Soft Key, instead of the Left Soft Key. On the Samsung, the command does not show up.I came across the same problem .As the softkey code in nokia and samsung differs u get this problem . I will give a snip of code . May it can help u
    switch(keycode){
             case LEFT_SOFT_KEY:   // -6 for nokia
             case LEFT_SOFT_KEY:  // -21 for motorola
                     now ur  code should start here for the left soft key
                     break;This is how i made my application run over all the diff devices
    Regrds
    Pravin

  • Deploy EJB3 JSF application to JBoss

    I'm trying to deploy an EJB 3.0 + JSF application to JBoss 4.0.5 developed with
    JDeveloper 10.1.3.2.
    The application is very simple: 1 Session Bean (Stateless), 1 Entity Bean, 1 JSF Page with a databound table select one.
    I can't deploy the .ear file because JBoss is throwing the following exception:
    org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: expected one local-home tag)
    My web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
    <ejb-local-ref>
    <ejb-ref-name>ejb/local/SessionEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local>model.SessionEJBLocal</local>
    <ejb-link>SessionEJB</ejb-link>
    </ejb-local-ref>
    In OC4J it works without errors.
    Any help would be appreciated! .
    Luis.

    The docs\schema\web-app_2_4.xsd schema used by JBoss requires ejb-ref-name, ejb-ref-type, local-home and local elements in the ejb-local-ref element.
    <xsd:complexType name="ejb-local-refType">
    <xsd:sequence>
    <xsd:element name="description"
              type="j2ee:descriptionType"
              minOccurs="0"
              maxOccurs="unbounded"/>
    <xsd:element name="ejb-ref-name"
              type="j2ee:ejb-ref-nameType"/>
    <xsd:element name="ejb-ref-type"
              type="j2ee:ejb-ref-typeType"/>
    <xsd:element name="local-home"
              type="j2ee:local-homeType"/>
    <xsd:element name="local"
              type="j2ee:localType"/>
    <xsd:element name="ejb-link"
              type="j2ee:ejb-linkType"
              minOccurs="0"/>
    </xsd:sequence>
    <xsd:attribute name="id" type="xsd:ID"/>
    </xsd:complexType>

  • How to install Firefox for Mac on an external USB 3.0 drive and run Firefox portable?

    I recently acquired a new MacBook Pro 10.9 Mavericks laptop and, I would like to to install Firefox for Mac on a Mac-compatible external USB 3.0 HD, and import my 16MB of legacy bookmarks from a PC-compatible USB 2.0 HD and, run Firefox as a portable application, as I did for years on my 7-year-old EOS'd Dell Inspiron XP laptop.
    Do-able?
    If so, I would like to do the same with Thunderbird...

    Hi,
    There are portable versions of Firefox and Thunderbird but Mozilla doesn't offer them directly. You can get them from PA.com. Links are below:
    *[http://portableapps.com/apps/internet/firefox_portable Firefox 28.0]
    *[http://portableapps.com/apps/internet/thunderbird_portable Thunderbird 24.4.0]
    All you have to do is open it, and point the installation directory to your USB Stick

  • Can I use ejb3.0 with weblogic 8.1

    I am new to ejb3.0.weblogic 8.1 is installed on my system.I just wanted to know can I use weblogic8.1 to deploy ejb3.0 application.
    Thanks
    Sanju

    You can use EJB 3 with WLS9.2 beta http://e-docs.bea.com/wls/docs92/ejb30/overview.html
    With WLS8.1 you are stuck w/ EJB 2.x

  • Making JRE smaller (portable)

    I've already done a simple application and I wanted to make it as portable as possible... I'm using jre1.60_02 which, compressed, is about 17mb and my application, is a .jar file which size is less than 50 kb.
    I've read in README.TXT (which installs with jre) i could remove a couple of files... anyway... those files rerpresent 1 or 2 mb...
    Is there any way to make it smaller keeping it legal :) ?
    I've removed this files under windows (if i've removed a file i shouldn't have please let me know)
    lib\ext\sunjce_provider.jar
    lib\ext\localedata.jar
    lib\ext\ldapsec.jar
    lib\ext\dnsns.jar
    bin\rmid.exe
    bin\rmiregistry.exe
    bin\tnameserv.exe
    bin\keytool.exe
    bin\kinit.exe
    bin\klist.exe
    bin\ktab.exe
    bin\orbd.exe
    bin\servertool.exe
    bin\javaws.exe
    lib\javaws.jar
    bin\java.exe
    bin\javacpl.exe
    bin\jucheck.exe
    bin\jusched.exe
    bin\wsdetect.dll
    bin\npjpi160_02.dll
    bin\NPJava11.dll
    bin\NPJava12.dll
    bin\NPJava13.dll
    bin\NPJava14.dll
    bin\NPJava32.dll
    bin\NPOJI610.dll
    bin\RegUtils.dll
    bin\axbridge.dll
    bin\deploy.dll
    bin\jpicom.dll
    bin\javacpl.cpl
    bin\jpiexp.dll
    bin\jpinscp.dll
    bin\jpioji.dll
    bin\jpishare.dll
    lib\deploy.jar
    lib\plugin.jar
    lib\javaws.jar
    Any ideas?
    Thanks four your time :)

    Is intellectual curiosity dead? Why do some front-end developers spends zero time learning the architecture and concepts of a back-end database before throwing code over the cubicle wall?
    Your questions screams loudly that you have invested no time in learning anything in Oracle beyond, perhaps, SELECT * FROM t.
    No you can not do that. No Oracle is not brain-dead MS Access.
    If you want a portable application put away the toys, read the concept and architecture docs at http://tahiti.oracle.com, and perhaps create your application using Application Express.

  • Regarding Enterprise Application infrastructure development

    Hi all,
    I am working in a development process of an enterprise application in java. I want help from expertise to develop the infrastructure. I am planning to use STRUTS for the Web Client EJB3 for Application Business Logic in JBOSS AS. In this context i want to know how to send the complex object from the client to the remote EJB server.
    thank u

    VijayMohan wrote:
    So you are telling if i am having a Entity Bean that also i need to keep in client side to assign value to it,
    or i should use a client business bean and send it to Application Server and from there, i should use a
    translator for translating from the client business bean to the business entity in the Application server and
    send back the client business after reverse translation.that's entirely up to you. there are respected EJB developers who will argue both sides of that debate. i personally prefer not use entities as DTOs because it tends to cause more issues than it solves, but i've written applications both ways.

  • How would you guys block portable Apps like Skype,firefox,Kproxy and gtalk etc etc ?

    Hi,
    how would you guys block portable Apps like Skype,firefox,Kproxy and gtalk etc etc ?
    it just runs from USB / Local HDD .
     obviously I could just block all USB ports but is there a better way?

    Hi,
    Preventing users from running portable applications can be done through:
    Configuring specific User Account Control Settings
    Software Restriction Policies
    AppLocker
    More information, please check this similar thread:
    How to block portable application & prevent installation on Active Directory?
    http://social.technet.microsoft.com/Forums/en-US/winserverGP/thread/dfd21e22-b245-4d2b-b9c7-912fe357653e/
    Hope this helps!
    Regards.
    Vivian Wang
    TechNet Community Support

  • Using cached credentials (LSASS) with portable browser to access webproxy with integrated authentication (NTLM)

    We want to create a small portable application in our network that accesses a server on the internet using an internal proxy that requires integrated windows authentication (NTLM) from a standard domain client PC(non admin) running in
    user mode after the client logged in. We wonder if such a PE is able to access cached credentials (LSASS hashes). If you read that browsers like chrome can access cached credentials with integrated
    authentication I wonder if that is really possible. In my understanding no portable 3rd party application that gets executed after the user is logged in is able to access such stored hash
    values (only maybe some hacker tools that run under system account can dump such hashes). But maybe it is possible. Very happy if someone can point me in the right direction.
    Thx
    Oliver

    Hi Oliver,
    The closest method I can relate is Kerberos Delegation, which allows an application to reuse the end-user credentials to access recourses hosted on a different server.
    More information for you:
    Kerberos Delegation
    http://blogs.msdn.com/b/autz_auth_stuff/archive/2011/05/03/kerberos-delegation.aspx
    About Kerberos constrained delegation
    https://technet.microsoft.com/en-us/library/cc995228.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Vocabulary for web design and beyond

    Anyone tackling web design will encounter dozens of unfamiliar terms. I have compiled together this glossary to help them. I may update and expand in the future. Until then, feel free to use or pass along.
    Some of these terms don’t relate strictly to web design, but also to computer graphics and computer programming generally, as I’ve found that such terms are also important to reading and understanding any tutorials or other materials on web design.
    Asynchronous (1) General use. Not synchronous; not occurring or existing at the same time or having the same period or phase. (2) Digital communication. Pertaining to a transmission technique that does not require a common clock between the communicating devices; timing signals are instead derived from special characters in the data stream.
    Bitmap image Image that uses geometrical primitives such as points, lines, curves, and shapes, which are all based on mathematical equations. In a bitmap image, each pixel on a display screen is assigned at least one bit to indicate whether the pixel should reflect the background color, the foreground color, or some other color. each pixel in the bitmap might have 16, 24, or 48 bits of information associated with it. The more bits, the greater the resolution of the bitmap – and the larger the file. Compare Vector image.
    C (programming language) General-purpose computer programming language developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system. It was designed for implementing system software and is also widely used for developing portable application software. C has greatly influenced many other popular programming languages, most notably C++, which began as an extension to C.
    C++ Statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. It was developed by Bjarne Stroustrup starting in 1979 at Bell Labs as an enhancement to the C language and originally named C with Classes. It was renamed C++ in 1983.
    Cache Component that transparently stores data so that future requests for that data can be served faster. The data that is stored within a cache might be values that have been computed earlier or duplicates of original values that are stored elsewhere. If requested data is contained in the cache (cache hit), this request can be served by simply reading the cache, which is comparatively faster. Otherwise (cache miss), the data has to be recomputed or fetched from its original storage location, which is comparatively slower.
    Cascading Style Sheet (CSS) Style sheet language used to describe the presentation semantics (the look and formatting) of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can also be applied to any kind of XML document, including SVG and XUL.
    ColdFusion Programming language based on standard HTML that is used to write dynamic webpages. It allows for the creation of pages that differ depending on user input, database lookups, time of day, or other criteria. ColdFusion pages consist of standard HTML tags together with CFML (ColdFusion Markup Language) tags such as <CFQUERY>, <CFIF> and <CFLOOP>. ColdFusion was introduced by Allaire in 1996, acquired by Macromedia in a merger in April 2001, and acquired by Adobe in December 2005.
    Compound selector Can be used to combine two or more style rules to create a style definition that displays only when one style is contained within another. Compound styles are useful when you want to do something like use the Heading 1 tag multiple times to format headlines in different ways on the same web page. For example, you could create one style for headlines that appear in the main story area of a page and then create another style for headlines that appear in the sidebar on the page and still use the Heading 1 tag to format both. Compound styles are created by combining ID, class, or tag styles and look like this: #sidebar h1.
    Contextual selector A type of Style Sheet Selector that
    CRE Loaded Open source online store management and shopping cart system for e-commerce from Chain Reaction eCommerce. It is based on osCommerce, runs on any LAMP (Linux, Apache, MySQL, PHP) web server, and is supported by an active international community of users and developers. For a monthly subscription ($10/mo. as of 2011), CRE Loaded allows small and medium-sized merchants to accept credit card payments in a web site that mirrors their own online stores.
    CSS See Cascading Style Sheet.
    Dynamic HTML (DHTML) Umbrella term for a collection of technologies used together to create interactive and animated web sites by using a combination of a static markup language (such as HTML), a client-side scripting language (such as JavaScript), a presentation definition language (such as CSS), and the Document Object Model. DHTML allows scripting languages to change variables in a web page's definition language, which in turn affects the look and function of otherwise “static” HTML page content, after the page has been fully loaded and during the viewing process.
    ECMA International International membership-based non-profit standards organization for information and communication systems.
    ECMAScript Scripting language standardized by Ecma International in the ECMA-262 specification and ISO/IEC 16262. The language is widely used for client-side scripting on the web, in the form of several well-known dialects such as JavaScript, JScript, and ActionScript.
    Extensible HyperText Markup Language (XHTML) Family of XML markup languages that mirror or extend versions of the widely used HTML, the language in which web pages are written. While HTML (prior to HTML5) was defined as an application of Standard Generalized Markup Language (SGML), a very flexible markup language framework, XHTML is an application of XML, a more restrictive subset of SGML. Because XHTML documents need to be well-formed, they can be parsed using standard XML parsers—unlike HTML, which requires a lenient HTML-specific parser.
    Extensible Markup Language Set of rules for encoding documents in machine-readable form. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards. Its design goals emphasize simplicity, generality, and usability over the Internet. It is a textual data format with strong support via Unicode for the languages of the world. Known by its acronym XML.
    HTML See HyperText Markup Language.
    Hypermedia Graphics, audio, video, plain text and hyperlinks that intertwine to create a generally non-linear medium of information. This contrasts with the broader term multimedia, which may be used to describe non-interactive linear presentations as well as hypermedia. The World Wide Web is a classic example of hypermedia, whereas a non-interactive cinema presentation is an example of standard multimedia due to the absence of hyperlinks.
    Hypertext Text displayed on a computer or other electronic device with references (hyperlinks) to other text that the reader can immediately access, usually by a mouse click or keypress sequence.
    Hypertext Markup Language (HTML) Predominant markup language and basic building-block of webpages. It is written in the form of HTML elements consisting of tags, enclosed in angle brackets (like <html>), within the web page content. HTML tags normally come in pairs like <h1> and </h1>. The first tag in a pair is the start tag, the second tag is the end tag (they are also called opening tags and closing tags). Known by its acronym HTML.
    Hypertext preprocessor (PHP) Widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. It brings life to websites by communicating with external data sources, such as databases, news feeds, and XML documents. PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. PHP 3 was launched in 1998; PHP 4 was released in 2000; and PHP 5 was released in 2005.
    Java Programming language released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture. Java is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere". Java is currently one of the most popular programming languages in use, and is widely used from application software to web applications.[
    JavaScript Implementation of the ECMAScript language standard and is typically used to enable programmatic access to computational objects within a host environment. It can be characterized as a prototype-based object-oriented scripting language that is dynamic, weakly typed and has first-class functions.
    JPEG Commonly used method of Lossy compression for digital photography that was named after the Joint Photographic Experts Group, which created the standard. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality. JPEG typically achieves 10:1 compression with little perceptible loss in image quality.
    Linux Family of Unix-like computer operating systems using the Linux kernel (central OS component). Linux can be installed on a wide variety of computer hardware, ranging from mobile phones, tablet computers and video game consoles, to mainframes and supercomputers. The development of Linux is one of the most prominent examples of free and open source software collaboration; typically all the underlying source code can be used, freely modified, and redistributed, both commercially and non-commercially, by anyone under licenses such as the GNU General Public License.
    Lossy compression Data encoding method which discards (loses) some of the data, in order to achieve its goal, with the result that decompressing the data yields content that is different from the original, though similar enough to be useful in some way. Lossy compression is most commonly used to compress multimedia data (audio, video, still images), especially in applications such as streaming media and internet telephony. By contrast, lossless compression is required for text and data files, such as bank records, text articles, etc.
    MySQL Relational database management system that runs as a server providing multi-user access to a number of databases. The MySQL development project has made its source code available under the terms of the GNU General Public License, as well as under a variety of proprietary agreements. Acronym for “My Structured Query Language.”
    Open source Describes practices in production and development that promote access to the end product's source materials. Before the term open source became widely adopted, developers and producers used a variety of phrases to describe the concept; open source gained hold with the rise of the Internet, and the attendant need for massive retooling of the computing source code.
    osCommerce Open source Commerce. It allows store owners to setup, run, and maintain their online stores with minimum effort and with no costs involved. Combines open source solutions to provide a free and open development platform, which includes the PHP web scripting language, the Apache web server, and the MySQL database server. With no restrictions or special requirements, osCommerce can be installed on any PHP3 or PHP4 enabled web server, on any environment that PHP and MySQL supports, which includes Linux, Solaris, BSD, and Microsoft Windows environments.
    PHP See Hypertext preprocessor.
    Rasterization The process of converting a Vector image into a Bitmap image.
    Rasterize See Rasterization.
    Shopping cart software Software used in e-commerce to assist people making purchases online. The software allows online shopping customers to accumulate a list of items for purchase. Upon checkout, the software typically calculates a total for the order, including shipping and handling (i.e. postage and packing) charges and the associated taxes.
    Style sheet selector One of the two parts of a CSS rule (the other being the properties, or declaration block) that declares which of the markup elements a style applies to. Selectors may apply to all elements of a specific type, or only those elements that match a certain attribute (e.g., how they are placed relative to each other in the markup code, or on how they are nested within the document object model). There are many types of style sheet selectors: element selectors, which select by element name; class selectors, which select by class name; contextual selectors, which select by context based on parent elements (what the element is nested within or what precedes it in the document), etc..
    Supercomputer Computer that is at the frontline of current processing capacity, particularly speed of calculation. Supercomputers are typically one-of-a-kind custom designs produced by companies such as Cray, IBM and Hewlett-Packard, who had purchased many of the 1980s companies to gain their experience. Since October 2010, the Tianhe-1A supercomputer, located in China, has been the fastest in the world.
    Tag Non-hierarchical keyword or term assigned to a piece of information (such as an Internet bookmark, digital image, or computer file). This kind of metadata helps describe an item and allows it to be found again by browsing or searching. Tags are generally chosen informally and personally by the item's creator or by its viewer, depending on the system. HTML tags include paragraph, heading 1, heading 2, etc.
    Unix Computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs. The Unix operating system was first developed in assembly, which is machine-dependent and a low-level programming language. Ken Thompson created the B language in 1969 and Unix was written in the B language, a high-level programming language. The first Unix system written in C was released in November 1973.
    Vector image Image made up of numerous individual, scalable objects. These objects are defined by mathematical equations rather than pixels, so they always render at the highest quality. Objects may consist of lines, curves, and shapes with editable attributes such as color, fill, and outline. Changing the attributes of a vector object does not effect the object itself. Compare Bitmap image.
    Vector processor Central processing unit (CPU) that implements an instruction set containing instructions that operate on one-dimensional arrays of data called vectors. This is in contrast to a scalar processor, whose instructions operate on single data items. Also known as array processor.
    Web analytics Measurement, collection, analysis and reporting of internet data, including the number of visitors and page views, for understanding and optimizing web usage. It can be used as a tool for measuring website traffic and for business and market research. Web analytics applications can also help companies measure the results of traditional print advertising campaigns. It helps one to estimate how the traffic to the website changed after the launch of a new advertising campaign.
    Web design Design of the way that content is delivered to an end-user through the World Wide Web, using a web browser or other web-enabled software.
    Web development Refers to the work involved in developing a web site for the Internet (World Wide Web) or an intranet (a private network). This can include Web design, web content development, client liaison, client-side/server-side scripting, web server and network security configuration, and e-commerce development. However, among web professionals, "web development" usually refers to the main non-design aspects of building web sites: writing markup and coding. Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applications, electronic businesses, or social network services.
    World Wide Web Consortium Main international standards organization for the World Wide Web. It is made up of member organizations which maintain full-time staff for the purpose of working together in the development of standards for the World Wide Web. Known by its acronym W3C.
    XHTML See Extensible HyperText Markup Language.
    XML See Extensible Markup Language.
    Zend Engine Open source scripting engine (a Virtual Machine) commonly known for the important role it plays in the web automation language PHP.

    Thanks for posting this!
    I would only mention that your definition is incomplete for this -
    Contextual selector A type of Style Sheet Selector that
    and that it's most often referred to now as a Descendent selector, not a contextual selector.  It's basically the same as the Compound selector that you have already defined....

  • EJB EAR deployment for weblogic 9.2

    Hello!
    I already have the EJB3.0 application which I would like to deploy. After preparing the .ear file I tried to deploy it with the Administration console. I received the error message, and I found a workaround : [url http://forums.bea.com/bea/thread.jspa?threadID=600016992&tstart=0]here (@dev2dev). When I tried the console deployment, I received the following error message:
    <11.12.2006 14.49 Uhr CET> <Error> <Deployer> <BEA-149265> <Failure occured in the execution of deployment request with ID '1165844945693' f
    or task '3'. Error is: 'weblogic.application.ModuleException: Exception preparing module: EJBModule(app5.jar)
    weblogic.application.ModuleException: Exception preparing module: EJBModule(app5.jar)
            at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:394)
            at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
            at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:318)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
            at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:53)
            Truncated. see log file for complete stacktrace
    java.lang.IllegalStateException: getLocalName() may only be called on a START_ELEMENT, END_ELEMENT or ENTITY_REFERENCE event, the current st
    ate is [END_DOCUMENT]
            at weblogic.xml.stax.XMLStreamReaderBase.getLocalName(XMLStreamReaderBase.java:524)
            at javax.xml.stream.util.StreamReaderDelegate.getLocalName(StreamReaderDelegate.java:216)
            at javax.xml.stream.util.StreamReaderDelegate.getLocalName(StreamReaderDelegate.java:216)
            at com.bea.xbean.richParser.XMLStreamReaderExtImpl.getLocalName(XMLStreamReaderExtImpl.java:1294)
            at com.bea.staxb.runtime.internal.UnmarshalResult.getLocalName(UnmarshalResult.java:867)
            Truncated. see log file for complete stacktrace
    >
    <11.12.2006 14.49 Uhr CET> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'app5'.
    >
    <11.12.2006 14.49 Uhr CET> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Exception preparing module: EJBModule(app5.jar)
            at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:394)
            at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
            at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:318)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
            at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:53)
            Truncated. see log file for complete stacktrace
    java.lang.IllegalStateException: getLocalName() may only be called on a START_ELEMENT, END_ELEMENT or ENTITY_REFERENCE event, the current st
    ate is [END_DOCUMENT]
            at weblogic.xml.stax.XMLStreamReaderBase.getLocalName(XMLStreamReaderBase.java:524)
            at javax.xml.stream.util.StreamReaderDelegate.getLocalName(StreamReaderDelegate.java:216)
            at javax.xml.stream.util.StreamReaderDelegate.getLocalName(StreamReaderDelegate.java:216)
            at com.bea.xbean.richParser.XMLStreamReaderExtImpl.getLocalName(XMLStreamReaderExtImpl.java:1294)
            at com.bea.staxb.runtime.internal.UnmarshalResult.getLocalName(UnmarshalResult.java:867)
            Truncated. see log file for complete stacktrace
    >I would just like to mention, that it is not really self-explaining. Can somebody help me and explain me what does this error mean?
    Also, is there a document describing the complete deployment process for wl9.2?
    Thank you.
    Konstantin

    MIK wrote:
    I have a question about weblogic-ejb-jar.xml file entries.
    weblogic 9.1 server says it is invalid while deploying my file
    my file is as under,
    <?xml version="1.0"?><!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems,
    Inc.//DTD WebLogic 8.1.0 EJB//EN'
    'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/910"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/910
    http://www.bea.com/ns/weblogic/910/weblogic-ejb-jar.xsd">
    <weblogic-enterprise-bean>
              <ejb-name>MessageAccess</ejb-name>
              <message-driven-descriptor>
    <resource-adapter-jndi-name>SystemModule-test</resource-adapter-jndi-name>
              </message-driven-descriptor>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    can anybody help what is wrong with it?the error I get is this,
    [EJB:011023]An error occurred while reading the deployment descriptor.
    The error was:
    Unmarshaller failed.
    at
    weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:957)
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:317)
    at
    weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:90)
    at
    weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:318)
    at
    weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    and XMLSPY also says that weblogic-ejb-jar.xml is invalid and the error
    there is,
    Root element '<weblogic-ejb-jar' not defined in DTD/Schema.

  • EJB 3.0 App won't run on OAS 10.1.3.1 AIX5L

    Hi All,
    I'm developing Application with Struts + JSP + EJB3.0 with JDev 10.1.3. It runs well on embedded OC4J with JDev. And it runs well also on Oracle Application Server 10.1.3.1 + Windows XP Prof. But when I deployed it on Oracle Application Server 10.1.3.1 + IBM AIX 5L which is my production environment, the application won't run.
    I try to narrowing down the problem, so I create a simple EJB3.0 Application. It consist of 1 Entity from Table (JPA/EJB3.0) and the entity has queryFindAll() method. One simple Facade Session Bean EJB invoke it. 1 JSP file call a class that do the context lookup to SessionBean EJB.
    This simple application runs well on both platform, i.e Windows XP Prof and IBM AIX 5L.
    But when I try to create an application that has complex relationship, i.e has relation many-to-many and one-to-many, the application wont run on OAS 10.1.3.1 on IBM AIX5L. Instead, it runs well on OAS 10.1.3.1 on Windows XP Prof.
    this is the error messages in log.xml from OAS 10.1.3.1 on IBM AIX5L:
    [SessionEJB:public java.util.List tintin.model.SessionEJBBean.queryBiOfficesFindAll()] exception occurred during method invocation: oracle.oc4j.rmi.OracleRemoteException:
    javax.persistence.PersistenceException: Exception [TOPLINK-7158] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: Error encountered when building the @NamedQuery [BiOffices.findAll] from entity class [class oracle.toplink.essentials.internal.ejb.cmp3.metadata.queries.MetadataNamedQuery].
    Internal Exception: java.lang.IllegalStateException: ClassLoader "ejbtest.root:0.0.1" (from <application> in /oraias/product/10131/gebas/j2ee/oc4j_geb/applications/ejbtest/):
    This loader has been closed and should not be in use.; nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-7158] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: Error encountered when building the @NamedQuery [BiOffices.findAll] from entity class [class oracle.toplink.essentials.internal.ejb.cmp3.metadata.queries.MetadataNamedQuery].
    Internal Exception: java.lang.IllegalStateException: ClassLoader "ejbtest.root:0.0.1" (from <application> in /oraias/product/10131/gebas/j2ee/oc4j_geb/applications/ejbtest/):
    This loader has been closed and should not be in use.
    What could be the root cause of these errors? I've tried to compared all components that are installed on WinXP box and AIX5L. I can't find any clue of it.
    Could someone please help me? Thanks...

    I found Error Code for TOPLINK here: http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_html/errcode007.htm
    but it is strange, that my error exception is TOPLINK-7158:
    7158: ERROR_PROCESSING_NAMED_QUERY_ANNOTATION
    Cause: Error encountered when building the @NamedQuery annotation from entity class ClassName.
    Action: Ensure the correctness of the annotation specification.
    how come that error only occured in OAS 10.1.3.1 on AIX 5L, but it didn't occur in OAS 10.1.3.1 on Windows XP Pro?
    Is it really the root cause or OAS throws wrong exception code? Could someone from Oracle help me please?

  • Ways to Get Resources in EJB

    Ways to Get Resources in EJB 3_
    source: http://javahowto.blogspot.com/2006/06/5-ways-to-get-resources-in-ejb-3.html
    Use resource injection with runtime info mapping.
    For example,
    package com.foo.ejb;
    import javax.ejb.Remote;
    @Remote public interface ResourceRemote {
    public void hello();
    package com.foo.ejb;
    import javax.annotation.Resource;
    import javax.ejb.Stateless;
    import javax.sql.DataSource;
    @Stateless
    public class ResourceBean implements ResourceRemote {
    @Resource(name="jdbc/employee")
    private DataSource employeeDataSource;You don't need ejb-jar.xml. For portable applications, you will need appserver-specific deployment plan to map the logical name (jdbc/employee) to the actual DataSource configured in the target runtime environment. For JavaEE SDK 5, Glassfish, and Sun Java System Application Server 9, it's sun-ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN"
    "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd">
    <sun-ejb-jar>
    <enterprise-beans>
    <ejb>
    <ejb-name>ResourceBean</ejb-name>
    *<jndi-name>ResourceBean</jndi-name>*
    <resource-ref>
      <res-ref-name>jdbc/employee</res-ref-name>
        <jndi-name>jdbc/__default</jndi-name>
    </resource-ref>
    </ejb>
    </enterprise-beans>
    </sun-ejb-jar>
    We have a tag like +<jndi-name>ResourceBean</jndi-name>+  in the above. Do we use this jndi-name ? If so, where ?

    user575089 wrote:
    Do we use this jndi-name ? If so, where ?If you need to look the bean up from JNDI?

Maybe you are looking for