My problem in deploy(j2ee tutorial,chapter 19)
d:\ConverterAppClient.jar is not return
deploy message is:
distribute: D:\ConverterApp.ear
Deploy action running...
Completed
--- Operation Completed Successfully ---
start: ConverterApp
Running...
Completed
--- Operation Completed Successfully ---
com.sun.enterprise.admin.common.exception.AFException: D:\ConverterAppClient.jar at com.sun.enterprise.deployapi.SunTarget.exportClientStubs(SunTarget.java:181) at com.sun.enterprise.tools.deployment.ui.deploy.DeploymentPlatform.writeAppClientStubs(DeploymentPlatform.java:1024) at com.sun.enterprise.tools.deployment.ui.deploy.DeploymentPlatform._deploy(DeploymentPlatform.java:1240) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)> Unable to create client stub jarfile: com.sun.enterprise.admin.common.exception.AFException: D:\ConverterAppClient.jar
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sun.enterprise.tools.deployment.ui.utils.UIActionDispatcher.invoke(UIActionDispatcher.java:371) at com.sun.enterprise.tools.deployment.ui.utils.UIActionDispatcher.invoke(UIActionDispatcher.java:393) at com.sun.enterprise.tools.deployment.ui.deploy.DeploymentPlatform$DeploymentProcess.run(DeploymentPlatform.java:1705) at com.sun.enterprise.tools.deployment.ui.utils.ExecProcess$ThreadProcess.run(ExecProcess.java:585) at java.lang.Thread.run(Thread.java:534)
[Completed (time=28.0sec, status=0)]
I am a beginner.And my English is very poor ! Could you help me?Thanks!!!
when specifying the the path for returning the client jar, dont give the jar file name.
just give "d:\"
Try it out!!!!!!!!
Thanks............
Similar Messages
-
Problems with Deploying the Tutorial
Hi,
i've tried to develop a small web service on the Oracle Application Server. Therefor i've tested the Tutorial Developing, Deploying and Managing Web Services Using JDeveloper and Oracle Application Server (http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm).
But i've several problems with this tutorial...
In the tutorial is mentioned to use J2EE 1.4 JAX RPC, but with this one i cant deploy on my Application Server - only local embedded works. On the Application Server i get the message:
#### DCM command did not complete successfully (-8)
#### HTTP return code was -8
Exit status of DCM servlet client: -8
Elapsed time for deployment: 22 seconds
#### Deployment incomplete. #### 28-Sep-2006 16:29:04
After searching the forum i found the reason for this...
Unable to deploy web-service from JDeveloper to Oracle AS
Okay so i tried to develop the same example under J2EE 1.3... Now i can deploy the example on the Application Server but it doesn't work either! When i call the webservice i recieve the error:
500 Internal Server Error
java.lang.UnsupportedClassVersionError: getdates2/IGetDates2 (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureClassLoader.java:172)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].naming.ContextClassLoader.defineClass(ContextClassLoader.java:1179)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].naming.ContextClassLoader.defineClass(ContextClassLoader.java:1065)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].naming.ContextClassLoader.findClass(ContextClassLoader.java:404)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].naming.ContextClassLoader.loadClass(ContextClassLoader.java:143)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at oracle.j2ee.ws.JavaRpcWebService.init(JavaRpcWebService.java:76)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.loadServlet(HttpApplication.java:2354)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.findServlet(HttpApplication.java:4795)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2821)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:680)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Okay so i tested it in embedded mode but it doesn't work here too... i get the error:
500 Internal Server Error
Servlet error: No Serializer found to serialize a 'java.util.Calendar' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.
Damn! I dont know what to do ;)
Any suggestions?
thx
Matthias
btw:
Setup is:
JDeveloper 10.1.3.1
AppServer 10.1.2.0.2
Content DB 10.2.0.0.0Another Problem occurred...
As i mentioned deploying direct to the AppServer from JDeveloper works well (for the J2EE 1.3) but only that it doest work on the Application Server. So I tried to deploy a ear/war file and check them manuell into the Application Server. But doesn't work either...
I get the following error:
Deployment nicht erfolgreich: Verschachtelte Exception
Lösung:
Basis-Exception:
java.rmi.RemoteException
deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: xmlns:xsi. deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: xmlns:xsi
Any ideas for solving this problem? -
Problems with Deploying WLI Tutorial App to a cluster
I'm using Weblogic 8.1 SP3 and have built the app (steps 1-5) listed below:
Tutorial
The app works fine in Workshop and even works fine deployed to a simple one-server WLI configuration once the 2 JMS Queus and required db tables are created manually. The problem is in deploying to a cluster. No error messages are generated but when loading the test page (http://localhost:8001/Tutorial_Process_ApplicationWeb/requestquote/RequestQuote.jpd?.EXPLORE=.TEST
) I do not get the same results as when loading in the single server setting (Note the port number is the port that my clustered managed server is running on). Basically the multi-tab page that loads in the one-server scenario only comes up as one tab - the Overview tab. None of the other tabs allowing you to test the web services are available.
I tried to cheat it by saving the SOAP test page from the working version and posting the form to the non-working version - but all that was returned was the Overview page. I suspect the issue is JTX-related but I am new the Weblogic so I'm somewhat lost.
Any help appreciated. I can be reached at [email protected]I am getting the following output from the Admin Server when I attempt to access the JPD process:
<19-Nov-2004 13:58:56 o'clock GMT> <Error> <JTA> <BEA-110412> <Xid=BEA1-0046F2A8360F0D4CF282(73146307),Status=Committed,HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=500,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=committed,assigned=cgServer),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@429b2ce,re-Registered = false),SCInfo[integration-cluster-xa-changed+cgServer]=(state=committed)) completed heuristically: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.transaction.xa.XAException: No connection associated with xid = BEA1-0046F2A8360F0D4CF282-7765626C6F6769632E6A6462632E777261707065722E4A545358415265736F75726365496D706C)) -
Problem with deploying j2ee app to weblogic server
I would like to deploy a j2ee application, that was successfully deploy on the iAS version 10.1.3, on to the web logic server.
It deploy successfully, but when I try to run it, I get a 404 error. I can see in the web center, the application is up.
What should I look for to trouble shoot this?
Thanks.1. Check the context root of the webapplication to make sure you are accessing that webresources like html or jsp file with correct context root.
2. If you have a single server domain of WLS, then check access.log file located at: user_projects\domains\yourDomain\servers\yourServer\logs. This file should should show the resource you are accessing and the response status.
3. From Weblogic Console, after the application is Deployed, make sure that your application is in Active Mode. From Weblogic Console, under Deployments tab, select your app, and see that it is Active. If it is in Prepared state, then click Lock and Edit, and select your App, and click on Start button.
4. Check for CASE Sensitivity also for the resource you are accessing and context-root value etc for ex: like any JSPs or htmls.
Ravi Jegga -
Run client execution problem when running Sun J2EE tutorial example
Hi,
I'm trying to run the Sun J2EE tutorial example, CartApp.
When come to run the client application I got the following error:
The command:
E:\Dev\src\J2EE_J2EE_tutorial\examples\ears>runclient -client CarApp.ear -name CartClient -textauth
The error:
Application threw an exception:java.io.IOException: CarApp.ear does not exist
The deployment complete without error.
I tried to the the APPCPATH to :
set APPCPATH=E:\Dev\src\J2EE_J2EE_tutorial\examples\ears\CartAppClient.jar
set APPCPATH=CartAppClient.jar
On both set, it gave the same error above.
Did someone known the problem I have ?
Thnakshi ,
I think u have given other disply name to your J2EE client ,
Anyway check disply name of J2EE client through deploytool.
u have to use that display name to access the j2ee client .
suppose ur j2ee client displyname is testclient, u can use:
runclient -client ConverterApp.ear -name testclient
hope this will help u,
babu. -
J2ee Tutorial #4 problem - FailedLoginException
I am new to enterprise beans, and I am going through the j2ee tutorial. When working on lesson 4 - a simple message bean, I receive the following message after submitting the initail form:
javax.servlet.ServletException: Could not initialize due to javax.security.auth.login.FailedLoginException: Password Incorrect
at bonus.controllers.BonusCalculationServlet.init(BonusCalculationServlet.java:71)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:536)
This appears to be a simple permissions problem, but I can not figure out where to configure these permissions. Can anyone help me?
TIA,
ChadEasy solution that I overlooked:
When setting the ResourceRefs for the BonusCalculationServlet, a user name and password must be specified. The generic username and password can be found in the auth.properties file in <install location>\config\auth.properties. In my specific case, they were the generic values from the j2ee install, guest/guest123.
-Chad -
Problem with deploying : SDM could not start the J2EE cluster on the host .
Hello, All
I have following problem with deploying the aplication I get this messenger:
16/09/2008 07:59:44 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
[001]Deployment aborted
Settings
SDM host : 192.168.0.14
SDM port : 50018
URL to deploy : file:/C:/DOCUME1/PENITU1/LOCALS~1/Temp/temp47114ZChangeRequestDatabase.ear
Result
=> deployment aborted : file:/C:/DOCUME1/PENITU1/LOCALS~1/Temp/temp47114ZChangeRequestDatabase.ear
Aborted: development component 'ZChangeRequestDatabase'/'local'/'LOKAL'/'0.2008.05.03.04.24.17'/'0':
SDM could not start the J2EE cluster on the host Jupiter! The online deployment is terminated. There is no cluster control instance running on host Jupiter which is described in SecureStorage . The instances, returned by MessageServer [MS host: Jupiter; MS port: 3901], are :|Name:JM_T1221612526745_0_penitus15 |Host:PENITUS15 |State:5|HostAddress:192.168.0.205||Name:JM_T1221612357814_0_Jupiter |Host:pfs |State:5|HostAddress:192.168.0.14||Name:JC_Jupiter_JTP_00 |Host:pfs |State:5|HostAddress:192.168.0.14|Please check if there is an appropriate running cluster instances.
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).STARTUP_CLUSTER)
Deployment exception : The deployment of at least one item aborted
I dont'n know How do I solver this error?
- I reviewed the virtual memory and I increase the virtual memory
- I restarted the server and the system
- I reviwed the parameter in the config tool --> cluster --> security storage it is OK
Any suggestion for solver this problem
Thanks
Regards
DSI found this messenger in Additional log information., Please si
17/09/2008 03:04:51 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] INFO:
[004]Additional log information about the deployment
<!LOGHEADER[START]/>
<!HELP[Manual modification of the header may cause parsing problem!]/>
<!LOGGINGVERSION[1.5.3.7185 - 630]/>
<!NAME[C:\usr\sap\JTP\JC00\SDM\program\log\sdmcl20080917200328.log]/>
<!PATTERN[sdmcl20080917200328.log]/>
<!FORMATTER[com.sap.tc.logging.TraceFormatter(%24d %s: %m)]/>
<!ENCODING[Cp1252]/>
<!LOGHEADER[END]/>
Sep 17, 2008 1:04:40 PM Info: -
Starting deployment -
Sep 17, 2008 1:04:40 PM Info: Error handling strategy: OnErrorStop
Sep 17, 2008 1:04:40 PM Info: Prerequisite error handling strategy: OnPrerequisiteErrorStop
Sep 17, 2008 1:04:40 PM Info: Update strategy: UpdateAllVersions
Sep 17, 2008 1:04:40 PM Info: Starting deployment prerequisites:
Sep 17, 2008 1:04:40 PM Info: Loading selected archives...
Sep 17, 2008 1:04:40 PM Info: Loading archive 'C:\usr\sap\JTP\JC00\SDM\program\temp\temp62604ZIssueDatabase.ear'
Sep 17, 2008 1:04:41 PM Info: Selected archives successfully loaded.
Sep 17, 2008 1:04:41 PM Info: Actions per selected component:
Sep 17, 2008 1:04:41 PM Info: Initial deployment: Selected development component 'ZIssueDatabase'/'local'/'LOKAL'/'0.2008.04.17.10.53.03'/'0' will be deployed.
Sep 17, 2008 1:04:41 PM Info: Ending deployment prerequisites. All items are correct.
Sep 17, 2008 1:04:43 PM Error: Unable to compare host[Jupiter] and host[PENITUS15] Throwable: java.net.UnknownHostException Throwable message: PENITUS15: PENITUS15
Sep 17, 2008 1:04:45 PM Error: Unable to compare host[Jupiter] and host[pfs] Throwable: java.net.UnknownHostException Throwable message: pfs: pfs
Sep 17, 2008 1:04:45 PM Error: Unable to compare host[Jupiter] and host[pfs] Throwable: java.net.UnknownHostException Throwable message: pfs
Sep 17, 2008 1:04:45 PM Info: Saved current Engine state.
Sep 17, 2008 1:04:45 PM Info: Starting: Initial deployment: Selected development component 'ZIssueDatabase'/'local'/'LOKAL'/'0.2008.04.17.10.53.03'/'0' will be deployed.
Sep 17, 2008 1:04:45 PM Info: SDA to be deployed: C:\usr\sap\JTP\JC00\SDM\root\origin\local\ZIssueDatabase\LOKAL\0\0.2008.04.17.10.53.03\temp62604ZIssueDatabase.ear
Sep 17, 2008 1:04:45 PM Info: Software type of SDA: J2EE
Sep 17, 2008 1:04:45 PM Info: ***** Begin of SAP J2EE Engine Deployment (J2EE Application) *****
Sep 17, 2008 1:04:45 PM Error: Unable to compare host[Jupiter] and host[PENITUS15] Throwable: java.net.UnknownHostException Throwable message: PENITUS15
Sep 17, 2008 1:04:45 PM Error: Unable to compare host[Jupiter] and host[pfs] Throwable: java.net.UnknownHostException Throwable message: pfs
Sep 17, 2008 1:04:45 PM Error: Unable to compare host[Jupiter] and host[pfs] Throwable: java.net.UnknownHostException Throwable message: pfs
Sep 17, 2008 1:04:45 PM Info: Starting cluster instance processes.
Sep 17, 2008 1:04:45 PM Error: Unable to compare host[Jupiter] and host[PENITUS15] Throwable: java.net.UnknownHostException Throwable message: PENITUS15
Sep 17, 2008 1:04:45 PM Error: Unable to compare host[Jupiter] and host[pfs] Throwable: java.net.UnknownHostException Throwable message: pfs
Sep 17, 2008 1:04:45 PM Error: Unable to compare host[Jupiter] and host[pfs] Throwable: java.net.UnknownHostException Throwable message: pfs
Sep 17, 2008 1:04:45 PM Error: An error occured while starting a cluster instance.
Sep 17, 2008 1:04:45 PM Error: There is no clutser control instance running on host Jupiter which is described in SecureStorage .
The instances, returned by MessageServer [MS host: Jupiter; MS port: 3901], are :
Name:JM_T1221672404781_2_penitus15
Host:PENITUS15
State:5
HostAddress:192.168.0.215
Name:JM_T1221679486171_0_Jupiter
Host:pfs
State:5
HostAddress:192.168.0.14
Name:JC_Jupiter_JTP_00
Host:pfs
State:5
HostAddress:192.168.0.14
Please check if there is an appropriate running cluster instances.
Sep 17, 2008 1:04:45 PM Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
Sep 17, 2008 1:04:45 PM Error: Aborted: development component 'ZIssueDatabase'/'local'/'LOKAL'/'0.2008.04.17.10.53.03'/'0':
SDM could not start the J2EE cluster on the host Jupiter! The online deployment is terminated.
There is no clutser control instance running on host Jupiter which is described in SecureStorage .
The instances, returned by MessageServer [MS host: Jupiter; MS port: 3901], are :
Name:JM_T1221672404781_2_penitus15
Host:PENITUS15
State:5
HostAddress:192.168.0.215
Name:JM_T1221679486171_0_Jupiter
Host:pfs
State:5
HostAddress:192.168.0.14
Name:JC_Jupiter_JTP_00
Host:pfs
State:5
HostAddress:192.168.0.14
Please check if there is an appropriate running cluster instances.
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).STARTUP_CLUSTER)
Sep 17, 2008 1:04:45 PM Info: Starting to save the repository
Sep 17, 2008 1:04:46 PM Info: Finished saving the repository
Sep 17, 2008 1:04:47 PM Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.
Sep 17, 2008 1:04:47 PM Error: -
At least one of the Deployments failed -
Any help will be well received about this problema
Thk
Regards
DS -
J2EE Tutorial - Application Client
Hi,
I've been trying to work through the J2EE Tutorial and I've come to a complete standstill at the EJB section. I have a few problems.
First of all my deployment tool does not have a JNDI Names Tag as shown in the Mapping The Enterprize Beans Section (Chapter 19). How do I do this?
I am getting the following error when I try to run my J2EE Application Client.
Caught an unexpected exception!
java.lang.ClassCastException
at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableR
emoteObject.java:229)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
at ConverterClient.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:23
7)
at com.sun.enterprise.appclient.Main.<init>(Main.java:425)
at com.sun.enterprise.appclient.Main.main(Main.java:97)
Caused by: java.lang.ClassCastException
at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableR
emoteObject.java:212)
Finally, can anybody recommend a good tutorial or book as I think the J2EE tutorial is unusually bad.http://docs.sun.com/source/819-0079/dgacc.html
Finally, can anybody recommend a good tutorial or
book as I think the J2EE tutorial is unusually bad.Search for Mastering EJB by Ed Roman. It should give a better understanding. -
J2EE Tutorial: Exception when building with ant
I am trying to build the converter example on page 48 of the J2EE tutorial using ant. Ant seems to choke on the following line from the build.xml:
<property environment="myenv" />
The output of the "ant converter" command is:
Buildfile: build.xml
init:
BUILD FAILED
/usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: /usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
--- Nested Exception ---
/usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
--- Nested Exception ---
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:248)
at org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)
Total time: 1 second
My best guess is that the "myenv" line in the build.xml requires some additional attribute. I'm using ant version 1.3. My OS is Solaris (noted for possible environment-related issues).
Thanks in advance!
Eric SmithOn Windows XP Pro, the line
<property environment="myenv" />
in the init target of build.xml for the j2ee tutorial examples triggers a windows error message:
16 bit MS-DOS Subsystem
=======================
C:\WINDOWS\system32\ntvdm.exe
Error while setting up environment for the application. Choose 'Close' to terminate the application.
<<Close>> <<Ignore>>
So it looks as if ant is trying and failing to access the winnt system environment here.
According to Ant Developers Handbook (Sams, October 2002, chapter 4, p. 151), the ant environment property "specifies a prefix, giving access to OS-specific environment variables. This is not supported on all platforms." Until this problem is fixed, it appears that on XP systems anyway, any ant settings in build.xml files that rely on direct access to the system environment will fail. Here is some debug output from the j2ee tutorial examples init target which demonstrates this:
C:\apps\j2sdkee1.3.1\j2eetutorial\examples>ant init
Buildfile: build.xml
init:
[echo] starting init target
[echo] reached marker 1
[echo] reached marker 2
[echo] value of J2EE_HOME is ${myenv.J2EE_HOME}
[echo] finished init target
BUILD SUCCESSFUL
where the task:
<property environment="myenv" />
(which generates the OS error popup noted above) occurs between marker 1 and marker 2. Clearly the value of J2EE_HOME is NOT being successfully read from the system environment here. -
J2EE tutorial (June 17 '04) servlet example compilation error
This is a copy of my previous post on the same topic, but this one has a more self-desriptive subject line. Apologies for duplication.
I am trying the first servlet example in the J2EE tutorial, June 17, 2004, pgs 443 - 448. I have completed all the steps as described. However, the URL results in the following error. I would like to point out that I am using the URL http://localhost:8081/bookstore1/bookstore (instead of port 8080 because the admin console suggests that port 8081 is an available http port):
Assistance would be appreciated.
HTTP Status 404 - /bookstore1/bookstore
type Status report
message /bookstore1/bookstore
description The requested resource (/bookstore1/bookstore) is not available.
Sun-Java-System/Application-Server-PE-8.0
I looked at the logviewer and there are 3 severe errors in the log:
1. Application Server
Log Entry Detail
Details
Timestamp: Aug 6, 2004 14:36:28.375
Log Level: SEVERE
Logger: javax.enterprise.system.container.web
Name-Value Pairs:
_ThreadID=12;
Record Number: 754
Message ID: WebModule[bookstore1]Exception sending context initialized event to listener instance of class listeners.ContextListener java.lang.NoClassDefFoundError
Complete Message
exception/OrderException
at listeners.ContextListener.contextInitialized(Unknown Source)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3679)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:873)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:171)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:855)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:623)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:947)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:729)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:147)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:224)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:488)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:475)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:302)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:107)
at com.sun.enterprise.admin.server.core.mbean.config.ManagedServerInstance.multicastEvent(ManagedServerInstance.java:3880)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.server.core.jmx.Introspector.invokeMethodOn(Introspector.java:181)
at com.sun.enterprise.admin.server.core.mbean.config.AdminBase.invoke(AdminBase.java:86)
at com.sun.enterprise.admin.server.core.mbean.config.ConfigMBeanBase.invoke(ConfigMBeanBase.java:680)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:221)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:228)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:823)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:282)
at com.sun.enterprise.deployment.phasing.DeploymentService.multicastEvent(DeploymentService.java:341)
at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:284)
at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:115)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:74)
at com.sun.enterprise.deployment.phasing.DeploymentService.executePhases(DeploymentService.java:233)
at com.sun.enterprise.deployment.phasing.DeploymentService.deploy(DeploymentService.java:150)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:275)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:287)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:280)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:221)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:228)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:823)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:282)
at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:768)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:102)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:261)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:583)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:200)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:180)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:582)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:161)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:979)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:692)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:647)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:691)
at java.lang.Thread.run(Thread.java:534)
2. Application Server
Log Entry Detail
Details
Timestamp: Aug 6, 2004 14:36:28.375
Log Level: SEVERE
Logger: tomcat.server./bookstore1.Context
Name-Value Pairs:
_ThreadID=12;
Record Number: 755
Message ID:
Complete Message
Error listenerStart
3. Application Server
Log Entry Detail
Details
Timestamp: Aug 6, 2004 14:36:28.375
Log Level: SEVERE
Logger: tomcat.server./bookstore1.Context
Name-Value Pairs:
_ThreadID=12;
Record Number: 756
Message ID:
Complete Message
Context startup failed due to previous errorsI had the same problem. It was caused by not including \j2eetutorial14\examples\web\bookstore\dist\bookstore.jar in the bookstore1.war. You may need to build the bookstore.jar file first if you haven�t already.
-
I know this has come up before in the forum, but the ansers didnt solve my problem.
I have been trying to deploy and run the bookstore examples for the J2EE tutorial online. I would be extremely grateful if someone out there who has setup and run these tutorials on the Windows platform could let me know exactly what environment variables etc. I should be configuring.
I have added JAVA_HOME and J2EE_HOME to the environemt variables, pointing to the java sdk and J2EE application server installation ocation respectively.
I also tried setting the j2ee.home and j2ee.tutorial.home attributes in the build.propoperties file, but I cant get it all to work.
Please tell me the environment variables, system variables (if different), CLASSPATH, and any other setup I need to do.
C.Sorry, I was at work earlier and couldnt get all the info.
I have set the following environment variables:
JAVA_HOME = C:\j2sdk1.4.2_04
J2EE_HOME = C:\Sun\AppServer
CLASSPATH = .;D:\Packages;%J2EE_HOME%\lib\j2ee.jarI keep my own packages in the D:\Packages folder.
I came across some tutorial info that says to also add the j2ee.home and j2ee.tutorial.home properties in the file <INSTALL>j2seetutorial14/examles/common/build.properties. This looks like the following:
j2ee.home=C:\\Sun\\AppServer
j2ee.tutorial.home=D:\\J2EE\\j2eetutorial14
sunone.home=${j2ee.home}
admin.password.file=${j2ee.tutorial.home}/examples/common/admin-password.txt
admin.host=localhost
admin.user=admin
admin.port=4848
https.port=8181
domain.resources="domain.resources"
domain.resources.port=8080
db.root=${j2ee.home}/pointbase
db.driver=com.pointbase.jdbc.jdbcUniversalDriver
db.host=localhost
db.port=9092
db.sid=sun-appserv-samples
db.url=jdbc:pointbase:server://${db.host}:${db.port}/${db.sid}
db.user=pbpublic
db.pwd=pbpublic
url.prop=DatabaseName
ds.class=com.pointbase.jdbc.jdbcDataSource
db.jvmargs=-ms16m -mx32m Note that the line breaks don't show in this browser, or in notepad when I edited it - got the 'square' character when I opened that, but I think the content is right.
I also tried setting the username above and the username in the file admin-passport., but that didnt work either. -
J2EE Tutorial is really getting to me
Hi all,
Here's the thing. For my internship i have to develop a web service using J2EE 1.4. I've only just started 2 weeks ago, and been researching the whole platform and all it's components.
Just now i've began to look at the web services using JAX-RPC, but the frustration is already hitting me. Mainly because the Tutorial doesn't explain anything what's going on (especially what is exactly done when de ASANT commando's are executed: i'm trying to figure this out, because when i have to develop a webservice i can't really use asant now can i?).
For instance, how can you compile the HelloClient.java example WITHOUT ASANT? It doesn't say anywhere! It just says "type asant run" and this is the output you'll get. Yeh yeh very nice, but HOW does it work.
i know i'm complaining a lot, but for someone who has to develop a webservice THIS just isn't good enough.
Does anyone have suggestions for some good books on Web Services & J2EE 1.4? Or any good references on the internet (no bundled tutorials such as the WSDP and stuff)?
Any help would be really appreciated
Mic.Asant is a tool, like make, for building applications. asant is a actually a version of the very popular Ant tool, with a few extra commands specific to the S1AS admin tool. To learn about Ant, go to:
http://ant.apache.org/
Of course you can use javac, but then you have to set the correct classpath and do a lot of other routine things every time you want to build an example. asant does this automatically.
To find out what asant is doing, just look at the build.xml files in the example directory. The definition of each task tells you what it's doing. There's also a default task, usually "build", defined at the top of the build.xml file.
asant is especially useful for JAX-RPC, because it invokes the JAX-RPC compiler and deploy tools -- wscompile and wsdeploy -- as well as javac. The JAX-RPC tutorial chapter explains what these tools do. I think the idea is that yes, you should use a tool like Ant when developing Web services. -
Re. J2EE Tutorial - Setting
Hi,
I am familiar to J2EE, but new to the new technlogies & working wth IDEs. I know this is not the right forum for my question, but i didn't find the best forum for my question. I have put the same question in J2EE SDK, so please ignore in that forum.
I am learning with J2EE Tutorial with NetBeans. I create the examples on myself as mentioned in the tutorial. Currently, i m working on savingsAccount EJB. My problem is, on creating DB.
I write
asant -buildfile create-db.xmlas mentioned in tutorial.
My root folder is D:\Trupti\Tutorials\J2EE-NB TUTORIAL\Projects
I copied the common.properties & database.properties in my root folder. I needed to change my appserv folder, i did. Now still what is missing, y does it give this error msg. Where am i going wrong. If anybody can help would be really appreciative.
On Dos prompt it gives as -
D:\Trupti\Tutorials\J2EE-NB TUTORIAL\Projects\savingsAccount>asant -buildfile cr
eate-db.xml
Buildfile: create-db.xml
startDB:
[java] Server started, listening on port 9092, display level: 0 ...
run:
[java] *****************************************************************
[java] -driver com.pointbase.jdbc.jdbcUniversalDriver
[java] -url jdbc:pointbase:embedded:sample
[java] -script <none>
[java] -user PBPUBLIC
[java] -password PBPUBLIC
[java] -autocommit true
[java] -prompt2 true
[java] -spoolfile <none>
[java] -silent false
[java] *****************************************************************
[java] Database SAMPLE does not exist or cannot be found in database home \
pointbase\databases specified either specify database.home=<folder> in pointbase
.ini or use the <URL>;database.home=<folder> to indicate the database folder. po
intbase.ini should be available in the current folder or you can specify the loc
ation for pointbase.ini with java -D:property=value where "property" is pointbas
e.ini and "value" is <path>pointbase.ini.
[java] Java Result: -1
BUILD SUCCESSFUL
Total time: 3 seconds
D:\Trupti\Tutorials\J2EE-NB TUTORIAL\Projects\savingsAccount>I hope i get some solution to it asap. If anybody has idea, which is the right forum for this question, please inform me.
Thanks
TruptiWell Lan, Yes I am using J2EE 1.4 Tutorial with Netbeans Version - the tutorial is specially designed to work with NetBeans & Sun AppSer.
The tutorial says to run this command on command line. Here is the
text from the tutorial that explains steps to create database:-
Running the SavingsAccount Example
Before you run this example, you have to create the database and deploy the
SavingsAccount.jar file.
Creating the Sample Database
The instructions that follow explain how to use the SavingsAccountBean example
with PointBase, the database software that is included in the Application
Server bundle.
1. In the IDE, choose Tools��PointBase Database��Start Local PointBase Database.
2. Create the database tables by running the create.sql script.
a. Make sure that the appsrv.root property in your
<INSTALL>/j2eetutorial14/examples/ file points to the location of
your local Application Server installation. ********* HERE MY FOLDER POINTS TO THE SERVER ************
b. In a terminal window, go to this directory:
<INSTALL>/j2eetutorial14/examples/ejb/savingsaccount/
c. Type the following command, which runs the create.sql script:
asant -buildfile create-db.xml
3. In the Runtime window, expand the Databases node, right-click the
jdbc:pointbase:server://localhost:9092/sun-appserv-samples
node, and choose Connect. Type pbpublic as the password and click OK.
Once the connection is established, expand the connection node�fs Tables node. There should be a node for the SAVINGSACCOUNT table.
iS THEIR ANY OTHER WAY to run the create.sql script directly.
Thanks
Trupti -
Problem while deploying ear application in OAS
Hello,
I am trying to undeploy application or redeploy, its is giving exception below exception
ADMN-300071
No ApplicationInfo is associated with application named: example1
oracle.ias.sysmgmt.deployment.j2ee.exception.J2eeDeploymentException: No ApplicationInfo is associated with application named: example1 ,
Again i have tried to deploy application freshly, it is telling already application is exists, i am not getting what we can do, even i have checked list of applications , the above application is present in list ,
i am also getting admn-300075
i am not able to deploy, redeploy or undeploy , i am not able to do anything.
Thanks,
ChaitanyaI removed the jar files from /lib/ext and putted el-api.jar by myself in /lib directory. Now I can deploy my application as EAR file without problems but when I try to deploy it directly through JDeveloper the problem is the same:
[#|2013-08-22T09:43:22.507+0200|SEVERE|glassfish3.1.2|org.apache.catalina.core.ContainerBase|_ThreadID=98;_ThreadName=Thread-2;|ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException:oracle.adf.share.glassfish.listener.ADFGlassFishAppLifeCycleListener
I do understand that I should have this JAR but I do not know where to find it and where to put then.
Can you help in this point? Thanks -
Hi,
I have a problem in deploying a war file in Weblogic 7. I have deployed successfully
a jar file containing an ejb. I would like to deploy a war file which web.xml
has an <ejb-ref> element referencing a session bean contained in the jar previously
deployed.
I have the following error:
Module Name: PSSC-web, Error: weblogic.j2ee.DeploymentException: Could not setup
environment - with nested exception:
[weblogic.deployment.EnvironmentException: ejb-ref ejb/PSSCLdapUserEJB requires
an ejb-link or jndi-name]
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1093)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1074)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1110)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:730)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
>
My configuration files are:
weblogic-ejb-jar.xml
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
<jndi-name>PSSCLdapUserEJB</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
ejb-jar.xml
<ejb-jar>
<display-name>Ldap User</display-name>
<enterprise-beans>
<session>
<ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
<home>pssc.utils.ejb.PSSCLdapUserEJHome</home>
<remote>pssc.utils.ejb.PSSCLdapUserEJ</remote>
<ejb-class>pssc.utils.ejb.PSSCLdapUserEJBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
<ejb-client-jar>LDAPUSER</ejb-client-jar>
</ejb-jar>
web.xml
<web-app>
<ejb-ref>
<ejb-ref-name>ejb/PSSCLdapUserEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>pssc.utils.ejb.PSSCLdapUserEJHome</home>
<remote>pssc.utils.ejb.PSSCLdapUserEJ</remote>
</ejb-ref>
</web-app>
weblogic.xml
<weblogic-web-app>
<ejb-reference-description>
<ejb-ref-name>
ejb/PSSCLdapUserEJB
</ejb-ref-name>
<jndi-name>
PSSCLdapUserEJB
</jndi-name>
</ejb-reference-description>
</weblogic-web-app>
Configuration files seems correct to me, but the deployment of the war is not
working..
Does someone have an idea of what is the problem?
Thanks in advance,
GiuseppeHi,
I have a problem in deploying a war file in Weblogic 7. I have deployed successfully
a jar file containing an ejb. I would like to deploy a war file which web.xml
has an <ejb-ref> element referencing a session bean contained in the jar previously
deployed.
I have the following error:
Module Name: PSSC-web, Error: weblogic.j2ee.DeploymentException: Could not setup
environment - with nested exception:
[weblogic.deployment.EnvironmentException: ejb-ref ejb/PSSCLdapUserEJB requires
an ejb-link or jndi-name]
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1093)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1074)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1110)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:730)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
>
My configuration files are:
weblogic-ejb-jar.xml
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
<jndi-name>PSSCLdapUserEJB</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
ejb-jar.xml
<ejb-jar>
<display-name>Ldap User</display-name>
<enterprise-beans>
<session>
<ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
<home>pssc.utils.ejb.PSSCLdapUserEJHome</home>
<remote>pssc.utils.ejb.PSSCLdapUserEJ</remote>
<ejb-class>pssc.utils.ejb.PSSCLdapUserEJBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
<ejb-client-jar>LDAPUSER</ejb-client-jar>
</ejb-jar>
web.xml
<web-app>
<ejb-ref>
<ejb-ref-name>ejb/PSSCLdapUserEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>pssc.utils.ejb.PSSCLdapUserEJHome</home>
<remote>pssc.utils.ejb.PSSCLdapUserEJ</remote>
</ejb-ref>
</web-app>
weblogic.xml
<weblogic-web-app>
<ejb-reference-description>
<ejb-ref-name>
ejb/PSSCLdapUserEJB
</ejb-ref-name>
<jndi-name>
PSSCLdapUserEJB
</jndi-name>
</ejb-reference-description>
</weblogic-web-app>
Configuration files seems correct to me, but the deployment of the war is not
working..
Does someone have an idea of what is the problem?
Thanks in advance,
Giuseppe
Maybe you are looking for
-
Videos, no matter type of player, Flash or otherwise, do not display in Version 12
No matter what the source, or the type of player a video plays in, since I installed FireFox v12.0, no videos show. The screen goes black, that's it. RealPlayer doesn't work, etc. Help please!
-
How can I decouple the pagination for a global region?
I was having a delightful time using a common region defined on a global page when I determined that pagination setting was begin carried from one page to the next. Arghhhh! So for example, if I have paged to the second set (page) of rows (11-20) o
-
I have just upgrade my Macbook Air to Mavericks. I then checked for updates in the App Atore and have 2 updates available. When I select Update All I get prompted with a dialogue "Sign in to download from the App Store." . The Apple ID is pre-fille
-
Hi, i was just wondering how you tell how old your macbook is? i need to get a new apple support for it, but was going to wait until its just before a year old..
-
Missing songs and transfer issues
I know i'm not alone asking about why songs are mysteriously missing and most can be tracked down manually. Why does this keep happening? Its getting worse every time Apple releases an update. Does anyone have any suggestions on why or how to fix thi