Error when runing build jira source 4.3.3 in tomcat

Im tring to run build war file( war of jira 4.3.3) and i get this error message

javax.naming.NameNotFoundException: Name [jdbc/JiraDS] is not bound in this Context. Unable to find [jdbc].

at org.apache.naming.NamingContext.lookup(NamingContext.java:820)

at org.apache.naming.NamingContext.lookup(NamingContext.java:154)

at org.apache.naming.NamingContext.lookup(NamingContext.java:831)

at org.apache.naming.NamingContext.lookup(NamingContext.java:154)

at org.apache.naming.NamingContext.lookup(NamingContext.java:831)

at org.apache.naming.NamingContext.lookup(NamingContext.java:168)

at org.apache.naming.SelectorContext.lookup(SelectorContext.java:158)

at javax.naming.InitialContext.lookup(InitialContext.java:392)

at org.ofbiz.core.entity.transaction.JNDIFactory.getJndiConnection(JNDIFactory.java:187)

at org.ofbiz.core.entity.transaction.JNDIFactory.getConnection(JNDIFactory.java:138)

at org.ofbiz.core.entity.TransactionFactory.getConnection(TransactionFactory.java:101)

at org.ofbiz.core.entity.ConnectionFactory.getConnection(ConnectionFactory.java:59)

at com.atlassian.jira.ofbiz.DefaultOfBizConnectionFactory.getConnection(DefaultOfBizConnectionFactory.java:28)

How to fix this. need quick reply. i try to find the configuration file but i cant find it in build.

Thanks.

2 answers

This widget could not be displayed.

When do you get this error?

While running the built war inside tomcat or while you are trying to build a ear/war ?

Check you have all the dependency lib's in place

http://confluence.atlassian.com/display/JIRA043/Building+JIRA+from+Source

I'm not sure since when but all the DB configurations are now placed in dbconfig.xml under your home directory but you need to configure tomcat for transaction related atributes

have a look at the installation instructions here http://confluence.atlassian.com/display/JIRA/Installing+JIRA+on+Tomcat+6.0

if it helps go through the list as a check list and try this again?

Im tring to run build war inside the tomcat. i created war file by building 4.3.3 jira source.

This widget could not be displayed.

Is that the context you have defined in your server.xml or context.xml ?

If you have built a war outside and have dropped it on the webapps folder, what is the name of the war file?

if the file name is "jira-webapp-dist-4.3.3.war" check and see if the file has exploded properly under tomcat/temp folder

is there any other error in the logs?

I can not see any server.xml file or context.xml file in created war file. I check tomcat/temp folder and i can not see any file (only safeToDelete.tmp empy file is there).

Error which i can see in log is

javax.naming.NameNotFoundException: Name [jdbc/JiraDS] is not bound in this Context. Unable to find [jdbc].

at org.apache.naming.NamingContext.lookup(NamingContext.java:820)

at org.apache.naming.NamingContext.lookup(NamingContext.java:154)

at org.apache.naming.NamingContext.lookup(NamingContext.java:831)

at org.apache.naming.NamingContext.lookup(NamingContext.java:154)

at org.apache.naming.NamingContext.lookup(NamingContext.java:831)

at org.apache.naming.NamingContext.lookup(NamingContext.java:168)

at org.apache.naming.SelectorContext.lookup(SelectorContext.java:158)

at javax.naming.InitialContext.lookup(InitialContext.java:392)

at org.ofbiz.core.entity.transaction.JNDIFactory.getJndiConnection(JNDIFactory.java:187)

at org.ofbiz.core.entity.transaction.JNDIFactory.getConnection(JNDIFactory.java:138)

at org.ofbiz.core.entity.TransactionFactory.getConnection(TransactionFactory.java:101)

at org.ofbiz.core.entity.ConnectionFactory.getConnection(ConnectionFactory.java:59)

at com.atlassian.jira.ofbiz.DefaultOfBizConnectionFactory.getConnection(DefaultOfBizConnectionFactory.java:28

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

70 views 1 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you