Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
25 replies
Subscribers
5 subscribers
Views
12590 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi, I am trying to lookup a JNDI resource from a smart service deployed in Appia
ravinderl
over 9 years ago
Hi, I am trying to lookup a JNDI resource from a smart service deployed in Appian 7.7 environment. I am getting the below error when it try to look for a resource configured on weblogic server from Appian.
Could you please let me know if I am doing anything wrong here?
Code Snippet:
--------------------
public static Connection getDSConnection() {
Connection con = null;
try {
Context ctxt = new InitialContext();
DataSource dataSource = (DataSource)ctxt.lookup("jdbc/AppianBusinessDS");
con = dataSource.getConnection();
} catch (NamingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return con;
}
Stack Trace:
-----------------
javax.naming.NoPermissionException: User <anonymous> does not have permission on jdbc to perform lookup operation.
at weblogic.jndi.internal.ServerNamingNode.checkPermission(ServerNa...
OriginalPostID-151063
OriginalPostID-151063
Discussion posts and replies are publicly visible
Parents
0
ravinderl
over 9 years ago
...mingNode.java:453)
at weblogic.jndi.internal.ServerNamingNode.checkLookup(ServerNamingNode.java:434)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:185)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:210)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:253)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:426)
at javax.naming.InitialContext.lookup(InitialContext.java:411)
at com.freddiemac.ds.util.DataSourceUtil.getDSConnection(DataSourceUtil.java:20)
at com.freddiemac.ds.jndi.poc.PFDCDSService.loadDataCorrectionAttributeCategory(PFDCDSService.java:79)
at com.freddiemac.ds.jndi.poc.PFDCDSService.run(PFDCDSService.java:45)
at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.call(DefaultActivityExecutor.java:101)
at com.appiancorp.process.runtime.framework.DefaultActiv...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
ravinderl
over 9 years ago
...mingNode.java:453)
at weblogic.jndi.internal.ServerNamingNode.checkLookup(ServerNamingNode.java:434)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:185)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:210)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:253)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:426)
at javax.naming.InitialContext.lookup(InitialContext.java:411)
at com.freddiemac.ds.util.DataSourceUtil.getDSConnection(DataSourceUtil.java:20)
at com.freddiemac.ds.jndi.poc.PFDCDSService.loadDataCorrectionAttributeCategory(PFDCDSService.java:79)
at com.freddiemac.ds.jndi.poc.PFDCDSService.run(PFDCDSService.java:45)
at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.call(DefaultActivityExecutor.java:101)
at com.appiancorp.process.runtime.framework.DefaultActiv...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data