Used deploytool from j2ee sdk to add a ConnectionPooledDataSource
hi,
does anyone know how to use the deploytool come with the j2ee sdk to add a ConnectionPooledDataSource(eg. OracleConnectionPooledDataSource), which later on i can using JNDI lookup the ConnectionPooledDataSource from my program(code). This is very urgent to me and i had been searching and browsing many site and document and newsgroup to look for the answer but still cannot found a solution for this. If this is imposibble, anyone can suggest any method for me to do the same thing?(Basically is i don't want to hardcode something and i don't want to be tight to one side eg Oracle), and i try to make my program as flexible as possible.
Thanks in advance.
If you are using j2sdkee1.2.1, see http://java.sun.com/j2ee/j2sdkee/techdocs/release/ConfigGuide.html#12442
If you are using j2sdkee1.3, it even easier, because there is an admin tool introduced Its called j2eeadmin See %J2EE_HOME%doc/release/ConfigGuide.html#12442 Where %J2EE_HOME% is where you have installed j2sdkee1.3
Similar Messages
-
Use deploytool from j2ee sdk to add a ConnectionPooledDataSource
hi,
does anyone know how to use the deploytool come with the j2ee sdk to add a ConnectionPooledDataSource(eg. OracleConnectionPooledDataSource), which later on i can using JNDI lookup the ConnectionPooledDataSource from my program(code). This is very urgent to me and i had been searching and browsing many site and document and newsgroup to look for the answer but still cannot found a solution for this. If this is imposibble, anyone can suggest any method for me to do the same thing?(Basically is i don't want to hardcode something and i don't want to be tight to one side eg Oracle), and i try to make my program as flexible as possible.
Thanks in advance.http://forums.java.sun.com/thread.jsp?forum=136&thread=166290
Please refrain from cross posting. -
Problem in running an EJB using deploytool in j2ee
I tried the deploytool in j2sdkee1.3 and wrote a simple ejb. I succeeded in compiling the files and in deploying, but when I typed runclient -client Hello.ear -name HelloClient -textauth in the command line, I met problem and the error message is : Binding name:Bingname:'java:comp/env/HelloWorld'
java.security.AccessControlException: access
denied<java.util.PropertyPermission * read,write)
unbinding name:'java:comp/env/HelloWorld'
what can I do ? many thanks4 .class files: Hello,HelloHome,HelloEJB,HelloClient. Following some instructions I succeeded in deploying the ejb,and the error occured when i typed"runclient -client Hello.ear -name HelloClient" in the command-line. PropertyPermission error ?
-
Using output from dynamic DL to add to sharepoint group
Hi,
I have output a dynamic DL to a variable $people but am unable to add users to a sharepoint group with the method below:
$poeple | foreach {Add-SPOUser -Group "US Team Members" -Site https://contoso.sharepoint.com -LoginName $_.PrimarySMTPAddress}
Output for the above command is Add-SPOUser : Cannot bind argument to parameter 'LoginName'
Which tells me there is an issue with my variable supplying the PrimarySMTPAddress property. When I check against get-member, it is definitely there. See below:
PS> $people | gm | findstr -i primary
PrimarySmtpAddress Property System.String {get;set;}
I am not sure how to proceed about accomplishing this or if it is even possible. Any help is greatly apprecated! Thanks all!I don't have the same cmdlet to test but give this a shot:
$people | foreach {Add-SPOUser -Group 'US Team Members' -Site 'https://contoso.sharepoint.com' -LoginName "$($_.PrimarySmtpAddress)" }
or
foreach ($person in $people)
Add-SPOUser -Group 'US Team Members' -Site 'https://contoso.sharepoint.com' -LoginName "$($person.PrimarySmtpAddress)" -
Hi ,
Does Sun ONE Application Server 7 contains J2EE SDK and can I access packages in my own Java programs without using any IDE such as Studio 4?
If yes, what version of SDK is included?
Thanks,
Rajeev.Hi,
Sun ONE Application Server 7 is J2EE 1.3.1 compliant AppServer. you can access the packages in your java programs but you need to check correct jar files since the packages in jar for Sun ONE AppServer may be different from J2EE SDK. -
How do I add photos to etsy using Dropbox from my iPad?
I am a brand new iPad user. I need to create etsy listings and thought I would be able to do that with an iPad using files from Dropbox. When I click on add photos nothing happens. Is this not possible? Should I have gotten a MacBook air instead?
Confused iPad newbie. :)If the website is using Flash to upload the photos, then no, the iPad won't be able to do the upload. You'll need to use a regular computer.
-
Unable to run Servlet program using J2EE SDK
Hello,
i am a newbie to all this j2ee stuff and servlets even.so the problem that i have maybe a very common one and i hope that most of you may have a fix to it...
i use J2EE SDK to compile and run Servlet programs.I have a Servlet program with the class name defined as
public class MyServlet extends HttpServlet ....
the file is stored as MyServlet.java
i set the CLASSPATH variable so that the required classes for the compilation of the program can be located.
the program compiles without any glitches.
However when i run the program by saying
java MyServlet
( i dont think its any different to run servlet code is it?)
i get the message
java.lang.NoClassDefFoundException:MyServlet
Can someone suggest a remedy?
thank you
-NDKFirst, I don't understand what you are trying to do. Running a servlet ?
Servlets are ran by an application server ! (Apache Tomcat ....).
Second, is your class in any package ? -
Guidelines for using JPA from an Add-on?
Can somebody post the guidelines for using JPA from within an Add-on?
We are facing issues using JPA (2.0)
Thanks
PramodFrom http://www.sxipper.com/faq#uninstall
To uninstall Sxipper go to your Firefox menu and choose Tools | Add-ons. Select '''Sxipper '''from the list of extensions and click the "Uninstall" button. After restarting your browser Sxipper will be removed.
Sxipper still uses the Firefox Password Manager, so your passwords are all there. Uninstalling Sxipper will restore the default password manager functionality. See http://www.sxipper.com/faq#wherepassword -
Hello,
I am using Azure Python SDK to perform calls to ServiceManagement APIs.
I have a .publishsettings file generated for my account which includes an encoded version of my X509 certificate and all of my subscription IDs.
How can I retrieve/compute an X509 certificate's thumbprint in Python?
Following is the code snippet that helps us do it in .Net.
Is there a similar approach to do it in Python?
var publishSettingsFile = @"C:\temp\CORP DPE Account-11-16-2011-credentials.publishsettings";
XDocument xdoc = XDocument.Load(publishSettingsFile);
var managementCertbase64string = xdoc.Descendants("PublishProfile").Single().Attribute("ManagementCertificate").Value;
var importedCert = new X509Certificate2(Convert.FromBase64String(managementCertbase64string));
thumbprint = importedCert.Thumbprint;
Once I have the thumbprint, how can I use that thumbprint to access Service Management APIs from Python SDK?
Thank you in Advance!
Regards,
Vaibhav KaleHi,
Please have check on the below article and check if it helps.
http://azure.microsoft.com/en-in/documentation/articles/cloud-services-python-how-to-use-service-management/
Regards,
Mekh. -
I use ical and my husband uses outlook. How can I add an appt or event to his outlook calendar from my iphone, ipad or mac?
I use ical and my husband uses outlook. How can I add an appt or event to his outlook calendar from my iphone, ipad or mac?
-
I encountered a bug while using the deploytool to deploy
an EAR file to the Sun J2EE 1.3_01 server.
I submitted a bug report to Sun via the Sun Java Developer Connection.
(Sorry, it has not been assigned a BugID yet)
Question:
Does anybody know if the web container in Sun's
J2EE 1.3_01 server supports access to local enterprise beans?
Screenshots of the bug are available at
http://sync4j.sourceforge.net/deploymentbug/
Full details below....
-Sean
category: j2ee
subcategory: deployment
release: 1.3_01
hardware: x86
OSversion: windows_2000
synopsis: java.lang.ClassCastException thrown during deployment of Session bean
java -version
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
C:\j2sdkee1.3\bin>j2ee -version
Java 2 Enterprise Edition version 1.3_01, build 1.3_01-b01
I built a EJB 2.0 compliant stateful session bean.
The session bean has a remote interface (ISyncRemote),
a remote home interface (ISyncHomeRemote),
a local interface (ISyncLocal),
and a local home interface (ISyncHomeLocal).
I built an HTTP Servlet that is supposed to access
the Stateful Session Bean using ISyncHomeLocal and
ISyncLocal
I run "deploytool.bat" in GUI mode to perform the deployment.
During deployment, the deploytool GUI displays a message
box which states:
"There was a deployment error.
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
java.rmi.RemoteException: An error was encountered while loading
a web component.
Please refer to
<J2EE_HOME>/logs/<machine-name>/j2ee//j2ee/error.log
for more information. Please verify your Application with the
Verifier tool."
The "error.log" file did not contain any useful information.
I ran the J2EE "verifier.bat" tool to verify that my EAR archive is OK.
The Sun J2EE server output this error string:
"java.lang.ClassCastException:
com.sun.enterprise.deployment.EjbExternalDescriptor"
Here is the full output from the Sun J2EE server:
C:\j2sdkee1.3\bin>j2ee -verbose
J2EE server listen port: 1050
Naming service started:1050
Binding DataSource, name = jdbc/EstoreDB, url =
jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/Cloudscape, url =
jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/DB1, url =
jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/DB2, url =
jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/InventoryDB, url =
jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
Binding DataSource, name = jdbc/XACloudscape__xa, dataSource =
COM.cloudscape.core.RemoteXaDataSourc
e@245536
Starting JMS service...
Initialization complete - waiting for client requests
Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties
>
Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties
>
Starting web service at port: 8000
Starting secure web service at port: 7000
J2EE SDK/1.3
Starting web service at port: 9191
J2EE SDK/1.3
J2EE server startup complete.
Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
application\sync4j\server\s
yncbean\SyncBean_LocalHomeImpl.java ....
Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
application\sync4j\server\s
yncbean\SyncBean_EJBLocalObjectImpl.java ....
Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
application\sync4j\server\s
yncbean\SyncBean_RemoteHomeImpl.java ....
Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
application\sync4j\server\s
yncbean\SyncBean_EJBObjectImpl.java ....
rmic sync4j.server.syncbean.SyncBean_RemoteHomeImpl...
rmic sync4j.server.syncbean.SyncBean_EJBObjectImpl...
c:\j2sdkee1.3\repository\rbi\applications\Sync4j Server enterprise
application1004172068449Server.ja
r
Binding name:`java:comp/env/ejb/ISyncHomeRemote`
Binding name:`java:comp/env/ejb/ISyncHomeLocal`
java.lang.ClassCastException:
com.sun.enterprise.deployment.EjbExternalDescriptor
at com.sun.enterprise.deployment.EjbReferenceDescriptor.getValue
(EjbReferenceDescriptor.java
:202)
at com.sun.enterprise.naming.NamingManagerImpl.bindObjects
(NamingManagerImpl.java:394)
at com.sun.web.server.WebService.addContext(WebService.java:148)
at com.sun.web.server.ServletDeployerImpl.loadWebComponents
(ServletDeployerImpl.java:214)
at
com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployWebComponent
s
(JarInsta
llerImpl.java:791)
at
com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication
(JarInstall
erImpl.java:219)
at
org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie.
invoke(Un
known Source)
at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch
(ServerDelegate.java:355)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:273)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process
(RequestProcessor.java:84)
at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run
(ThreadPool.java:99)
Does the Sun J2EE server implementation support the invocation
of Session EJB's via a Local interface?
Does the Sun J2EE server implementation allow a Servlet to invoke
Session EJB's via the bean's Local interface?
While researching this issue, I read the J2EE 1.3 final specification.
The spec says:
"The EJB container is required to access to local enterprise beans.
We recommend that the web container also support access to local
enterprise beans."
Does the web container in Sun's J2EE server support access to local enterprise beans?I'm pretty much sure that you cannot access a
local Session bean from outside the EJB container.Please read the J2EE 1.3 specification before posting messages about EJB and J2EE.
According to the J2EE 1.3 specification:
"The EJB container is required to support access to local enterprise beans. We recommend that the web container also support access to local enterprise beans.
No support is provided for access to local enterprise beans from the application client container or the applet container."
If you use local interfaces for your session bean,
than your client must be local too. A local client is
a client that is collocated in the same JVM with the
session/entity that provides the local view and which
can be tightly coupled to the bean.My client is running in the same JVM as my EJB. The client is a servlet. The servlet is running in the same JVM as the EJB.
For what its worth, the error that I observed occurs during deployment. I haven't figured out why deployment is failing. -
Hello All,
I would like to run the J2EE SDK 1.4 on an AMD Opteron Server (Sun Fire - AMD) running Debian Linux. The kernel (2.6.12), the and the distribution (Debian unstable/testing) are both 64 bit versions. The J2EE SDK 1.4 is not available for this platform, so taking the base linux distribution and extracting it manually, and using the separate JDK 1.5 available specially for the AMD 64 bit installation gives this error:
Unable to read system environment. No system environment will be used.And then the Application Server fails to startup properly. This problem has been documented in the past, see (You will note that I posted a solution for running the J2EE SDK under Debian Linux):
http://forum.java.sun.com/thread.jspa?forumID=136&threadID=583452
https://j2ee-sdk.dev.java.net/howtos/J2EE_SDK_Installation_HOWTO.html
This time, though, installing the 'C++ compatibility library' is not an option. Even on the 64 bit distributions of redhat, this is still a 32 bit intel x86 library, and it is unusable on the AMD 64 architecture. There is not a separate version of this library available from redhat specifically for the 64 bit version of the AMD processor.
Suggestions and guidance are greatly appreciated.
Thanks,
Adam
Adam Just
http://www.acjust.comThe problem is with debian. installing j2ee in debian gives this kinda problem while j2se installs fine.
The error in ur case is due to the fact that its unable to find the hostname.
add <hostname> 127.0.0.1 in ur /etc/hosts file.
It should work after that. -
Error when running "J2ee SDK" - j2ee server
Hi,
When running: C:\j2sdkee1.3.1\bin>j2eeadmin I get the follwoing error:
Binding: < JMS Cnx Factory : TopicConnectionFactory ,
Binding: < JMS Cnx Factory : QueueConnectionFactory ,
Starting web service at port: 8000
Starting secure web service at port: 7000
J2EE SDK/1.3.1
LifecycleException: null.open: java.net.BindExcepti
JVM_Bind
at org.apache.catalina.connector.http.HttpCon
ctor.java:1116)
at org.apache.catalina.startup.Embedded.start
at com.sun.web.server.WebService.start(WebSer
at com.sun.web.server.WebServer.start(WebServ
at com.sun.enterprise.server.J2EEServer.start
796)
at com.sun.enterprise.server.J2EEServer.run(J
at com.sun.enterprise.server.J2EEServer.main(
java.lang.RuntimeException: null.open
at com.sun.enterprise.server.J2EEServer.run(J
at com.sun.enterprise.server.J2EEServer.main(
J2EE server reported the following error: null.open
Error executing J2EE server ...
Please advise.
Thanks,
Gabi405 errors in the HTTP cycle
Any client goes through the following cycle:
* Obtain an IP address from the IP name of your site (your site URL without the leading 'http://'). This lookup (conversion of IP name to IP address) is provided by domain name servers (DNSs).
* Open an IP socket connection to that IP address.
* Write an HTTP data stream through that socket.
* Receive an HTTP data stream back from your Web server in response. This data stream contains status codes whose values are determined by the HTTP protocol. Parse this data stream for status codes and other useful information.
This error occurs in the final step above when the client receives an HTTP status code that it recognises as '405'.
Resolving 405 errors - general
405 errors often arise with the POST method. You may be trying to introduce some kind of input form on your Web site, but not all ISPs allow the POST method necessary to process the form.
All 405 errors can be traced to configuration of the Web server and security governing access to the content of the Web site. -
Problem in installation of J2EE SDK 1.3
I have installed J2EE SDK 1.3 on my machine. I have set
J2EE_HOME=C:\j2sdkee1.3.1
JAVA_HOME=C:\Program Files\j2sdk1.4.2_08
and
PATH=C:\j2sdkee1.3.1\bin
environmental variables. All the three path seem to OK. But when I'm trying to start application server using j2ee -verbose command on my dos prompt I'm getting following error
'C:\Program' is not recognized as an internal or external command, operable program or batch file.
I tried j2ee -verbose command from C: prompt as well as from C:\j2sdkee1.3.1\bin prompt in which j2ee batch file is present.
Please help/guide on above issueJAVA_HOME is having space character in it. Install J2SE at location where there are no spaces in the path and then try......
-
error-page not working in J2EE SDK 5 Update 1
I recently migrated from Tomcat 5 to J2EE SDK 5 Update 1, and since, have not been able to get my custom error page working. I have verified the path to the error page by testing the link directly in a browser, but still see the default gray and white error page anytime an error occurs. This exact xml worked perfectly in tomcat 5 - am I missing something?
I have the following in my web.xml:
<!-- Http error -->
<error-page>
<error-code>500</error-code>
<location>/error.faces</location>
</error-page>
<!-- java exception -->
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error.faces</location>
</error-page>
<!-- page not found -->
<error-page>
<error-code>404</error-code>
<location>/error.faces</location>
</error-page>Hi, Here is a link from Mozilla that addresses this : http://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin
Page down to "Flash does not work properly and /or will not update."
When you have two SWF installed the websites use the old one, not the new one. Don't ask me why, I often wonder that myself. That's why when you disabled the old one, Flash didn't work.
Hope this solves the issue.
Thanks,
eidnolb
Maybe you are looking for
-
I rarely use iTunes, prefer, for obvious reasons to own physical media (which is prompting this question). But I do have an iPad 4 so I have to use it. I bought a movie on iTunes and have downloaded it to a new brand new Windows 8 laptop. I am gettin
-
when i drag the pdf file over other (in previewer) to merge it does not show green circle with plus one. what to do?
-
Can't Drag and Drop in Home Sharing
I just enabled home sharing between my desktop mac and my macbook pro. Can see all music (from the desktop) and playlists, but cannot drag and drop individual songs or playlists between the two. Any advice on this? Also, if I import music library wil
-
Create a portal/front end for ADF Panels.
Hi All, I have developed an ADF app which consists of several ADF Panels, each ADF Panel allows the user to run a few simple queries against an Oracle database done using ADF view objects and ADF view links and one single ADF application module. I th
-
Error occured while installing oracle 10.2.0.3
hi, Iam trying to install oracle 10g version with release 10.2.0.3 in AIX server.while installing it throws java exception stating as given below..... Preparing to launch Oracle Universal Installer from /tmp/OraInstall2007-07-18_10-32-41AM. Please wa