Call EJB 3.1 deployed in Glassfish 3.1 from a web application in Tomcat7

I have a bean EJB 3.1 deployed on server Glassfish 3.1.1. I want to call this a remote web client deployed in Tomcat 7 bean. The EJB class and its remote interface is as follows...

Remote interface-

@Remote
public interface MyEJBRemote
{
public String sayHello();
}
EJB bean-

@Stateless
/ public class MyEJB implements MyEJBRemote
{

public String sayHello()
{
Return "Hello EJB Client.» Hope everything works perfectly. « ;
}

}
In the remote client, I have the following code

Properties props = new Properties ();

props.setProperty ("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory");
props.setProperty ("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
props.setProperty ("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
props.setProperty ("org.omg.CORBA.ORBInitialHost", "localhost");
props.setProperty ("org.omg.CORBA.ORBInitialPort", "3700");

InitialContext ic = new InitialContext (props);

MyEJBRemote myEJBREmote = (MyEJBRemote)ic.lookup("java:global/MyEJB-1/MyEJB!com.dw.ejb.MyEJBRemote");
Now the problem is with the last line of code. In Eclise that line of code is marked as error as the MyEJBRemote class is not there in the project of the client (the web application will be deployed in tomcat 7). So where can I get the client generated of the EJB jar deployed to include in the client project? Is it possible to generate this jar file.

I tried to use the command of glassfish

asadmin deploy generatermistubs recover. MyEJB.jar
But glassfish doesn't generate any file MyEJB - client.jar. I tried many times but without success. I read a lot of forums. In one of them, it was mentioned that of EJB 3.1, glassfish does not generate the client stubs.

Does that mean that you cannot use remote clients of EJB 3.1 in Glasssfish more? Because the client project will never compile without the MyEJB - client.jar.

You don't have to produce anything, you need the class business interface in your client application (in this case MyEJBRemote). One way to do that is to put the interfaces of the company in a separate pot and the link that jar in the projects of your client and the server. Glassfish FAQ 3 documents the need to include the class business interface in your client application:

http://GlassFish.Java.NET/JavaEE5/EJB/EJB_FAQ.html#StandaloneRemoteEJB

Another option is to turn the EJB into a JAX - WS Web service, which can be as easy as only adding a few annotations. In this way, that you need not all additional dependencies at all; the only thing you need to do is generate stub classes using the wsimport (also part of the JDK) for your client application. I'm not a big fan of SOAP, but for internal use, I think it's lighter and more portable than remote EJB.

I can't offer more advice on the topic that I do not use Glassfish. To help you, I advise you to ask in the Glassfish forum where you'll find more people who were in the same boat you are.

http://www.Java.NET/forums/GlassFish/GlassFish

Tags: Java

Similar Questions

  • How to call the method of notification service websocket project different from the same application?

    Hi all

    My problem:

    * I have ADF application with model, view and websocket service inside projects.

    * I wish to inform the client (browser) on event triggered in the model project.

    * So, I need somehow to invoke the websocket service method to send the message to all the sessions that are enrolled in the websocket communication channel.

    * How can I achieve that?

    I use JDev 12.1.3 with built-in WebLogic Server. Thank you!

    -Danas

    No doubt with some form of messaging (JMS or something similar - in-memory cache solutions have pub/sub support).

    Dario

  • Deploy application with GlassFish-JavaEE, move from Mac to Linux.

    On a Mac, I developed and managed a Java EE application successfully.

    It's an EAR with an EJB module and a Web module.

    Now continues on a device of Linux (Ubuntu), I can't start over exactly the same application. I got exacttly the same code with git.


    I tried to launch the application with:

    <

    asadmin deploy ejbEntities/target/ejbEntities-1.0-SNAPSHOT.jar

    >

    the console of administration in the r through http://localhost:4848:

    Applications /-> deploy snapshot.jar selection...


    And with Netbeans with all the same result:

    After generating with dependencies and running.

    He tells his running successfully. But in services server/glassfish Server/applications/nothing is displayed and the output is the server.log:

    <

    An exception occurred while loading the application: the EJB container initialization error

    com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid destination jms/NewMessage for MDB: JNDI name not found

    at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration(ActiveJmsResourceAdapter.java:2269)

    at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.updateMDBRuntimeInfo(ActiveJmsResourceAdapter.java:2095)

    at com.sun.enterprise.connectors.inbound.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:168)

    to org.glassfish.ejb.mdb.MessageBeanContainer. < init > (MessageBeanContainer.java:252)

    at org.glassfish.ejb.mdb.MessageBeanContainerFactory.createContainer(MessageBeanContainerFactory.java:63)

    at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:221)

    at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:291)

    at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:99)

    at org.glassfish.internal.data.ModuleInfo.load (ModuleInfo.java:206)

    at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:313)

    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:496)

    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ $2 1.run(CommandRunnerImpl.java:539)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ $2 1.run(CommandRunnerImpl.java:535)

    at java.security.AccessController.doPrivileged (Native Method)

    at javax.security.auth.Subject.doAs(Subject.java:360)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ 2.execute(CommandRunnerImpl.java:534)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ 3.run(CommandRunnerImpl.java:565)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ 3.run(CommandRunnerImpl.java:557)

    at java.security.AccessController.doPrivileged (Native Method)

    at javax.security.auth.Subject.doAs(Subject.java:360)

    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)

    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl.access$ 1300 (CommandRunnerImpl.java:109)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ ExecutionContext.execute (CommandRunnerImpl.java:1846)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ ExecutionContext.execute (CommandRunnerImpl.java:1722)

    at org.glassfish.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:404)

    at org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.java:234)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:497)

    to org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$ 1.invoke(ResourceMethodInvocationHandlerFactory.java:81)

    to org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$ 1.run(AbstractJavaResourceMethodDispatcher.java:151)

    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)

    to org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ ResponseOutInvoker.doDispatch (JavaResourceMethodDispatcherProvider.java:152)

    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)

    at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:387)

    at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:331)

    at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:103)

    to org.glassfish.jersey.server.ServerRuntime$ 1.run(ServerRuntime.java:271)

    to org.glassfish.jersey.internal.Errors$ 1.call(Errors.java:271)

    to org.glassfish.jersey.internal.Errors$ 1.call(Errors.java:267)

    at org.glassfish.jersey.internal.Errors.process(Errors.java:315)

    at org.glassfish.jersey.internal.Errors.process(Errors.java:297)

    at org.glassfish.jersey.internal.Errors.process(Errors.java:267)

    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:297)

    at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:254)

    at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028)

    at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:365)

    to org.glassfish.admin.rest.adapter.JerseyContainerCommandService$ 3.service(JerseyContainerCommandService.java:173)

    at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:179)

    to com.sun.enterprise.v3.services.impl.ContainerMapper$ HttpHandlerCallable.call (ContainerMapper.java:459)

    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)

    at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)

    at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)

    at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)

    to org.glassfish.grizzly.filterchain.ExecutorResolver$ 9.execute(ExecutorResolver.java:119)

    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)

    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)

    at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)

    at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)

    at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

    at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)

    at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)

    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)

    in org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$ 100 (WorkerThreadIOStrategy.java:56)

    to org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$ WorkerThreadRunnable.run (WorkerThreadIOStrategy.java:137)

    to org.glassfish.grizzly.threadpool.AbstractThreadPool$ Worker.doWork (AbstractThreadPool.java:565)

    to org.glassfish.grizzly.threadpool.AbstractThreadPool$ Worker.run (AbstractThreadPool.java:545)

    at java.lang.Thread.run(Thread.java:745)

    Caused by: com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid destination jms/NewMessage for MDB: JNDI name not found

    at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration(ActiveJmsResourceAdapter.java:2263)

    ... more than 71

    ]]

    [2015-06 - 01 T 15: 15:19.286 - 0200] [glassfish 4.1] [INFO] [] [org.glassfish.admingui] [tid: _ThreadID = 130 _ThreadName = admin-listener (6)] [timeMillis: 1433164519286] [levelValue: 800] []

    Redirecting to /common/index.jsf]]

    [2015-06 - 01 T 15: 15:19.301 - 0200] [glassfish 4.1] [INFO] [] [org.glassfish.admingui] [tid: _ThreadID = 132 _ThreadName = admin-listener (8)] [timeMillis: 1433164519301] [levelValue: 800] []

    [[Administration console: initializing attributes Session...]]

    >

    What could be the problem? The app has not changed, it is the environment.


    After that Googling autour, I found the problem had to do with the syntax.


    For example, on:

    http://StackOverflow.com/questions/7110563/GlassFish-v3-cant-deploy-MessageDriven-bean-missing-destination-JNDI-name


    I got the same error. The problem was:

    @ActivationConfigProperty (propertyName = "destination", propertyValue = "jms/SampleTopic")

    This need to be

    @ActivationConfigProperty (propertyName = "destination", propertyValue = "SampleTopic")


    Can whe´re I set this property?

    Whe´re is the configuration file of Glassfish?


    Could someone guide me through this?


    Thanks in advance.


    Peter,

    I found the domain.xml file. ~/glassfish4/GlassFish/domains/Domain1/config/domain.XML

    In this file, I wasn't able to find anything on the com.sun.appserv. *. packages.

    The software allows to work with this default file (on a Mac).

    With the asadmin terminal I tried to add custom resources.

    And they appear whe. After you restart glassfish no different result.

    The application deployment guide https://glassfish.java.net/docs/4.0/application-deployment-guide.pdf mentionned on glassfish ejb - jar.xml and ejb - jar.xml.

    I couldn't find these files for version 3.1.

    http://docs.Oracle.com/CD/E26576_01/doc.312/e24929/dd-files.htm#GSDPG00080

    But the app was capable on running with the default settings, so without these files.

    What can I check next?

  • [JDev 12.2.1, GlassFish 4.1] Migrated JDev 12.1.3 app amounts to org.apache.catalina.LifecycleException when deployed on GlassFish 4.1

    Hallo,

    I migrated my 12.1.3 application ADF Essentials (until now deployed on GlassFish 3.1) to JDeveloper 12.2.1.

    The migrated application is successfully deployed on the WLS internal JDev 12.2.1.

    I have also installed and configured GlassFish 4.1, but when I try to deploy the application migrated on it I get this error:

    Error occurred during deployment: Exception when loading the application: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalStateException: could not find relief for javax.faces.context.FacesContextFactory of the factory. . Please see server.log for more details.

    Below, I copied the lower part of the ball.

    If you kindly could help solve this problem?

    Thank you

    Federico

    [2015 12-14 T 19: 49:35.432 + 0100] [glassfish 4.1] [SERIOUS] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID = 44 _ThreadName = admin-listener (1)] [timeMillis: 1450118975432] [levelValue: 1000] []

    An exception occurred while processing life cycle

    java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalStateException: could not find relief for javax.faces.context.FacesContextFactory of the factory.

    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:168)

    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)

    at org.glassfish.internal.data.ModuleInfo.start (ModuleInfo.java:291)

    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)

    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500)

    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ $2 1.run(CommandRunnerImpl.java:539)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ $2 1.run(CommandRunnerImpl.java:535)

    at java.security.AccessController.doPrivileged (Native Method)

    at javax.security.auth.Subject.doAs(Subject.java:360)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ 2.execute(CommandRunnerImpl.java:534)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ 3.run(CommandRunnerImpl.java:565)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ 3.run(CommandRunnerImpl.java:557)

    at java.security.AccessController.doPrivileged (Native Method)

    at javax.security.auth.Subject.doAs(Subject.java:360)

    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)

    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl.access$ 1300 (CommandRunnerImpl.java:109)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ ExecutionContext.execute (CommandRunnerImpl.java:1846)

    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ ExecutionContext.execute (CommandRunnerImpl.java:1722)

    at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:253)

    at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:231)

    at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:275)

    at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:133)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:497)

    to org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$ 1.invoke(ResourceMethodInvocationHandlerFactory.java:81)

    to org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$ 1.run(AbstractJavaResourceMethodDispatcher.java:144)

    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)

    to org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ ResponseOutInvoker.doDispatch (JavaResourceMethodDispatcherProvider.java:160)

    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)

    at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)

    at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)

    at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)

    to org.glassfish.jersey.server.ServerRuntime$ 2.run(ServerRuntime.java:309)

    to org.glassfish.jersey.internal.Errors$ 1.call(Errors.java:271)

    to org.glassfish.jersey.internal.Errors$ 1.call(Errors.java:267)

    at org.glassfish.jersey.internal.Errors.process(Errors.java:315)

    at org.glassfish.jersey.internal.Errors.process(Errors.java:297)

    at org.glassfish.jersey.internal.Errors.process(Errors.java:267)

    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)

    at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:292)

    at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1139)

    at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:375)

    to org.glassfish.admin.rest.adapter.RestAdapter$ 2.service(RestAdapter.java:316)

    at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:179)

    to com.sun.enterprise.v3.services.impl.ContainerMapper$ HttpHandlerCallable.call (ContainerMapper.java:459)

    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)

    at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)

    at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)

    at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)

    to org.glassfish.grizzly.filterchain.ExecutorResolver$ 9.execute(ExecutorResolver.java:119)

    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)

    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)

    at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)

    at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)

    at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

    at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)

    at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)

    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)

    in org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$ 100 (WorkerThreadIOStrategy.java:56)

    to org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$ WorkerThreadRunnable.run (WorkerThreadIOStrategy.java:137)

    to org.glassfish.grizzly.threadpool.AbstractThreadPool$ Worker.doWork (AbstractThreadPool.java:591)

    to org.glassfish.grizzly.threadpool.AbstractThreadPool$ Worker.run (AbstractThreadPool.java:571)

    at java.lang.Thread.run(Thread.java:745)

    ]]

    [2015 12-14 T 19: 49:35.432 + 0100] [glassfish 4.1] [SERIOUS] [] [javax.enterprise.system.core] [tid: _ThreadID = 44 _ThreadName = admin-listener (1)] [timeMillis: 1450118975432] [levelValue: 1000] []

    An exception occurred while loading the application]]

    [2015 12-14 T 19: 49:35.433 + 0100] [glassfish 4.1] [SERIOUS] [AS-WEB-GLUE-00192] [javax.enterprise.web] [tid: _ThreadID = 44 _ThreadName = admin-listener (1)] [timeMillis: 1450118975433] [levelValue: 1000] []

    Undeployment failed for the context /MyWebApp]]

    [2015 12-14 T 19: 49:35.459 + 0100] [glassfish 4.1] [SERIOUS] [] [javax.enterprise.system.core] [tid: _ThreadID = 44 _ThreadName = admin-listener (1)] [timeMillis: 1450118975459] [levelValue: 1000] []

    Exception when loading the application: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalStateException: could not find relief for javax.faces.context.FacesContextFactory of the factory. ]]

    [2015 12-14 T 19: 49:35.616 + 0100] [glassfish 4.1] [INFO] [] [org.glassfish.admingui] [tid: _ThreadID = 45 _ThreadName = admin-listener (2)] [timeMillis: 1450118975616] [levelValue: 800] []

    Exception occurred: error occurred during deployment: Exception when loading the application: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalStateException: could not find relief for javax.faces.context.FacesContextFactory of the factory. . Please see server.log for more details.   ]]

    You have validated the content of the file web.xml instead of faces-config. XML

    Try to return to faces-config. XML to 2.1.

    Also, check if useBundledJsf = false will make a difference.

    If nothing else helps, try to remove the extra libs (one by one)

    Dario

  • Apex listener 2.0 only returns a blank page when it is deployed on Glassfish

    With the help of:
    Oracle 10.2.0.5
    GlassFish 3.2.1
    apex_listener 2.0.0.354.17.05

    When I go to the URL, http://servername:8125 / apex
    It sometimes turns into http://servername:8125/apex/f? p = 4550:1:13324637794 (if I get a session), but only get a blank page.

    When I go to http://servername:8125, I get the message
    '3.1.2 glassFish server '.
    Your server is now running"etc.

    If, instead of using Glassfish, I started as independent apex_listener, everything works fine.


    In server.log, I found a few warnings:
    [#| 2012 12-29 T 23: 30:31.046 + 0100 |] WARNING | glassfish3.1.2 | org.apache.catalina.connector.Request | _ThreadID = 114; _ThreadName = wire 2. PWC4011: cannot set the application context UTF-8 character encoding, because the request parameters have already been read, or ServletRequest.getReader () has already been called. #]

    [#| 2012 12-29 T 23: 47:57.859 + 0100 |] WARNING | glassfish3.1.2 | javax.enterprise.System.Tools.deployment.org.GlassFish.deployment.common | _ThreadID = 1; _ThreadName = wire 2. DPL8029: ignore the WEB-INF/weblogic.xml in archive/C:/glassfish3/glassfish/domains/apex2/applications/i /, as Sun counterpart TERM xml WEB-INF/Sun - Web.xml is present in the same archive. | #]


    Someone at - it a nail how to solve this?
    I can't find anything...

    More on this old topic, yesterday I upgraded listener apex 1.1.4 to 2.0.2 and now it is not working properly.

    I never had the time to continue the troubleshooting listener 2.0.0 but apparently 2.0.2 had the appropriate correction required for my test environment.

    JP

  • Deployment of third party EJB 3.0 jar in web application

    I have a web application that calls the services provided by the EJB 3.0 beans packaged in the container of a third. How do one configure the web application project to deploy the beans to the on-board OC4J container when I run the application? The jar file is the reference by the project, and I have a META-INF/application.xml referencing these in the form of modules EJB jar files. I set the Version property of the EJB 3.0, but the annotated list of EJB 3.0 bean Classes remains empty, probably because I have no bean defined in the application sources. When you run the project, the oc4j container warns that the EJB module contains no bean. I want to deploy the beans in the jar file, but cannot figure out how.

    Thank you
    Steve

    JDeveloper 10.1.3.4
    Windows Vista

    Published by: user10375549 on October 29, 2009 06:38 - corrected typo.

    Hello

    We used some ejb - jar.xml to save beans session EJB3 jars of third JDeveloer 11 g TP4 (who used oc4j). The only difference was, alongside third-party beans, we had our own beans of session (that does not need to be registered in the ejb - jar file. (XML).
    Here's how we did it

        
          MySessionBean
          MySessionBean
          some.package.MySessionBeanRemote
          some.package.MySessionBean
          Stateless
          Container
        
    

    I hope that helps you a bit.

    Pedja

  • Please need help with the deployment of web applications in Jdeveloper 12 c

    Hello

    I'm desperate for help guys. am trying to deploy a web application in weblogic server, but nothing works!

    I have created a project in jdeveloper and created a jsp page in the project, what I want is to run this page!

    I followed the instructions here: Deployment of Applications Web Fusion , I don't really know if I did good or bad, the document is too detailed and not understood clearly.

    I am a newbie oracle user and trying to build a jsp web application connected to the oracle database. fails application deployment it says: cannot run application deployment IntegratedWeblogic error...

    Please could you tell me the steps of deploying applications in Jdeveloper 12 c?
    What deployment profiles, I need to create (ear, war, mar)?

    This deployment descriptor, I need for my application work?

    Please guys I am newbie to oracle, if you could give me simplified answers and straight instructions it will be appreciated .

    Thank you

    It depends on your knowledge of jsp and the possible controllers like struts, the faces and the adf (which is an addon of jsf). ADF has the advantage that a large number of configurations and other stuff is handled for you. However, if you are familiar with Struts you can use it too.

    The decision also depends on demand and what he should do. I can't comment on this, as I don't know.

    As you use 12 c my recommendation is to use the stack complete adf, meaning adf faces and adfbc for access to the data in the Database.

    There is a license for the adf if you want to deploy on a WebLogic Server, however there is a free version (adf essentials) that uses a GlassFish server.

    Timo

  • Deployment of Web Services has failed. Web applications server OR still load.

    I installed LabVIEW 2013 and I am trying to publish the web service. Every time I try, I see this message: "unable to Web Services deployment. The Server Web applications OR load again. »

    I don't know how to stop or complete this loading. I have reinstalled LabVIEW 2013, removed LV 2012 and other software. In addition, when I restart the 32-bit server, I have old web services installed. Even if I do not publish them, they appear after the transition to 64-bit-> 32-bit server.

    I will be grateful for your help.

    Peter

    Hi all

    It was a problem introduced with the new deployment of LabVIEW web services in 2013, specifically on laptops (classified as CAR 422680). It is fixed in the patch of f1 2013 LabVIEW. This patch is available for download here and you can get more information about the patches in the patch here. The patch will travel via Service Update OR later this month.

    Kind regards

    Jeff Peacock

    Product Support Engineer | LabVIEW R & D | National Instruments

  • How to deploy Web application in Azure VM using Visual studio online

    Hello

    I am very new to visual studio online. It is part of my learning. I try to deploy the web application in the blue. I could deploy the web application successfully in Azure Blue Web site. Later, I created and Azure VM and try to deploy the application on the virtual computer. But I could not. I read some blogs, but not able to understand how to deploy it on the virtual machine using Visual Studio online. I was able to publish the application to the Azure VM using Visual Studio 2015. But failed to deploy via VSO.

    I use Build definitions. Please help me configure the deployment in Azure VM using VSO.

    The question you ask is out of scope of this community.

    Try asking the same thing on the forums/Stackoverflow MSDN forums.

    MSDN:

    http://social.msdn.Microsoft.com/forums/en-us/category/windowsazureplatform, azuremarketplace, windowsazureplatformctp

    The stack overflow:

    http://StackOverflow.com/questions/tagged/azure

    The Microsoft Community is a site of support of peer reviewed for Windows
    and other Microsoft products. This is a question and a response/answer format
    and offers no assistance in real time. Most here are volunteers and we do not have
    direct contact with senior-level support sites.

  • Cannot call a Javascript API of Blackberry to a Web application hosted on a Tomcat server.

    Hi all, I have been using Web work for development. I was able to build a webworks with HTML application, which in turn calls blackberry API using Javascript. However, when I move the HTML to a web application in a tomcat server, and calling the WebApp page from the WebWorks shell with all the permissions granted, I get an error TypeError: cannot convert 'undefined' in an object... Please advice if I am attemping is technically possible, or webworks serves only to write a native application using HTML hosted in blackberry.

    If you host content from a remote domain requiring API access, you need to declare explicitly in the config.

    You will need to create a piece of access as follows:

    http://tx8zdflb30.xxxxx.com:8003" subdomains="true">
    
    
    

    And then you add the elements of functionality for each of the APIs you want than this field/origin to have access to.

  • Deploy an icon on the BlackBerry smartphone to a web application or URL

    Hello

    I want to deploy an icon on the BlackBerry for a web application is home.  When the user click on this icon, I automatically want to launch my web app (URL).

    I found this article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800655/How_To _...

    And I read about 'push channel browser', which seems to do exactly what I want to do:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/7979/1181821/832210/Developi...

    I did a test with my Blackberry that is connected to a BES, and it works very well using the code example.

    My question is this, 'channel browser push' can be used for Blackberry that is not configured in our BES.

    For example, I want to be able to deploy an icon on the Blackberry from customers and suppliers we have, but these Blackberries are not related at all our BES or network.

    Is it possible to do this?  If so, should I do something special to make it work?

    If not, does that mean my only solution is to create a Java application that automatically launch the browser Blackberry (second option from the first link)?

    Thanks for your help!

    Channel browser push you make reference to requires the user is on a BlackBerry Enterprise Server.

    The alternatives to this is a Java application (as you have discovered), BlackBerry Widget or Signal of Web.  Web signals is the equivalent to a BlackBerry Internet Server Browser channel thrust.

    BlackBerry Widget SDK (applications requires a BlackBerry 5.0 device software)

    http://NA.BlackBerry.com/eng/developers/devbetasoftware/widgetsdk.jsp

    Web signals

    http://NA.BlackBerry.com/eng/developers/browserdev/websignals.jsp

  • File. WAR deployment error: weblogic. failed to preload at startup in a Web application:

    Hello

    I'm dealing with deployment error while installing the file. War on weblogic server. When I run my application of webservices plsql in integrated weblogic server, it works fine... When I tried to package it and deploy on weblogic, it gives following error, pls could anyone help on this topic.

    Pls. note I've created connections to database through the wizard for the creation of webservices plsql, data source name is created under weblogic domain-> services-> jdbc-> data source in the application server. Even then, I'm not able to succeed with the deployment. Appreciate your help, thank you.

    I used jdeveloper 11.1.1 g for the construction of pl/sql based Web application services.

    Message icon - Error An error occurred during activation of the changes, please see the log for more details.

    Message icon - Error [HTTP:101216] Servlet: 'FinanceCreateInvoicePort' failed by preloading at startup in a Web application: "PLSQLWebServices-Project1-context - root.war. java.sql.SQLException: error looking up < java: comp/env/jdbc/CreateInvDBconnDS >: to createinvdbconn. FinanceCreateInvoiceBase. < init > (FinanceCreateInvoiceBase.java:33) to createinvdbconn. FinanceCreateInvoiceUser. < init > (FinanceCreateInvoiceUser.java:11) at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at weblogic.wsee.component.pojo.JavaClassComponent.createTarget(JavaClassComponent.java:49) at weblogic.wsee.component.pojo.JavaClassComponent. < init > (JavaClassComponent.java:40) at weblogic.wsee.ws.WsBuilder.setComponent(WsBuilder.java:1907) at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:215) at weblogic.wsee.ws.WsFactory.createServerService(WsFactory.java:54) at weblogic.wsee.deploy.ServletDeployInfo.createWsService(ServletDeployInfo.java:91) at weblogic.wsee.deploy.DeployInfo.createWsPort(DeployInfo.java:368) at weblogic.wsee.server.servlet.BaseWSServlet.init(BaseWSServlet.java:83) at javax.servlet.GenericServlet.init(GenericServlet.java:241) at weblogic.servlet.internal.StubSecurityHelper$ ServletInitAction.run (StubSecurityHelper.java:283) to



    Thank you

    Devendra




    Define the JNDI name as jdbc /CreateInvDBconnDS instead of CreateInvDBconn

    What makes research JNDI as java: comp/env/jdbc/CreateInvDBconnDS with java: comp/env/added by default.

    ADF expects this JNDI name to start with jdbc / and end with the DS.

  • EPM 11.1.2.3: deployment of java web applications on environment Mix Linux and windows

    Hi all

    I intend to install and configure EMP 11.1.2.3.

    We have 2 of linux and windows server 1.

    on linux, I am planning to install foundation, Essbase and planning.

    and in windows I intend to install HFM and FDMEE.

    now my question is when you perform the configuration for HFM and FDMEE, I need to deploy the java web application for HFM and FDMEE on windows.

    so everything by deploying web applications in java on windows that I put a different name for "domain name".

    as linux domain name will be 'EPMSystem', so for windows it would be different as 'EPMSystem1'.

    There will be no problem if the domain names are the same for both linux and windows?


    and for weblogic server port must be different as 7001 on linux and 7002 on HFM?


    Kind regards

    Dattatray Mate

    Untitled.jpg

    Yes, please keep another domain name...

    Port is not a problem, you can use the same port as well

    See you soon!

    SH! going

  • Is this normal duplicate planning entered appear in Weblogic after a web application deployment?

    Hi all

    I am currently installing Hyperion Planning more v11.1.2.3.00 on 3 different servers of MS Windows 2008 Server R2 (x 64) (that is to say, HYP01, HYP02 and HYP03) in a mode of Standard deployment typical, as follows:

    -HYP01 Server: Essbase;

    -HYP02 server: planning;

    -HYP03 server: Foundation (IE, SSP, workspace), EPMA, Manager of calculation, financial reports, Reporting and analytical framework, analysis Web, Essbase Administration Services, Essbase Studio, WebLogic Server, Oracle HTTP Server.

    as noted in Chapter 1 of the Standard EMP Deployment Guide.

    I followed the steps to install Planning on HYP02 and then noticed that he appeared in the administration console (installed on HYP03) WebLogic as "Planning0" (see attachment 20141210-MJ-ORA - OWLServerStatus_BeforeHPDeployment.jpg) running on the server HYP02. I was able to access the login page of planning, but due to some problems with the workspace, I was not able to verify whether the planning was available in the workspace (it's a question I've been working with Oracle's Support staff).

    After the launch of the EPM on the HYP03 system configurator, I noticed that he had picked up this planning remained to be deployed... so I have authorized its deployment. At the end of this step, I restarted all servers and access the WebLogic administration console again. That's when I noticed that there is now an entry for 'Planning0' and 'Planning of the depenses1' (see attached 20141210-MJ-ORA - OWLServerStatus_AfterHPDeployment.jpg), showing that 'Planning0' was no mention of a server it was running on when 'Planning of the depenses1' will run on the server HYP03 (IE, not the HYP02).

    Without being able to access the workspace again (I'm working on the resolution of a recurring problem with the Support of Oracle), I would like to know the following:

    1 - is normal\advisable to 'Planning0' and 'Planning of the depenses1' appear in the WebLogic administration console?

    2. If it is normal\advisable, how can I remove\delete 'Planning of the depenses1' of the WebLogic administration console? The removal\deletion will cause problems with my installation?

    Any other advice\pointers would be much appreciated.

    Thanks in advance.

    JBM

    If you intend to deploy to both HYP03 and HYP02, then that is what you did and stick with it, if you only intend to be deployed to HYP02, then you need to change the configuration.

    I don't know why you think that all EMP products are now highly available as it seems only that planning is such that it has been deployed on two servers, what Essbase and other web applications?

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • How to add jsession ID to an ADF web application deployed in weblogic server?

    Hello

    I use jdeveloper 11.1.2.4 version. Can anyone tell please how to add custom JSESSIONID (BLTSESSIONID) to the URL of the web application ADF that must be deployed in weblogic server. I tried the following approach. but it did not work for me.

    in webogic.xml, I added

    < session descriptor - >

    < name > BLTSESSIONID < / cookie-name >

    < / session descriptor >

    However, I've added the weblogic.xml manually from the gallery.

    Could someone help me on this please?

    Thank you

    You don't have to add the session ID to the URL. The Web application automatically manages session IDS. By default, it uses an HTTP cookie (a cookie with name JSESSIONID) therefor. The Web application will automatically add it to the URL only if it detects that the client browser does not support cookies (for example, if the user has disabled cookies in the browser). By adding the lines above to weblogic.xml you just changed the name of cookie JSESSIONID to BLTSESSIONID default session. This is useful only if you have access to a couple of different Web applications from one and the same server and you want every application to maintain a clean session (for example, each application having a different session cookie name). If all applications on the server use one and same name cookie (JSESSIONID for example) and you have access to more than one application at the same time in one and the same browser (and even multiple instances of the browser, with the exception of some special cases), you will not be able to work with these applications correctly because the next access to another application will replace the cookie and you will lose the session to the requests earlier. Because HTTP cookies are maintained at the level of server name, it's not at the level of application root. In this case, you must specify the application names specific cookie (what you did above).

    Dimitar

Maybe you are looking for

  • contacts of OSX fails to import archived contacts

    Initially, is saw 100 copies of four of my contacts (iCloud sync'ing enabled). To try to solve the problem, I performed the following steps: 1. take the MacBookPro offline (no internet, disabled iCloud contacts). 2 clean up duplicate contacts. 3. exp

  • I don't want history kept at all.but fear that it will slow down my browser.

    I don't want my story saved at all. I'm afraid he's slowing down my browser but if I don't...? This has happened Don't know how many times

  • volume device does not

    original title: volume issues I recently rebooted my computer and the volume device does not work, how can I add volume device to turn my volume to work?

  • Will there be a final update 'Roll-Up' aka, SP4 for XP?

    Hello We all agree that there is a LOT of PC out there still on XP and it will continue to run XP for a considerable time for reasons very very good, but that all support for XP ending early April 2014 (40 days from'm) and no new update's for XP beyo

  • Don't see Blackberry point in the new project in VS2008

    Hello Here are a few of my machine: OS: WinXP Sp2 VS2008 9.0.21022.8 RTM I install vs_plugin.31.exe and BlackBerry Widget SDK Beta 3. MSI. But there is no element of Blackberry in the section of the new project. I watch the video and see that they cr