[Datasource Configuration] - Migration of Weblogic to JBOSS - Could not enlist in transaction on entering meta-aware object!
by jinu kishorehex
jinu kishorehex [https://community.jboss.org/people/jinukishorehex] created the discussion
"Migration of Weblogic to JBOSS - Could not enlist in transaction on entering meta-aware object!"
To view the discussion, visit: https://community.jboss.org/message/818700#818700
--------------------------------------------------------------
Hi
We have migrated our application from Weblogic to JBOSS .
We are getting the error (Could not enlist in transaction on entering meta-aware object! ) on a batch run on multithreading
could any please help this out
Please share the steps to be done on configuration on migrating from weblogic to JBOSS
Below is the Data source .xml
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>DefaultDS</jndi-name>
<connection-url></connection-url>
<driver-class>oracle.jdbc.OracleDriver</driver-class>
<security-domain>EncryptedPhinPassword</security-domain>
<autoReconnect>true</autoReconnect>
<check-valid-connection-sql>select 1 from dual</check-valid-connection-sql>
<failOverReadOnly>false</failOverReadOnly>
<maxReconnects>50</maxReconnects>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<min-pool-size>5</min-pool-size>
<max-pool-size>25</max-pool-size>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
<query-timeout>900</query-timeout>
<idle-timeout-minutes>1</idle-timeout-minutes>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/818700#818700]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[JBoss Portal] - IBM Websphere Portal 8.0 to JBoss Portal 6.0
by Tugrul Ocak
Tugrul Ocak [https://community.jboss.org/people/tgrlocak] created the document:
"IBM Websphere Portal 8.0 to JBoss Portal 6.0"
To view the document, visit: https://community.jboss.org/docs/DOC-48813
--------------------------------------------------------------
I'm trying to remove my portlet project from Websphere Portal and start with Jboss. I downloaded jboss-jpp-6.0.0.zip from JBoss downloads and put it under 'c:/JBOSS'. I started the portal server from standalone.bat and it worked fine. When I deploy my project from ear and when I want to enable it it gives the error :
h3. Failed to enable BulletinWatchv12EAR.ear.
Unexpected HTTP response: 500 Request { "address" => [("deployment" => "BulletinWatchv12EAR.ear")], "operation" => "deploy" }
Response Internal Server Error { "outcome" => "failed",
"failure-description" => { "JBAS014671:
Failed services" => {"jboss.web.deployment.default-host.\"/.BulletinWatchv12\"" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host.\"/.BulletinWatchv12\": JBAS018040:
Failed to start context"}, "JBAS014771:
Services with missing/unavailable dependencies" => ["jboss.deployment.subunit.\"BulletinWatchv12EAR.ear\".\"BulletinWatchv12.war\".jboss.security.jacc Missing[JBAS014861: ]"]
}, "rolled-back" => true }
Where am i doing the mistake. I am using sql server 2008 and i also tried to add a datasource for it but it gives error too.
I looked through the documentations at redhat.com but i really couldn't find them so helpful. Any help is appriciated.
Tugrul
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-48813]
Create a new document in JBoss Portal at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 11 months
[JNDI and Naming] - Jboss 7 and the global JNDI
by A I
A I [https://community.jboss.org/people/nullable] created the discussion
"Jboss 7 and the global JNDI"
To view the discussion, visit: https://community.jboss.org/message/818595#818595
--------------------------------------------------------------
Hello,
I use JBoss 7.1 and did NOT understand the support of the global JNDI in "Remote application clients" of the global JNDI in JBOSS 7.1.
When I use the JNDI java:global/my-ear/my-ejb/BMPFacadeBean!my.domain.service.IBMPFacadeRemote
I get the error
testBMPProcessCommit(my.domain.itest.BMPIntegrationIT) Time elapsed: 0.34 sec <<< ERROR!
javax.naming.NameNotFoundException: global/my-ear/my-ejb/BMPFacadeBean!my.domain.service.IBMPFacadeRemote -- service jboss.naming.context.java.jboss.exported.global.my-ear.my-ejb."BMPFacadeBean!my.domain.service.IBMPFacadeRemote"
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)
at org.jboss.naming.remote.protocol.v1.Protocol$1.handleServerMessage(Protocol.java:127)
at org.jboss.naming.remote.protocol.v1.RemoteNamingServerV1$MessageReciever$1.run(RemoteNamingServerV1.java:73)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
I want also to mention that JNDI ejb:my-ear/my-ejb//BMPFacadeBean!my.domain.service.IBMPFacadeRemote works just fine.
What is the current status of implmenting the global JNDI for remote clients?
I use the following Properties when obtaining the Context (without jndi.properties):
env = new Properties();
env.setProperty( "java.naming.factory.initial", "org.jboss.naming.remote.client.InitialContextFactory");
//env.setProperty( "java.naming.factory.initial", "org.jboss.as.naming.InitialContextFactory");
//env.put("jboss.naming.client.ejb.context", true);
env.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
env.setProperty( "java.naming.provider.url", "remote://localhost:4447");
env.put(Context.SECURITY_PRINCIPAL, "user");
env.put(Context.SECURITY_CREDENTIALS, "apassword");
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/818595#818595]
Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[Javassist] - Grabbing an existing class's constructors?
by Melissa Dale
Melissa Dale [https://community.jboss.org/people/mdale] created the discussion
"Grabbing an existing class's constructors?"
To view the discussion, visit: https://community.jboss.org/message/818521#818521
--------------------------------------------------------------
I am a graduate student studying software engineering and technical debt. For my research I am using Javassist to create coupling between classes. However there is obviously a problem when I try to create an instance of a class that takes in parameters. I would really like to be able to grab a CtClass's initializers (if they're not an empty constructor), and then pass in the variables it is expecting. for example, consider I am trying to make an instance of class B in class A:
Public class B{public int foo;public char spam;public B(int bar, char eggs){ foo = bar; spam = eggs;}
}
Public class A{ B injected = new B(X,X);}
currently I attempt to use a "isEmpty" check if the class initializer if it is not empty, in which case I have attempted the following two approaches. Both give me a 'no such constructor' error:
if(from.getClassInitializer().isEmpty()){
String toBeAdded = from_class +" injected = new " + from_class+"();";
CtField f = CtField.make(toBeAdded, to);
to.addField(f);
}
//Hopefully this will catch cases where constructors are not empty and insert a dummy instructor
else{
}
I think the method "getClassInitializers" should return a CtClass's constructors as an array, but I'm unsure what to do with this array, which eclipse won't even let me declare. I'd like to loop through an array of expected parameters and make dummy variables of that type so I can do something like: B injected = new B (13, w);
Worse case scenario, I could create a blank class initializer in B so I could do injected B = new B(); I think I should be able to use the makeClassInitializer() method, but that does not work for me, as I still get a no such constructor error. Something like:
else{
from.makeClassInitializer();
String toBeAdded = from_class + "injected = new " + from_class+"();";
CtField f = CtField.make(toBeAdded, to);
to.addField(f);
}
I would really appreciate any help or input you may have to offer. Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/818521#818521]
Start a new discussion in Javassist at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months