Hello,

Have you tried to execute manually this SQL script on your DBMS and start
the AM without the -Dsetup?

Le mercredi 28 juin 2017, Júnior <[email protected]> a écrit :

> Hi,
>
> I have setup the CarbonDB to use the MySQL, and changed the identity.xml
> to use the Carbon db.
>
> But when we run the -Dsetup we receive this error:
>
>
> [
>
> 2017-06-27 22:53:51,644]  INFO - APIKeyMgtServiceComponent Started thrift
> key mgt service at port:10398
> [2017-06-27 22:53:51,799] ERROR - IdentityCoreServiceComponent Error
> occurred while populating identity configuration properties
> org.wso2.carbon.identity.base.IdentityRuntimeException:
> java.io.FileNotFoundException: 
> E:\soft\wso2am-2.1.0\bin\..\dbscripts\identity\mysql.sql
> (The system cannot find the path specified)
>         at org.wso2.carbon.identity.base.IdentityRuntimeException.error(
> IdentityRuntimeException.java:71)
>         at org.wso2.carbon.identity.core.persistence.
> IdentityDBInitializer.executeSQLScript(IdentityDBInitializer.java:273)
>         at org.wso2.carbon.identity.core.persistence.
> IdentityDBInitializer.createIdentityDatabase(IdentityDBInitializer.java:
> 141)
>         at org.wso2.carbon.identity.core.persistence.
> JDBCPersistenceManager.initializeDatabase(JDBCPersistenceManager.java:112)
>         at org.wso2.carbon.identity.core.internal.
> IdentityCoreServiceComponent.activate(IdentityCoreServiceComponent.java:
> 130)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at org.eclipse.equinox.internal.ds.model.ServiceComponent.
> activate(ServiceComponent.java:260)
>         at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.
> activate(ServiceComponentProp.java:146)
>         at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.
> build(ServiceComponentProp.java:345)
>         at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(
> InstanceProcess.java:620)
>         at org.eclipse.equinox.internal.ds.InstanceProcess.
> buildComponents(InstanceProcess.java:197)
>         at org.eclipse.equinox.internal.ds.Resolver.getEligible(
> Resolver.java:343)
>         at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(
> SCRManager.java:222)
>         at org.eclipse.osgi.internal.serviceregistry.
> FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.
> dispatchEvent(BundleContextImpl.java:861)
>         at org.eclipse.osgi.framework.eventmgr.EventManager.
> dispatchEvent(EventManager.java:230)
>         at org.eclipse.osgi.framework.eventmgr.ListenerQueue.
> dispatchEventSynchronous(ListenerQueue.java:148)
>         at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.
> publishServiceEventPrivileged(ServiceRegistry.java:819)
>         at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.
> publishServiceEvent(ServiceRegistry.java:771)
>         at org.eclipse.osgi.internal.serviceregistry.
> ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>         at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.
> registerService(ServiceRegistry.java:214)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.
> registerService(BundleContextImpl.java:433)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.
> registerService(BundleContextImpl.java:451)
>         at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(
> CarbonServerManager.java:514)
>         at org.wso2.carbon.core.init.CarbonServerManager.
> removePendingItem(CarbonServerManager.java:290)
>         at org.wso2.carbon.core.init.PreAxis2ConfigItemListener.
> bundleChanged(PreAxis2ConfigItemListener.java:118)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.
> dispatchEvent(BundleContextImpl.java:847)
>         at org.eclipse.osgi.framework.eventmgr.EventManager.
> dispatchEvent(EventManager.java:230)
>         at org.eclipse.osgi.framework.eventmgr.EventManager$
> EventThread.run(EventManager.java:340)
> *Caused by: java.io.FileNotFoundException:
> E:\soft\wso2am-2.1.0\bin\..\dbscripts\identity\mysql.sql (The system cannot
> find the path specified)*
>         at java.io.FileInputStream.open0(Native Method)
>         at java.io.FileInputStream.open(FileInputStream.java:195)
>         at java.io.FileInputStream.<init>(FileInputStream.java:138)
>         at java.io.FileInputStream.<init>(FileInputStream.java:93)
>         at org.wso2.carbon.identity.core.persistence.
> IdentityDBInitializer.executeSQLScript(IdentityDBInitializer.java:235)
>         ... 30 more
>
> Is this expected? Any workaround?
>
> Thanks,
>
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to