• Welcome to KonaKart Community Forum. Please login or sign up.
 

Issues deploying Konakart to JBoss 7.1

Started by rsp, February 24, 2014, 10:51:27 pm

Previous topic - Next topic

rsp

Hello,

I am facing issue deploying KonaKart V7.1.1.1 (10247) built 5:53AM 12-Sep-2013 BST to
JBOSS AS 7.1.1 server.

1. Successfully installed Konakart
2. Could test konakartadmin (http://localhost:8780/konakartadmin/)with the Tomcat bundled with Konakart. While as couldn't test konakart (http://localhost:8780/konakart)
3. I need to test Konakart on Jboss as 7.1.1.
4. Generated ear using make-ear command.
4. Tried deploying un-exploded ear, but it fails while deploying konakart.war.
5. Tried deploying independent wars konakart.war (failed), konakartadmin.war and birtviewer.war.
6. Though konakartadmin.war got deployed successfully, upon accessing http://localhost:8780/konakartadmin/, it errors out complaining about the location of AdminMessages.properties file.

Any guidance is appreciated. Thanks in advance!!

ming

You don't make it easy for anyone to help you since you don't explain exactly what you did or exactly what went wrong.. eg. what exceptions you saw in your logs etc.

Taking point 2, you said that you couldn't access http://localhost:8780/konakart ?   What did you see in your tomcat log?  What was the error in your browser?

Does your tomcat have access to the Internet?  It needs it.


When making EARs you need to ensure you add the appropriate options to your ANT build commands.  For example, for JBoss, you should use:

In your /custom directory:

./bin/kkant make_ear -Djboss=true


rsp

Sorry, should have given details earlier.

Could you please help how to have tomcat have access to the Internet?
Also, would like to start clean slate. Have tried so many things in bits and pieces. Have lost track of almost what all been tried.
All I would to try is:

1. Have Konakart up and running on Tomcat bundled with Konakart.
2. Import Konkart source eclipse workspace and try customizing and deploy the same on JBOSS AS 7.1.1.


Whatever could recall, below are the steps taken so far. I would recreate all issues one bu one and capture logs in the mean time. Thanks for your guidance.

1. Installed Konakart on Windows 7 through Graphical Installation Wizard per the instructions http://www.konakart.com/docs/Installation.html.
2. Tried starting konakart using option in start menu under Konakart" as well as per the steps listed  here http://www.konakart.com/docs/StartupShutdown.html. Neither of them helped.
3. Wanted to import konakart in eclipse workspace. So tried steps in
http://www.konakart.com/forum/index.php/topic,501.0.html
http://lightwaydev.blogspot.com/2008/12/add-konakart-to-eclipse.html
http://firas-obeid.blogspot.com/search/label/KonaKart%205.x
Basically have Sysdeo Eclipse Tomcat Launcher plugin with that could strart Tomcat and atleast could test konakartadmin.
4. Ran c:\ProgramFiles\KonaKart\custom>bin\kkant make_eclipse_project and imported kkeclipse project in eclipse workspace.
5. Ran c:\ProgramFiles\KonaKart\custom>bin\kkant make_ear and also with -Djboss=true option. I have JBOSS AS version 7.1.1.

ming

QuoteCould you please help how to have tomcat have access to the Internet?


That's something you have to resolve in your own network infrastructure.  I can't help you with that.


It's best not to ask so many questions in one post.  It becomes unmanageable very quickly.  I suggest you focus on one step at a time and get that right before moving on.


Your points 4 and 5 sound correct.

The problem is you don't say what went wrong so no-one can help you.


rsp

-Tomcat is started through Sysdeo Eclipse Tomcat Launcher plugin, I can access konakart admin while as
Seeing 404 error upon trying to Konakart app (http://localhost:8780/konakart)

-Instead of using Sysdeo Eclipse Tomcat Launcher, if start Konakart from either start menu or from cmd line and try accessing konakartadmin then I get "Internet Explorer cannot display the webpage".

There is something about the eclipse workspace (kkeclipse) and the Sysdeo that is playing role to make konakartadmin available.

ming

I don't actually know why you want to run the Admin App in Eclipse.
Normally people are more interested in customising the storefront in Eclipse.

You need to check your tomcat start-up.

Have you looked in the logs for problems?

rsp

I also have separate Tomcat 7.0 running on my machine. Copied .war files from KONAKART_HOME/custom/war to Tomcat's webapps directory.


INFO: Deploying web application archive C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\konakart.war
Feb 25, 2014 2:42:16 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Feb 25, 2014 2:42:16 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context  startup failed due to previous errors
Feb 25, 2014 2:42:16 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deploying web application archive C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\konakartadmin.war
Feb 25, 2014 2:42:22 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\docs
Feb 25, 2014 2:42:22 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager
Feb 25, 2014 2:42:22 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT
Feb 25, 2014 2:42:22 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Feb 25, 2014 2:42:22 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Feb 25, 2014 2:42:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 33909 ms


Seeing followingerror upon trying to deploy to JBOSS AS 7.1
14:16:28,818 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC0000
1: Failed to start service jboss.web.deployment.default-host./konakart: org.jbos
s.msc.service.StartException in service jboss.web.deployment.default-host./konak
art: JBAS018040: Failed to start context
        at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentS
ervice.java:95)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(Se
rviceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont
rollerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145) [rt.jar:1.7.0_51]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615) [rt.jar:1.7.0_51]
        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

Thanks & Regards.



rsp

Does it make difference which option below us used to generate ear/wars:
Option1:
c:\Program Files (x86)\KonaKart\custom>.\bin\kkant make_ear

Option2:
c:\Program Files (x86)\KonaKart\custom>.\bin\ant make_ear

ming

As I said, have you looked in the logs for problems?

What's in your localhost log?

It's usually a file like this:

logs/localhost.2014-02-26.log




If you use kkant we know we will be using a compatible KonaKart ANT, if you just use ant it will use whatever version of ANT you have set up in your environment which may not be compatible.


rsp

Issue was resolved by changing tiles-config_2_1.dtd to tiles-config_2_0.dtd
in <KONAKART_HOME>\webapps\konakart\WEB-INF\tiles.xml.

Thanks & Regards.