How to use mysql in J2EE server?
Hi all,
I have been learning J2EE and playing around with Pointbase as my database and the IDE that I'm using is Forte For JAVA 4 EE.
Now, I wanna use mysql in J2EE, EJB. But I do not know how to use mysql in j2ee server. I have try to altered the resources.property file by adding a few lines to called the MYSQL datasource and driver. But, it give me errors when i am doing the deployment process. Can any1 of u help me?
Thanks in advance..
Hi,
I guess there must be some problem with your App Server Configuration settings:
Kindly Check if you are using the following ones:
Driver Name: com.mysql.jdbc.Driver
Url: jdbc:mysql://[hostname][,failoverhost...][:port]/[dbname][?param1=value1][¶m2=value2].....
Thanks & regards,
Paritosh
Software Engineer
L&T Infotech Ltd
Similar Messages
-
How to connect Mysql to J2EE server exactly?
Hi,there
I would like thank you for offering me your precious opinion in advance.
I got a problem with installing Mysql database into J2EE server. All I have done is:
1.Install Mysql and put the Mysql driver,mm.mysql-2.0.4-bin.jar into the directory of J2EE which is j2ee1.3.1/lib.
2. Set the environment variable for invoking the Mysql driver like
this,CLASSPATH=.;%JAVA_HOME%\lib\mysql-connector-java-2.0.14-bin;%
J2EE_HOME%\lib\mysql-connector-java-2.0.14-bin;%JAVA_HOME%\bin;
3.Modify the content of Server.xml file located in J2EE directory like this:
<DefaultContext>
<Resource name="jdbc/mysql" auth="Container"
type="javax.sql.DataSource" />
<ResourceParams name="jdbc/mysql">
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>
<parameter>
<name>drivername</name>
<value>jdbc:mysql:localhost:3306:mobiledb</value>
</parameter>
</ResourceParams>
</DefaultContext>
So far,I have no success in connect Mysql to J2EE server. What am I doing wrong?
Thank you for your kind help.hi, sameer
Thank you for reply. Could you tell me exactly the documents that you see? Do you mean "J2EE tutorial documents"?
Thanks for advice.
Revon -
No suitable driver when using MySQL in J2EE server
Hi everyone
I use MySQL's mm driver version 2.0.11 in conjuction with j2ee server. I added it thru deploytool->Tools->Server configuration->Data source->Standard following the instuctions in the help document, either un-jared or not, setting the classpath or/and j2ee_classpath in userconfig.bat and still got the exception when connecting from client.
Can anyone tell me why.
Thanks
James Chiang from TaiwanYou may like this:
http://forum.java.sun.com/thread.jsp?forum=136&thread=237527&message=929097#929097 -
How to add a new j2ee server to PI system?
how to add a new j2ee server for our PI product system?
Is it to execute 'install dialog instance ' steps?
ThanksHello
I have moved this thread to the Netweaver Administrator forum (this is not a PI technical issue). You have a better chance of getting a quality answer to your query in the Netweaver Administrator forum.
Take the notes below into consideration after you have added the java node.
1) #734931 Using a J2EE cluster in the XI 3.0/7.0 environment
2) #1079478 Using a J2EE Cluster in the PI 7.10 environment
Can anyone assist with how to add a java node?
Regards
Mark Smyth
XI/PI Moderator -
How to use the same OC4j server with different port number
How to use the same OC4j server with different port numbers..?
I have to OC4J installed on my machine on different hard disk drives....
I want to be able to run both the server simultaneously..?
is it possible ..it yes then how..?
for that i have changed the port number of one server...
but when i am trying to start the other server with different port number..it says that JVM -Bind already...
Is there any clues...?
Nilesh GIn the config directory:
default-web-site.xml: Change the port the HTTP listener listens on
jms.xml: Change the port the JMS service listens on
rmi.xml: Change the port the ORMI listener listens on.
Or, you can add another web-site.xml file, and deploy your applications to 1 server, and bind the web applications to the different web sites. This way you only have to deploy your applications to 1 place.
Rob
Oracle -
How to use Win 2012 r2 Server Hyper-V?
How to use Win 2012 r2 Server Hyper-V? Can we install Virtual OS in new machines(which doen't have any OS)? OR it required any OS in client machine to access Virtual OS of Hyper-V?
Regards
Meer Akbar AliHi Meer,
In addition , here is a video link about installing OS in VM (it is 2008 but it is similar to 2012R2 ):
http://technet.microsoft.com/en-us/video/hh859745.aspx
Best Regards
Elton Ji
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
What is best method for learning how to use mySQL with Coldfusion?
I have been using access databases for years with Coldfusion. I have a client that wants me to build an online classroom. I figure it's time to finally start using mySQL, but there is so much info out there, I don't know which way to turn.
Where do you experts recommend I get started?
Also, I am using coldfusion entrprise on my system at home. My machine is a 64-bit, 3.30Ghz AMD FX - 6100 six-core processor with 8gig of ram. Can I install mySQL on the machine and run CF8 without any problems?How much RAM left on your system? If the computer is strictly for development, then you have more than enough to run ColdFusion, MySQL, browsers, and other development tools.
For MySQL download the MySQL Community Server and MySQL Workbench. There is also all-in-one package for Windows, http://dev.mysql.com/downloads/windows/installer/ that you don't need to download the server and workbench separately. The installation should be straight forward.
By the way, other CF users may suggest you to use MariaDB (https://mariadb.org/), which is a branch of MySQL. -
How to use MySQL to create a database
I downloaded MySQL and opened the folder and saw a plethora of files. I'm lost and don't know where to start. I want to create a database. Any suggestions? I have dreamweaver cs5. My computer is a mac book pro OS10.6.8.
To amplify osgood_'s excllent suggestions - MySQL is a database application that runs, typically, in a server environment. Full stop.
This is not a simple "install the app and everything's good" type of program. Please do more research before attempting to install it. Also understand the security implications of running a database on a server (or even locally) and learn how to lock it down. Finally, to install and run MySQL locally, you better get really good with Terminal.app and learn how to launch MySQL and configure it from the command line.
I personally use MAMP (Mac Apache MySQL and PHP - see http://www.mamp.info/) to do MySQL/PHP development and testing as it doesn't mess with the internals of my machine, keeps everything in a MAMP folder in my Applications folder, and it has a control panel for easy start/stop of Apache/MySQL services.
Not trying to squash your dreams of running MySQL locally but you do need more "domain" knowledge before doing so.
Hope this helps. -
Question:How to use MySQL database as a service in Oracle Cloud
Hello All,
I want to use MySQL as backend for my application.How can i select MySQL database.Its showing me only to choose Oracle database.
Thanks in advance.The Oracle Database Cloud Service uses the Oracle Database. You do not have access to the underlying operating system to make the choice you are seeking.
When the Oracle Compute Service comes out later this year, you could use one of those "infrastructure only" environments and load MySQL into it. You would be responsible for all maintenance of MySQL and the environment.
Hope this helps.
- Rick Greenwald -
How to install and configure J2EE server in ECC 6.0
hi,
I created a web service in ECC and I want to test it via SOAMANAGER but when I clik on open web service for selected naviagator binfing it gives me an error
wsnavigator call WAS TERMINATED Because The Corresponding Service is not available.
I searched the forum, apparently it is because the J2EE server is not configured
thank you for your helpTry this-----
Setting Up a Connection to a J2EE Server for the Web Services Navigator
To be able to use the Web Service Navigator to test a Web service, you need to set up a connection to a J2EE server, because the Web Service Navigator runs on the Java stack.
Procedure
Go to the Technical Administration tab.
Choose Global System Settings.
Choose the Web Services Navigator tab.
Choose Edit / Display.
Specify a host name and a port number.
If you are working with a J2EE engine with SAP NetWeaver 2004 or 7.0, select J2EE engine is 6.40 / 7.0.
If this option is not selected, the system assumes that you are working with a J2EE engine with version 7.10 or later.
Save.
Setting Up the Connection to the Services Registry
To create a connection between the provider system and the Services Registry, perform the following steps for each consumer.
From the SOA Manager main screen, go to the Technical Administration tab.
Choose Global System Settings.
Go to the Services Registry tab.
Choose New to create a new connection.
Note
To change the settings of an existing connection, choose Edit. To delete an existing connection, Choose Delete.
End of the note.
Specify a Services Registry.
The Services Registry name has to be written as a single word, for example, ERP_REGISTRY.
To make this the primary Services Registry, select Primary.
Each time a provider is configured, its endpoints are automatically published to the primary Services Registry.
Choose Next.
Choose a proxy class to use for communication with the Services Registry.
You can choose either of the following:
CO_SERVICES_REGISTRY_FLAT_SI
The recommended consumer proxy to configure the connection to the Services Registry. CO_SERVICES_REGISTRY_FLAT_SI is the interface between the ABAP back-end system and the Services Registry system, and contains the appropriate authentication information.
CO_ESREGISTRY_WSSI
This consumer proxy was used in previous versions.
The service path is determined automatically based on the proxy class name.
Specify a logical port.
Use uppercase characters for the logical port name. -
How to use itunes for windows server 2003
how to install itunes for windows server 2003
Purchased music from the iTUnes store is in a "AAC protected" format. It can only be used in iTUnes. Any music you buy online these days will have some protection on it where you can only use it in there program.
The way around this is to burn the purchased songs to a CD in iTUnes. Then goto edit>preferences>advanced tab>Import sub tab and set your import settings to something like MP3.
Now put the burned CD back in the PC and "Re"import it into iTunes so its imported in a MP3 format so you can use it in any program. Before importing it tho you need to manually add the name of the song, artist album ect ect -
I'm Ecuadorian student and developer. Excuse me by my bad English.
I don`t know how to use https in my web application, I'm developing a e-commerce and I need to use https.
please I need help.
thanks.Quote:
it's automatically done. just send your request via
"https://" instead of "http://". if you switch on the
console you will see that Java internally uses the
SSL classes.
How to send the request via "https://" when we use JSC. Are there any direct ways to do this using JSC?
Thank you very much. -
How to execute servlets in j2ee server
please help me out in running servlets in j2ee server.
i dont know where to put my servlets class files.please help me out in running servlets in j2ee
server.
i dont know where to put my servlets class files.In your j2ee server, look for your virtual host directory (webapps, deploys...information may be found in a \conf\ directory )
Your application have to respect the hierarchy :
/WEB-INF/web.xml --> The Web Application Deployment Descriptor
/WEB-INF/classes/ --> put any java class (servlet or non-servlet)
/WEB-INF/lib/ --> put jar file (external ressource)
*.jsp;*.html ...
/subdir/*.jsp;*.html...
put this hierarchy in your web apps directory
note : You can packed the hierarchy in a WAR file(Web ARchive)
a web.xml example :
<web-app>
<servlet>
<servlet-name>
myservlet
</servlet-name>
<servlet-class>
MyFirstServlet <!-- (your servlet's class)-->
</servlet-class>
<servlet-mapping>
<servlet-name>
myservlet
</servlet-name>
<url-pattern>
/myservleturl <!--(URL to call servlet) -->
</url-pattern>
</servlet-mapping>
</web-app> -
How to use XML on another server?
I need help figuring out how to consume XML from another
domain. It's a domain that is providing search functionality for a
website. The domain indexes my site, and I can "post" searches to
an URL with my search terms URL-escaped. It returns an XML
document. I want to use Spry to consume that XML.
I'm pretty experienced consuming XML and using it in Spry
pages, but to date have not done anything that crosses domains. I
will have access to Perl on the production box that hosts my site,
with a remote chance that I could get PHP enabled. This is a public
web server for a very very large financial company, so my choices
of what can go on a production server outside our firewall are
limited by corporate policy.
What are the basic steps that need to happen? Can someone
bullet-point how this might work from one end to the other? I have
the basic theory down of what needs to happen, but not much else at
this point.
Here is what I understand:
1 - user fills in search form and hits enter
2 - form posts to a Perl script on my box
3 - Perl takes the form variables and appends them to a URL
request to the 3rd party search domain
4 - 3rd party search company returns an xml file
5 - not sure what Perl needs to do here with the xml so that
my HTML page with Spry can read it....it does something, let's just
say
6 - Perl writes out a page, based on a template in my site
that then consumes the XML that is somehow available on my domain
now...
This raises so many questions...like if I save the results
XML on my server, how do I get rid of them after they are consumed
and also how do I prevent other sessions from accessing that "saved
copy" of XML...I know I'm thinking wrong here. That can't be how
it's done...Hence...my question about all this.
Where do I start?
Thanks,
Douguser12004297 wrote:
thank you so much - however on the source database I dropped tables and users- then I did an "alter system switch logfile;" - copied the archivelogs to the / test DRP and loaded the archivelogs and the users and tables were not dropped like i did in source
RMAN> tartup mount
Oracle instance started
database mounted
Total System Global Area 1119043584 bytes
Fixed Size 2227624 bytes
Variable Size 620757592 bytes
Database Buffers 469762048 bytes
Redo Buffers 26296320 bytes
RMAN> CATALOG START WITH '/oradb1/backup';
using target database control file instead of recovery catalog
searching for all files that match the pattern /oradb1/backup
List of Files Unknown to the Database
=====================================
File Name: /oradb1/backup/1_345_819727387.dbf
Do you really want to catalog the above files (enter YES or NO)? YES
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /oradb1/backup/1_345_819727387.dbf
RMAN> recover database;
Starting recover at 20-NOV-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=249 device type=DISK
starting media recovery
media recovery complete, elapsed time: 00:00:02
Finished recover at 20-NOV-13
RMAN> alter database open;
database opened
RMAN
Simply making the database aware of the archivlogs does NOT mean rman will determine they need to be used for a specific recovery operation. What all had you done to/with this database prior to this? Keep firmly in mind the effect of any OPEN RESETLOGS. -
How to use the integrated ITS server in WAS6.40 for WEBGUI
Hi,
I am testing the Portal 6.0SP6 on WAS6.40SP7.
Using User Mapping, I am able to connect and call some transaction to R/3 System (4.6c) and the ITS servers for the R/3 system. If I am going to use webgui to call a transaction, do I need the ITS server at all? The reason I asked because I thought WAS6.40 came with an embedded ITS server.
If I can make use of the integrated ITS server, how do I configure the system connection?
Thanks,
Edmond wongI have read the past posts, but I am still not clear... We are implementing mySAP ERP 2004. This will include ECC 5.0 and EP 6.2.
We currently have R/3 4.6C and EP5.5. From EP 5.5 I have users executing R/3 transactions directly from EP using the standard Master iView. This traffic goes via the ITS virtual instance for the R/3 system.
I am trying to decide if I need to setup a separate ITS to continue to do what we do now OR if the direct call of a transaction from EP6.2 using the SAP supplied Master iView can be accomplished using the Internal ITS on ECC 5.0. We do not have the DEV systems set up so I cannot test.
Any comments?
Thanks,
Rich
Maybe you are looking for
-
How to deal with different versions of Idocs in XI
Hi, I am doing a scenario IDoc to IDoc but on both sides SAP versions are different say 5.0 and 4.6 I have done all the configuaration and it is working fine. But in sxmb_moni getting "Outbinding"(this is not error) and in attributes in trace it is s
-
Hi Experts We are working on one requirement in which on a standard D2K EBS form based on the response of a warning message we need to perform certain actions using Form Personalization. The problem is that we are not able to capture response of OK a
-
Access ejb in another websphere
I have installed webpshere in 2 machines. How can I access ejb in the second websphere from servlet in the first websphere? Thanks in advance
-
FB03 problem, looks simple but tricky
Hi all, Go to FB03, click document list, give company code, fiscal year, execute. It shows a list of docs. Go to change layout and select reference from column set and add to displayed columns. Go to display tab and select print out with date, t
-
Where from can i download "servlet.jar"
Hi Friends, I've JDk1.5 and Tomcat installed on my system,I am going through some servlet tutorials and i need to run them.So,i guess i need to have servlet.jar file in my classpath.Can someone tell me where from can i install that?I have this link w