This week's giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Production-Ready Serverless (Operational Best Practices) and have Yan Cui on-line!
See this thread for details.
Win a copy of Production-Ready Serverless (Operational Best Practices) this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

How to deploy Tomcat app to wildfly 7  RSS feed

 
Greenhorn
Posts: 2
IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hello everyone i just started coding in java jee..i want to deploy my app which i develop and deploy on tomecate to wildfly 7..I have a war file who i export and my app   use mysql-connector-java-5.1.6-bin to connect to my database who i create on wamp database..i specify this app works very well on tomecate..Can it be possible?
 
Saloon Keeper
Posts: 5327
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That should indeed be relatively easy to accomplish. A search for "deploy war file wildfly" finds https://docs.jboss.org/author/display/WFLY8/Application+deployment, which looks promising.

As an aside, it's "Tomcat", not "tomecate".
 
keldsky Pipo
Greenhorn
Posts: 2
IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it's tomecat you 're wright..I can see my page but the connection to database doesn't work..IN tomecat i  declare: <Resource name="jdbc/MyDtB" auth="Container" type="javax.sql.DataSource"
              maxActive="100" maxIdle="30" maxWait="10000"
              username="root" password="" driverClassName="com.mysql.jdbc.Driver"
              url="jdbc:mysql://localhost:3306/MyDtB"/>    
in context file and i call it in the code ..but in wildfly when i deploy the driver  ,the war file and create datasource in the console   it gave me just "error" when the page try to connect  to database i d'on't know how to proceed  
 
Bartender
Posts: 1114
36
IBM DB2 Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The way you declare a datasource in Wildfly may differ from the way you declare it in Tomcat.
You should work by differences.
 
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!